/* BTG Proposal Tool — Styles
   Brand: Navy #284389, Green #1DBF73
   Font: Archivo 400/500/600/700
   Mobile-first, consulting-grade design
*/

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #284389;
    --navy-dark: #1c3068;
    --navy-light: #3a5bab;
    --green: #1DBF73;
    --green-dark: #17a563;
    --green-light: #2dd88a;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Archivo', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================
   Header
   ============================ */
.app-header {
    background: var(--navy);
    color: white;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.2s;
}

/* ============================
   Main / Container
   ============================ */
.app-main {
    flex: 1;
    padding: 1.5rem 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================
   Footer
   ============================ */
.app-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
}

/* ============================
   Page Header
   ============================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

/* ============================
   Cards
   ============================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.card-link {
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.card-link:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--green);
}

.card-link h3 {
    color: var(--navy);
    margin-bottom: 0.25rem;
    border-bottom: none;
    padding-bottom: 0;
}

.card-link p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================
   Quick Links Grid
   ============================ */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: var(--navy);
    color: white;
}

.btn-secondary:hover {
    background: var(--navy-dark);
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ============================
   Forms
   ============================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: white;
    transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(40,67,137,0.1);
}

.salary-range-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 0.5rem;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.radio-option input {
    display: none;
}

.radio-option:has(input:checked) {
    border-color: var(--navy);
    background: rgba(40,67,137,0.05);
    color: var(--navy);
}

