/* === ACORD 25 FORM STYLES === */
#acord25-form {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 0.5in;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.2;
}
body.dark-mode #acord25-form {
    background: var(--bg-card);
    color: var(--text);
}
.coi-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.coi-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--apple-blue, #007AFF);
}
.coi-section-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,122,255,0.08);
    border-radius: 10px;
}
.coi-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}
.coi-section-subtitle {
    font-size: 12px;
    color: var(--text-secondary, #8e8e93);
    margin-top: 2px;
}
.coi-field-grid {
    display: grid;
    gap: 16px;
}
.coi-field-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.coi-field-grid.cols-3 { grid-template-columns: 2fr 80px 120px; }
.coi-field-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media (max-width: 600px) {
    .coi-field-grid.cols-2,
    .coi-field-grid.cols-3,
    .coi-field-grid.cols-4 { grid-template-columns: 1fr; }
}
.coi-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #8e8e93);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.coi-field input[type="text"],
.coi-field input[type="email"],
.coi-field input[type="tel"],
.coi-field input[type="date"],
.coi-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.coi-field input:focus,
.coi-field textarea:focus {
    outline: none;
    border-color: var(--apple-blue, #007AFF);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.12);
    background: var(--bg-card);
}
.coi-field textarea {
    resize: vertical;
    min-height: 100px;
}
.coi-field input::placeholder,
.coi-field textarea::placeholder {
    color: var(--text-tertiary, #c7c7cc);
}
.coi-insurer-row {
    display: grid;
    grid-template-columns: 40px 1fr 120px;
    gap: 10px;
    align-items: end;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.coi-insurer-row:last-child { border-bottom: none; }
.coi-insurer-letter {
    font-weight: 700;
    font-size: 14px;
    color: var(--apple-blue, #007AFF);
    text-align: center;
    padding-bottom: 10px;
}
.coi-coverage-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.coi-coverage-card:last-child { margin-bottom: 0; }
.coi-coverage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.coi-coverage-type {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.coi-coverage-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0,122,255,0.1);
    color: var(--apple-blue, #007AFF);
}
.coi-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.coi-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    cursor: pointer;
}
#acord25-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--apple-blue, #007AFF);
    cursor: pointer;
}
.coi-limits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 600px) {
    .coi-limits-grid { grid-template-columns: 1fr; }
    .coi-insurer-row { grid-template-columns: 30px 1fr 100px; }
}
.coi-policy-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .coi-policy-row { grid-template-columns: 1fr 1fr; }
}
.coi-legal {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary, #8e8e93);
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-top: 12px;
}
body.dark-mode .coi-section { background: var(--bg-card); border-color: var(--border); }
body.dark-mode .coi-coverage-card { background: rgba(255,255,255,0.04); border-color: var(--border); }
body.dark-mode .coi-section-icon { background: rgba(0,122,255,0.15); }
body.dark-mode .coi-field input,
body.dark-mode .coi-field textarea { background: rgba(255,255,255,0.06); border-color: var(--border); color: var(--text); }
body.dark-mode .coi-field input:focus,
body.dark-mode .coi-field textarea:focus { background: rgba(255,255,255,0.1); }
body.dark-mode .coi-legal { background: rgba(255,255,255,0.04); }
/* Hide old acord-* classes (unused now) */
.acord-header, .acord-two-column, .acord-box-label { display: none; }

/* === PRINT STYLES FOR ACORD 25 === */
@media print {
    body { background: white; margin: 0; }
    header, #backToHome { display: none !important; }
    #acord25-form {
        margin: 0;
        padding: 0.25in;
        max-width: none;
        width: 8.5in;
    }
    .coi-section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    .coi-field input,
    .coi-field textarea {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 4px 0 !important;
    }
    .coi-coverage-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd;
    }
    .coi-legal { background: white !important; border: none !important; }
    #investigationLinks { display: none !important; }
    .card:has(#investigationLinks) { display: none !important; }
    .card:has(button[onclick*="copyToQuote"]) { display: none !important; }
    button { display: none !important; }
    .card { page-break-inside: avoid; }
    h2, h3 { page-break-after: avoid; }
    @page { margin: 0.25in; size: letter; }
}

/* ═══════════════════════════════════════════════════════════════
   COVERAGE-TYPE CARDS — Step 0 intake entry point
   (replaces old Step 2 radio-card screen)
   ═══════════════════════════════════════════════════════════════ */

