/* =============================================================
   NFH Incoterms Selector — nfh-incoterms-selector.css
   All rules scoped to #nfh-its-app to avoid WordPress conflicts.
   Version 1.0.0 | National Freight Hub
   ============================================================= */

#nfh-its-app,
#nfh-its-app *,
#nfh-its-app *::before,
#nfh-its-app *::after {
    box-sizing: border-box;
}

#nfh-its-app {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111;
    font-size: 15px;
}

/* ── Header ── */
.its-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #071626;
}
.its-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #071626;
    margin: 0 0 6px;
}
.its-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── Progress bar ── */
.its-progress {
    height: 3px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.its-progress-fill {
    height: 100%;
    background: #C8622A;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ── Step indicator ── */
.its-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}
.its-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
}
.its-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    color: #aaa;
    flex-shrink: 0;
    transition: all 0.2s;
}
.its-step.done .its-step-num {
    background: #071626;
    border-color: #071626;
    color: #fff;
}
.its-step.active .its-step-num {
    background: #C8622A;
    border-color: #C8622A;
    color: #fff;
}
.its-step.active,
.its-step.done {
    color: #071626;
}
.its-step-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 4px;
    transition: background 0.3s;
}
.its-step-line.done {
    background: #071626;
}
.its-step-label {
    display: none;
}
@media (min-width: 580px) {
    .its-step-label {
        display: inline;
    }
}

/* ── Card ── */
.its-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.its-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #071626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.its-question {
    font-size: 17px;
    font-weight: 700;
    color: #071626;
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

/* ── Option buttons ── */
.its-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 560px) {
    .its-options {
        grid-template-columns: 1fr;
    }
}
/* All button rules use !important to block WordPress/Elementor theme overrides. */
#nfh-its-app .its-option {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    background: #fff !important;
    background-color: #fff !important;
    text-align: left !important;
    transition: border-color 0.15s, background 0.15s !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    color: #111 !important;
}
#nfh-its-app .its-option:hover {
    border-color: #C8622A !important;
    background: #fff8f3 !important;
    background-color: #fff8f3 !important;
}
#nfh-its-app .its-option:focus {
    border-color: #071626 !important;
    box-shadow: 0 0 0 3px rgba(7,22,38,0.1) !important;
    outline: none !important;
}
#nfh-its-app .its-option.selected {
    border-color: #071626 !important;
    background: #f0f4f8 !important;
    background-color: #f0f4f8 !important;
    box-shadow: none !important;
}
.its-opt-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.15s;
}
#nfh-its-app .its-option.selected .its-opt-dot {
    background: #071626 !important;
    border-color: #071626 !important;
}
.its-opt-label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 2px;
}
.its-opt-sub {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* ── Navigation buttons ── */
.its-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1.25rem;
}
#nfh-its-app .its-btn-back {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
}
#nfh-its-app .its-btn-back:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
}
#nfh-its-app .its-btn-next {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    background: #071626 !important;
    background-color: #071626 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
}
#nfh-its-app .its-btn-next:hover {
    background: #0d2840 !important;
    background-color: #0d2840 !important;
}
#nfh-its-app .its-btn-next:disabled {
    background: #ccc !important;
    background-color: #ccc !important;
    cursor: not-allowed !important;
}

/* ── Result panel ── */
.its-result {
    display: none;
}
.its-result.show {
    display: block;
}

/* Hero */
.its-result-hero {
    background: #071626;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.its-result-badge {
    background: #C8622A;
    border-radius: 8px;
    padding: 10px 18px;
    text-align: center;
    flex-shrink: 0;
    min-width: 90px;
}
.its-result-badge-term {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
}
.its-result-badge-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.75);
}
.its-result-hero-body {
    flex: 1;
    min-width: 200px;
}
.its-result-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.its-result-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 10px;
}
.its-fit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.its-fit-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 4px 10px;
    border-radius: 5px;
    line-height: 1.5;
}

/* Caution */
.its-caution {
    background: #faeee6;
    border: 1px solid #e8b99a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
    font-size: 13px;
    color: #a34e20;
    line-height: 1.6;
}
.its-caution strong {
    color: #071626;
}