.radio-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Range slider */
.form-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--navy);
    border-radius: 50%;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--navy);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Toggle */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-switch {
    background: var(--green);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

/* Traffic light */
.traffic-light {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.traffic-light.green { background: var(--green); }
.traffic-light.amber { background: var(--amber); }
.traffic-light.red { background: var(--red); }

/* ============================
   Summary Banner
   ============================ */
.summary-banner {
    background: var(--navy);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 500;
}

.summary-range {
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-savings {
    font-size: 0.875rem;
    background: var(--green);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================
   Pricing Grid
   ============================ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ============================
   Tier Cards
   ============================ */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tier-card {
    text-align: center;
    padding: 1rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.tier-card:hover {
    border-color: var(--navy-light);
}

.tier-card.tier-primary,
.tier-card.tier-selected {
    border-color: var(--navy);
    background: rgba(40,67,137,0.03);
}

.tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.tier-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.tier-rate {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

.tier-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tier-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================
   Breakdown Table
   ============================ */
.breakdown-section {
    margin-bottom: 1.5rem;
}

.breakdown-table {
    border-top: 1px solid var(--border);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f1f3;
    font-size: 0.85rem;
}

.breakdown-row span:first-child {
    color: var(--text-muted);
}

.bd-value {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.breakdown-subtotal {
    font-weight: 600;
    border-bottom-color: var(--border);
    padding-top: 0.5rem;
}

.breakdown-subtotal span { color: var(--text) !important; }

.breakdown-total {
    font-weight: 600;
    padding-top: 0.5rem;
}

.breakdown-total span { color: var(--text) !important; }

.breakdown-grand-total {
    font-weight: 700;
    font-size: 1rem;
    border-bottom: none;
    padding-top: 0.5rem;
    border-top: 2px solid var(--navy);
    margin-top: 0.25rem;
}

.breakdown-grand-total span { color: var(--navy) !important; }

/* ============================
   Comparison
   ============================ */
.comparison-section {
    margin-top: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.comparison-card {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius);
}

.comparison-onshore {
    background: #fef3c7;
}

.comparison-btg {
    background: rgba(29,191,115,0.1);
}

.comparison-savings {
    background: rgba(29,191,115,0.15);
}

.comparison-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.comparison-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
}

.comparison-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================
   Settings
   ============================ */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.fx-status {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.fx-source-badge {
    background: rgba(40,67,137,0.1);
    color: var(--navy);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.fx-last-fetch {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================
   Discovery Steps
   ============================ */
.discovery-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step.active {
    background: var(--navy);
    color: white;
}

.step.completed {
    background: var(--green);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
}

.coming-soon {
    text-align: center;
    padding: 3rem 1.5rem;
}

.coming-soon-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.5rem;
}

/* ============================
   Empty State
   ============================ */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 0.75rem;
}

/* ============================
   Table
   ============================ */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f1f3;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-draft { background: #e5e7eb; color: #374151; }
.badge-precall, .badge-pre-call { background: #fef3c7; color: #92400e; }
.badge-callcomplete, .badge-call-complete { background: #dbeafe; color: #1d4ed8; }
.badge-reviewed { background: #e0e7ff; color: #3730a3; }
.badge-priced { background: #d1fae5; color: #065f46; }
.badge-generated { background: rgba(29,191,115,0.15); color: #065f46; }
.badge-sent { background: #dbeafe; color: #1d4ed8; }
.badge-accepted { background: #d1fae5; color: #065f46; }

/* ============================
   Toast
   ============================ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--navy);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    background: var(--red);
}

/* ============================
   Utility
   ============================ */
.hidden { display: none !important; }

/* ============================
   Desktop Layout (768px+)
   ============================ */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 360px 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tier-rate {
        font-size: 1.5rem;
    }

    .summary-range {
        font-size: 1.25rem;
    }
}

/* ============================
   Mobile (< 768px)
   ============================ */
@media (max-width: 767px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .tier-cards {
        gap: 0.5rem;
    }

    .tier-rate {
        font-size: 1rem;
    }

    .tier-badge {
        font-size: 0.55rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .comparison-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .radio-group {
        flex-direction: column;
    }
}

/* ============================
   Discovery Flow — Forms
   ============================ */
.discovery-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-loading {
    opacity: 0.7;
    cursor: wait;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-remove {
    background: var(--red);
    color: white;
    border-radius: 4px;
    line-height: 1;
}

.radio-group-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Role rows in review form */
.role-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.role-row .role-select {
    flex: 3;
}

.role-row .role-level {
    flex: 1;
    min-width: 90px;
}

.role-row .role-qty {
    width: 70px;
    flex: none;
}

/* ============================
   Live Call Page — "The Coach That Listens"
   3 zones: Coaching (top), Transcript (middle), Note (bottom)
   ============================ */
.live-call-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
}

.fallback-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ── Header ── */
.call-header {
    background: var(--navy);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 0.75rem;
}

.live-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.live-indicator.live-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.company-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.timer {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.call-header-actions {
    display: flex;
    gap: 0.5rem;
}

.call-start-btn {
    min-width: 120px;
}

.end-call-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.end-call-btn:hover {
    background: #dc2626;
}

/* ── Call phase progress bar ── */
.phase-bar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.35rem 1rem;
    background: #f0f2f5;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    overflow-x: auto;
}

.phase-step {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.phase-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.phase-connector {
    width: 16px;
    height: 2px;
    background: #d1d5db;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

/* Completed phase */
.phase-step.completed .phase-dot {
    background: var(--green);
}

.phase-step.completed .phase-label {
    color: var(--green-dark);
}

.phase-connector.completed {
    background: var(--green);
}

/* Active phase */
.phase-step.active .phase-dot {
    background: var(--navy);
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(40, 67, 137, 0.2);
}

.phase-step.active .phase-label {
    color: var(--navy);
    background: rgba(40, 67, 137, 0.08);
    font-weight: 700;
}

/* Phase hint (key question) */
.phase-hint {
    display: none;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.25rem;
}

.phase-step.active .phase-hint {
    display: inline;
}

/* Nudge badge */
.phase-nudge {
    display: none;
    font-size: 0.55rem;
    font-weight: 700;
    background: var(--amber);
    color: #000;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 0.25rem;
    animation: nudgePulse 2s infinite;
}

.phase-nudge.visible {
    display: inline;
}

@keyframes nudgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ── Zone 1: Coaching prompt ── */
.coaching-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 55vh;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.they-said {
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.4;
}

.say-this {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green);
    max-width: 600px;
    line-height: 1.4;
}

/* Smooth transition between coaching prompts */
.coaching-zone.updating {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coaching-zone.visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Urgency levels */
.coaching-zone.urgent .say-this {
    color: var(--amber);
}

.coaching-zone.critical .say-this {
    color: var(--red);
    font-weight: 700;
}

/* ── Expandable detail panel ── */
.detail-panel {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 1rem 2rem;
    max-height: 200px;
    overflow-y: auto;
    flex-shrink: 0;
}

.detail-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-section {
    padding: 0;
}

.detail-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.detail-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.4;
}

/* ── Zone 2: Transcript ── */
.transcript-zone {
    height: 20vh;
    overflow-y: auto;
    padding: 1rem;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.transcript-placeholder {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.transcript-text {
    white-space: pre-wrap;
}

.transcript-interim {
    color: var(--text-muted);
    font-style: italic;
}

/* ── Zone 3: Quick note ── */
.note-zone {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
}

.note-input {
    flex: 1;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.note-input:focus {
    outline: none;
    border-color: var(--navy-light);
}

.note-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}

.note-btn:hover {
    background: var(--navy-dark);
}

/* ============================
   Step 3: Multi-Role Pricing
   ============================ */
.role-pricing-card {
    margin-bottom: 1rem;
}

.role-pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.role-pricing-header h3 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.role-qty-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    background: rgba(40,67,137,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.role-pricing-controls {
    margin-bottom: 0.75rem;
}

.role-pricing-controls .form-group {
    margin-bottom: 0.5rem;
}

.markup-val {
    font-weight: 700;
    color: var(--navy);
}

.role-tiers {
    margin-bottom: 0.75rem;
}

.role-onshore {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-totals-card {
    margin-top: 1rem;
}

/* ============================
   Step 4: Generate Proposal
   ============================ */
.proposal-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.preview-section {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
}

.preview-section-wide {
    grid-column: 1 / -1;
}

.preview-section h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.preview-section p {
    font-size: 0.9rem;
}

.preview-roles-list {
    list-style: none;
    padding: 0;
}

.preview-roles-list li {
    font-size: 0.9rem;
    padding: 0.2rem 0;
}

.preview-roles-list li::before {
    content: "• ";
    color: var(--green);
    font-weight: bold;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pricing-preview-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-preview-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.generate-actions-card {
    text-align: center;
}

.generate-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.generate-existing,
.generate-email {
    text-align: center;
}

/* ============================
   Desktop — Discovery Layout
   ============================ */
@media (min-width: 768px) {
    .discovery-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .call-panels {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================
   Mobile — Live Call
   ============================ */
@media (max-width: 768px) {
    .coaching-zone {
        min-height: 70vh;
    }

    .say-this {
        font-size: 1.3rem;
    }

    .transcript-zone {
        height: 15vh;
    }

    .call-header {
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
    }

    .company-name {
        font-size: 0.9rem;
    }

    .timer {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .proposal-preview-grid {
        grid-template-columns: 1fr;
    }

    .radio-group-3 {
        grid-template-columns: 1fr;
    }

    .role-row {
        flex-wrap: wrap;
    }

    .role-row .role-select {
        flex: 1 1 100%;
    }
}

/* ============================
   Step 0 Saved — Choice Cards
   ============================ */
.saved-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.saved-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    cursor: pointer;
}

.saved-choice-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.saved-choice-call:hover {
    border-color: var(--green);
    background: rgba(29,191,115,0.04);
}

.saved-choice-skip:hover {
    border-color: var(--navy);
    background: rgba(40,67,137,0.04);
}

.saved-choice-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.saved-choice-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.saved-choice-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .saved-choice-grid {
        grid-template-columns: 1fr;
    }
}