.coverage-type-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.coverage-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.18s var(--transition-smooth),
                background 0.18s var(--transition-smooth),
                transform 0.15s var(--transition-spring),
                box-shadow 0.18s var(--transition-smooth);
    text-align: center;
    font-family: inherit;
    color: var(--text);
}

.coverage-card:hover {
    border-color: var(--apple-blue);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.coverage-card:active {
    transform: translateY(0);
    box-shadow: none;
}

.coverage-card-icon {
    font-size: 40px;
    line-height: 1;
    pointer-events: none;
}

.coverage-card-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.coverage-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

body.dark-mode .coverage-card {
    background: var(--bg-input);
    border-color: var(--border);
}

body.dark-mode .coverage-card:hover {
    background: #2C2C2E;
    border-color: var(--apple-blue);
}

@media (max-width: 520px) {
    .coverage-type-cards {
        gap: 8px;
    }
    .coverage-card {
        padding: 16px 8px;
    }
    .coverage-card-icon {
        font-size: 32px;
    }
    .coverage-card-label {
        font-size: 13px;
    }
    .coverage-card-sub {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP HINTS — [data-tooltip] CSS-only hover popovers
   Usage: <span data-tooltip="Explanation text">ⓘ</span>
   ═══════════════════════════════════════════════════════════════ */

[data-tooltip] {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-secondary);
    font-style: normal;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: 5px;
    transition: background 0.15s, color 0.15s;
}

[data-tooltip]:hover {
    background: var(--apple-blue);
    color: #fff;
    border-color: var(--apple-blue);
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #f0f0f5;
    font-size: 12px;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
    width: 220px;
    max-width: 90vw;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-family: inherit;
    font-weight: 400;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LABEL WITH HINT ICON — wraps label + tooltip together
   ═══════════════════════════════════════════════════════════════ */

.label-with-hint {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 6px;
}

.label-with-hint .label {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   INFO MODAL BUTTON — clickable ⓘ badge that opens a rich panel
   Same visual as [data-tooltip] but cursor:pointer, no pseudo-tooltip
   ═══════════════════════════════════════════════════════════════ */

.info-modal-btn {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-secondary);
    font-style: normal;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: 5px;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.info-modal-btn:hover {
    background: var(--apple-blue);
    color: #fff;
    border-color: var(--apple-blue);
}

/* ═══════════════════════════════════════════════════════════════
   FIELD INFO MODAL — .fi-* scoped styles for info/picker modals
   ═══════════════════════════════════════════════════════════════ */

/* Visual picker grid (Roof Shape) */
.fi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .fi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fi-cell {
    padding: 10px 8px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.fi-cell:hover {
    border-color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.06);
}

.fi-cell.selected {
    border-color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.10);
}

.fi-cell svg {
    display: block;
    margin: 0 auto 7px;
    color: var(--text-secondary);
    overflow: visible;
}

.fi-cell.selected svg,
.fi-cell:hover svg {
    color: var(--apple-blue);
}

.fi-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.2;
}

.fi-cell.selected .fi-name {
    color: var(--apple-blue);
}

.fi-desc {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Info note box */
.fi-note {
    background: var(--bg-input);
    border-left: 3px solid var(--apple-blue);
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Grouped style categories */
.fi-group {
    margin-bottom: 18px;
}

.fi-group-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.fi-group-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 3px 0 8px;
    line-height: 1.4;
}

.fi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fi-chip {
    font-size: 12px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 9px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.fi-chip:hover {
    border-color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.06);
}

.fi-chip.selected {
    border-color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.10);
    color: var(--apple-blue);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DIVIDER LABEL — named separator between field groups
   ═══════════════════════════════════════════════════════════════ */

.section-divider-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 6px;
    margin: 20px 0 14px;
}

/* ═══════════════════════════════════════════════════════════════
   EXPORT BUTTON SUBTITLES — step 6
   ═══════════════════════════════════════════════════════════════ */

.export-btn-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    margin-top: 2px;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   STEP-6 SECTION EDIT SHORTCUTS
   ═══════════════════════════════════════════════════════════════ */

.section-edit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.section-edit-row h2 {
    margin: 0;
}

.btn-edit-jump {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--apple-blue);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-edit-jump:hover {
    background: var(--bg-card);
    border-color: var(--apple-blue);
}

body.dark-mode .btn-edit-jump {
    background: var(--bg-input);
    border-color: var(--border);
}

body.dark-mode .btn-edit-jump:hover {
    background: #2C2C2E;
    border-color: var(--apple-blue);
}