/* Diagram card */
.its-diagram-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.its-diagram-title {
    font-size: 13px;
    font-weight: 700;
    color: #071626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.its-diagram-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1rem;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.its-leg-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
.its-leg-dot.buyer  { background: #1a6fa8; }
.its-leg-dot.seller { background: #C8622A; }
.its-leg-dot.shared { background: #5a8a5a; }

/* Responsibility rows */
.its-resp-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.its-resp-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.its-resp-stage {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    width: 150px;
    flex-shrink: 0;
    text-align: right;
}
@media (max-width: 560px) {
    .its-resp-stage {
        width: 105px;
        font-size: 11px;
    }
}
.its-resp-bar-wrap {
    flex: 1;
    height: 28px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.its-resp-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 5px;
    width: 100%;
}
.its-resp-bar.buyer  { background: #1a6fa8; color: #fff; justify-content: flex-end; }
.its-resp-bar.seller { background: #C8622A; color: #fff; justify-content: flex-start; }
.its-resp-bar.shared { background: #5a8a5a; color: #fff; justify-content: center; }
.its-resp-bar.na     { background: #e8e8e8; color: #aaa; justify-content: center; font-size: 10px; }
.its-resp-tag {
    font-size: 11px;
    font-weight: 700;
    width: 70px;
    flex-shrink: 0;
}
.its-resp-tag.buyer  { color: #1a6fa8; }
.its-resp-tag.seller { color: #C8622A; }
.its-resp-tag.shared { color: #5a8a5a; }
.its-resp-tag.na     { color: #bbb; }

/* Responsibility table card */
.its-table-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}
.its-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.its-table-card thead tr {
    background: #f5f7f9;
}
.its-table-card th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #071626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e0e0e0;
}
.its-table-card td {
    padding: 7px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
    line-height: 1.4;
}
.its-table-card tr:last-child td {
    border-bottom: none;
}

/* Responsibility pills */
.its-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.its-pill.buyer      { background: #deeef9; color: #1a6fa8; }
.its-pill.seller     { background: #faeee6; color: #a34e20; }
.its-pill.shared     { background: #e5f0e5; color: #3d6b3d; }
.its-pill.na         { background: #f0f0f0; color: #aaa; }
.its-pill.negotiable { background: #f0f0f0; color: #777; }

/* Alternatives card */
.its-alts-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.its-alts-title {
    font-size: 13px;
    font-weight: 700;
    color: #071626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.its-alts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 560px) {
    .its-alts-grid {
        grid-template-columns: 1fr;
    }
}
.its-alt {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
}
.its-alt-term {
    font-size: 18px;
    font-weight: 800;
    color: #071626;
    margin-bottom: 4px;
}
.its-alt-name {
    font-size: 12px;
    font-weight: 600;
    color: #C8622A;
    margin-bottom: 6px;
}
.its-alt-body {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Quote suggestion */
.its-quote-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.its-quote-title {
    font-size: 13px;
    font-weight: 700;
    color: #071626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}
.its-quote-text {
    font-style: italic;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    line-height: 1.7;
    margin: 0 0 10px;
}
.its-quote-hint {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* Action buttons */
.its-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: center;
}
#nfh-its-app .its-abtn {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #555 !important;
    transition: background 0.15s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: none !important;
}
#nfh-its-app .its-abtn:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
    text-decoration: none !important;
}
#nfh-its-app .its-abtn.primary {
    background: #C8622A !important;
    background-color: #C8622A !important;
    color: #fff !important;
    border-color: #C8622A !important;
}
#nfh-its-app .its-abtn.primary:hover {
    background: #a34e20 !important;
    background-color: #a34e20 !important;
    color: #fff !important;
}
#nfh-its-app .its-abtn.navy {
    background: #071626 !important;
    background-color: #071626 !important;
    color: #fff !important;
    border-color: #071626 !important;
}
#nfh-its-app .its-abtn.navy:hover {
    background: #0d2840 !important;
    background-color: #0d2840 !important;
    color: #fff !important;
}

/* Disclaimer */
.its-disclaimer {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.its-disclaimer strong {
    color: #666;
}

/* Toast notification */
.its-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #071626;
    color: #fff;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99999;
    white-space: nowrap;
}
.its-toast.show {
    opacity: 1;
}
