

/* ══════════════════════════════════════════════════
   EVENT INSURANCE – OPT-IN DECISION
   ══════════════════════════════════════════════════ */

#event-insurance-wrapper {
    padding: 0 0 0.5rem;
}

#event-insurance-wrapper > .ei-opt-in {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5fd 100%);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#event-insurance-wrapper > .ei-opt-in:hover {
    border-color: #93b4f5;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

#event-insurance-wrapper > .ei-opt-in.is-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff4ff 0%, #e8effd 100%);
    box-shadow: 0 2px 16px rgba(37, 99, 235, 0.12);
}

#event-insurance-wrapper > .ei-opt-in.is-declined {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

#event-insurance-wrapper > .ei-opt-in.is-purchased {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fef9 50%, #ecfdf3 100%);
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.06), 0 4px 16px rgba(34, 197, 94, 0.08);
    position: relative;
    overflow: visible;
}

#event-insurance-wrapper > .ei-opt-in.is-purchased::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 3px 2px 2px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

#event-insurance-wrapper > .ei-opt-in.is-purchased:hover {
    border-color: #86efac;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.06), 0 4px 16px rgba(34, 197, 94, 0.08);
}

#event-insurance-wrapper .ei-opt-in-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
#event-insurance-wrapper .ei-opt-in-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

#event-insurance-wrapper .ei-opt-in-content > span:first-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.01em;
}

#event-insurance-wrapper .ei-opt-in-subtitle {
    font-size: 0.74rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.03em;
    font-style: italic;
}

#event-insurance-wrapper .ei-opt-in.is-purchased .ei-opt-in-subtitle {
    color: #16a34a;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.01em;
}

#event-insurance-wrapper .ei-policy-dates {
    display: none;
    margin-top: 0.2rem;
    font-size: 0;
    line-height: 1.4;
}

#event-insurance-wrapper .ei-policy-dates-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    vertical-align: middle;
    margin-right: 0.3rem;
}

#event-insurance-wrapper .ei-policy-dates-value {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    vertical-align: middle;
}

#event-insurance-wrapper .ei-cost-breakdown {
    display: none;
    min-height: 1.45rem;
    margin-top: 0.25rem;
    font-size: 0;
    line-height: 1.45rem;
}

#event-insurance-wrapper .ei-opt-in.is-active .ei-cost-breakdown {
    display: block;
}

#event-insurance-wrapper .ei-cost-breakdown .ei-cost-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    vertical-align: middle;
    margin-right: 0.3rem;
}

#event-insurance-wrapper .ei-cost-breakdown .ei-cost-amount {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1e293b;
    vertical-align: middle;
}

#event-insurance-wrapper .ei-shield-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e0eaff;
    transition: background 0.25s ease;
}

#event-insurance-wrapper .ei-opt-in.is-active .ei-shield-icon {
    background: #2563eb;
}

#event-insurance-wrapper .ei-opt-in.is-purchased .ei-shield-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
}

#event-insurance-wrapper .ei-shield-icon svg {
    width: 18px;
    height: 18px;
    fill: #2563eb;
    transition: fill 0.25s ease;
}

#event-insurance-wrapper .ei-opt-in.is-active .ei-shield-icon svg {
    fill: #fff;
}

#event-insurance-wrapper .ei-opt-in.is-purchased .ei-shield-icon svg {
    fill: #16a34a;
    width: 20px;
    height: 20px;
}

/* ── Purchased: details card ── */

#event-insurance-wrapper .ei-purchased-details-card {
    margin-top: 0.15rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

#event-insurance-wrapper .ei-purchased-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.45rem 1rem;
}

#event-insurance-wrapper .ei-purchased-detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

#event-insurance-wrapper .ei-purchased-detail-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #16a34a;
    line-height: 1;
}

#event-insurance-wrapper .ei-purchased-detail-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #14532d;
    line-height: 1.3;
}

#event-insurance-wrapper .ei-purchased-status-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.1rem 0.45rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
}

#event-insurance-wrapper .ei-opt-in-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

#event-insurance-wrapper .ei-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#event-insurance-wrapper .ei-choice:hover {
    border-color: #93b4f5;
    background: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

#event-insurance-wrapper .ei-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#event-insurance-wrapper .ei-choice-indicator {
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#event-insurance-wrapper .ei-choice input[type="radio"]:focus-visible + .ei-choice-indicator {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

#event-insurance-wrapper .ei-choice-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

#event-insurance-wrapper .ei-choice.is-selected {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

#event-insurance-wrapper .ei-choice.is-selected .ei-choice-indicator {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#event-insurance-wrapper .ei-choice.is-selected .ei-choice-indicator::after {
    transform: translate(-50%, -50%) scale(1);
}

#event-insurance-wrapper .ei-choice-copy {
    display: flex;
    flex-direction: column;
}

#event-insurance-wrapper .ei-choice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}


/* ══════════════════════════════════════════════════
   EVENT INSURANCE – PANEL
   ══════════════════════════════════════════════════ */

#event-insurance-panel {
    margin-top: 0;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    position: relative;
}

#event-insurance-panel .ei-panel-inner {
    padding: 1.25rem 1.2rem 1rem;
}

/* ── Disclosure ── */

#event-insurance-panel .ei-disclosure {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

#event-insurance-panel .ei-disclosure-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

#event-insurance-panel .ei-disclosure-list {
    margin: 0;
    padding-left: 1.1rem;
    list-style: disc;
}

#event-insurance-panel .ei-disclosure-list li {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #475569;
}

#event-insurance-panel .ei-disclosure-list li + li {
    margin-top: 0.25rem;
}

#event-insurance-panel .ei-disclosure-summary {
    margin: 0.45rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #475569;
}

/* ── Prefill controls ── */

#event-insurance-panel .ei-prefill-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.85rem;
}

#event-insurance-coverage-limits-section {
    margin-bottom: 1rem;
}

#event-insurance-panel .ei-coverage-limits-grid {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

#event-insurance-panel .ei-coverage-limit-card {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e8effd;
}

#event-insurance-panel .ei-coverage-limit-card:last-child {
    border-bottom: none;
}

#event-insurance-panel .ei-coverage-limit-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

#event-insurance-panel .ei-coverage-limit-value {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d4ed8 !important;
    line-height: 1.4;
    text-align: right;
    word-break: break-word;
}

/* ── Coverage teaser (shown before quote) ── */

#event-insurance-panel .ei-coverage-teaser {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #dbe8fb;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

#event-insurance-panel .ei-coverage-teaser-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: #2563eb;
}

#event-insurance-panel .ei-coverage-teaser-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

#event-insurance-panel .ei-coverage-teaser-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.01em;
}

#event-insurance-panel .ei-coverage-teaser-subtitle {
    font-size: 0.76rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.35;
}

#event-insurance-panel .ei-terms-section {
    margin-top: 1rem;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

#event-insurance-panel .ei-terms-text {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.55;
}

#event-insurance-panel .ei-terms-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

#event-insurance-panel .ei-terms-link:hover,
#event-insurance-panel .ei-terms-link:focus-visible {
    border-bottom-color: #2563eb;
    outline: none;
}

#event-insurance-panel .ei-expand-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid #93b4f5;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#event-insurance-panel .ei-expand-toggle::after {
    content: '';
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

#event-insurance-panel .ei-expand-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-1px);
}

#event-insurance-panel .ei-expand-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

#event-insurance-panel .ei-disclaimer-icon {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    color: #94a3b8;
    margin-top: 0.05rem;
}

#event-insurance-panel .ei-expand-toggle:hover,
#event-insurance-panel .ei-expand-toggle:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #f0f5ff;
    outline: none;
}

/* ── Quote pending overlay ── */

#ei-quote-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#ei-quote-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.ei-quote-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.ei-quote-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3.5px solid #dbe8fb;
    border-top-color: #2563eb;
    border-right-color: #93b4f5;
    animation: ei-spin 0.78s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;
}

.ei-quote-overlay-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Section titles */
.event-insurance-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8effd;
}

.event-insurance-section-header.is-subsection {
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}


.event-insurance-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

.event-insurance-subsection-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    border-bottom: 0;
}

#event-insurance-panel .ei-section-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1.5px solid #dbe4ef;
    border-radius: 7px;
    background: #f4f7fb;
    cursor: pointer;
}

#event-insurance-panel .ei-section-toggle:hover,
#event-insurance-panel .ei-section-toggle:focus-visible {
    border-color: #93b4f5;
    background: #e8f0fe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    outline: none;
}

#event-insurance-panel .ei-section-toggle .ei-chevron-icon {
    width: 14px;
    height: 14px;
    stroke: #6b7f99;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#event-insurance-panel .ei-section-toggle:hover .ei-chevron-icon,
#event-insurance-panel .ei-section-toggle:focus-visible .ei-chevron-icon {
    stroke: #2563eb;
}

#event-insurance-panel .ei-section-toggle.is-collapsed .ei-chevron-icon {
    transform: rotate(-90deg);
}

#event-insurance-panel .ei-section-toggle.is-collapsed {
    border-color: #93b4f5;
    background: #eef3fc;
}

/* Form inputs inside panel */
#event-insurance-panel label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: #475569;
    letter-spacing: 0.02em;
}

#event-insurance-panel .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    height: 36px;
    padding: 0 0.7rem;
    font-size: 0.88rem;
    line-height: 33px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
}

#event-insurance-panel .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
    outline: none;
}

#event-insurance-panel .form-control.ei-field-error,
#event-insurance-panel .form-control.ei-field-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    background-color: #fff7f7;
}

#event-insurance-panel select.form-control {
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
    padding: 0.6rem 2rem 0.6rem 0.7rem;
    line-height: normal;
    width: auto !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#event-insurance-panel select.form-control:focus {
    background-color: #fff;
}

#event-insurance-panel .row {
    margin-left: -6px;
    margin-right: -6px;
}

#event-insurance-panel [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 0.6rem;
}

#event-insurance-panel .event-insurance-conditional-section {
    display: block;
}

.io .collapse.in:has(#event-insurance-wrapper) {
    overflow: visible !important;
}

/* ── Insurance Questions (Yes / No) ── */

#event-insurance-panel .ei-questions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 0.75rem;
}

#event-insurance-panel .ei-questions-grid > * {
    min-width: 0;
}

@media (max-width: 1920px) {
    #event-insurance-panel .ei-questions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #event-insurance-wrapper .ei-opt-in-choices {
        grid-template-columns: 1fr;
    }

    #event-insurance-panel .ei-prefill-controls {
        padding: 0.6rem 0.7rem;
    }

    #event-insurance-panel .ei-expand-disclaimer {
        text-align: left;
    }

    #event-insurance-panel .ei-expand-toggle {
        width: 100%;
        justify-content: center;
    }

    .event-insurance-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    #event-insurance-panel .ei-section-toggle {
        width: 26px;
    }
}

/* ── Question groups (parent + conditional child) ── */

#event-insurance-panel .ei-question-group {
    display: flex;
    flex-direction: column;
}

/* Child question animation container */
#event-insurance-panel .ei-child-question-wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                margin-top 0.28s ease;
}

#event-insurance-panel .ei-child-question-wrapper.is-revealed {
    overflow: visible;
    max-height: 160px;
    opacity: 1;
    margin-top: 0.2rem;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease 0.06s,
                margin-top 0.28s ease;
}

/* Child label: indent + connecting line + tinted bg */
#event-insurance-panel .ei-child-question-wrapper .ei-question {
    margin-left: 1.35rem;
    position: relative;
    background: #f0f6ff;
    border: 1px solid #dbe8fb;
}

#event-insurance-panel .ei-child-question-wrapper .ei-question::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    height: calc(50% + 1px);
    width: 0.6rem;
    border-left: 1.5px solid #bfcfed;
    border-bottom: 1.5px solid #bfcfed;
    border-bottom-left-radius: 3px;
    pointer-events: none;
}

#event-insurance-panel .ei-child-question-wrapper .ei-question:hover {
    background: #e6f0fc;
    border-color: #c5d9f7;
}

#event-insurance-panel .ei-child-question-wrapper .ei-question .ei-question-text {
    color: #3b5b8c;
}

#event-insurance-panel .ei-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

#event-insurance-panel .ei-question:hover {
    background: #f1f5fd;
    border-color: #dbe8fb;
}

#event-insurance-panel .ei-question.is-disabled {
    opacity: 0.55;
}

#event-insurance-panel .ei-question-copy {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

#event-insurance-panel .ei-question-answer-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

#event-insurance-panel .ei-question-choice {
    margin: 0;
    cursor: pointer;
}

#event-insurance-panel .ei-question-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#event-insurance-panel .ei-question-choice-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#event-insurance-panel .ei-question-choice input[type="radio"]:checked + .ei-question-choice-pill {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

#event-insurance-panel .ei-question-choice input[type="radio"]:focus-visible + .ei-question-choice-pill {
    outline: 2px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

#event-insurance-panel .ei-question-text {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 450;
    line-height: 1.3;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) and (max-width: 992px) {
    #event-insurance-panel .ei-question {
        flex-wrap: wrap;
    }

    #event-insurance-panel .ei-question-copy {
        flex-basis: 100%;
    }
}

/* ── Question info icon & tooltip ── */

#event-insurance-panel .ei-question-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin-left: 0;
    border-radius: 50%;
    border: 1.5px solid #94a3b8;
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: default;
    flex-shrink: 0;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    outline: none;
}

#event-insurance-panel .ei-question-info:hover,
#event-insurance-panel .ei-question-info:focus-visible {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff4ff;
}

#event-insurance-panel .ei-question-tooltip {
    position: absolute;
    bottom: calc(100% + 9px);
    left: -4px;
    width: 200px;
    max-width: calc(100vw - 2rem);
    background: #1e293b;
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 400;
    font-style: normal;
    font-family: inherit;
    line-height: 1.5;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22), 0 1px 4px rgba(15, 23, 42, 0.14);
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
    white-space: pre-line;
    text-align: left;
}

/* Arrow */
#event-insurance-panel .ei-question-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 7px;
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

#event-insurance-panel .ei-question-info:hover .ei-question-tooltip,
#event-insurance-panel .ei-question-info:focus-visible .ei-question-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ── Review-gated insurance questions ── */

#event-insurance-panel .ei-question--gated {
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

#event-insurance-panel .ei-question--gated > .ei-question-copy {
    flex: 1 1 260px;
}

#event-insurance-panel .ei-question--gated > .ei-question-gated-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap-reverse;
    gap: 0.35rem 0.5rem;
    flex: 0 1 auto;
    margin-left: auto;

}

#event-insurance-panel .ei-question--gated > .ei-activities-panel {
    flex-basis: 100%;
}

/* Disabled radio pills before review */
#event-insurance-panel .ei-question--gated:not(.is-reviewed) .ei-question-choice-pill {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

#event-insurance-panel .ei-question--gated:not(.is-reviewed) .ei-question-choice {
    cursor: not-allowed;
}

/* Expand button */
#event-insurance-panel .ei-expand-activities-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem 0.2rem 0.35rem;
    border: 1.5px solid #c7d7f0;
    border-radius: 6px;
    background: #f0f5ff;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 550;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    line-height: 1.4;
}

#event-insurance-panel .ei-expand-activities-btn:hover {
    background: #e0ecff;
    border-color: #93b4f5;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

/* Pulse hint when not yet reviewed */
#event-insurance-panel .ei-question--gated:not(.is-reviewed) .ei-expand-activities-btn {
    animation: ei-gate-pulse 2.4s ease-in-out infinite;
}

@keyframes ei-gate-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
}

#event-insurance-panel .ei-expand-activities-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

#event-insurance-panel .ei-expand-activities-btn[aria-expanded="true"] .ei-expand-activities-chevron {
    transform: rotate(180deg);
}

/* Expandable panel */
#event-insurance-panel .ei-activities-panel {
    width: 100%;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease, margin 0.3s ease;
    margin-top: 0;
}

#event-insurance-panel .ei-activities-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.35rem;
    overflow: visible;
}

#event-insurance-panel .ei-activities-panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0.55rem 0.7rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.55;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    white-space: pre-line;
}

@media (max-width: 992px) {
    #event-insurance-panel .ei-question--gated > .ei-question-gated-controls {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}


/* ── Quote Status ── */

#event-insurance-quote-status {
    min-height: 0;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0;
    border-radius: 7px;
    transition: padding 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#event-insurance-quote-status:not(:empty) {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0.75rem;
}

#event-insurance-quote-status .ei-quote-status-message {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

#event-insurance-quote-status .ei-retry-quote {
    flex-shrink: 0;
    margin-left: auto;
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#event-insurance-quote-status .ei-retry-quote::before {
    content: '\21bb';
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.35s ease;
}

#event-insurance-quote-status .ei-retry-quote:hover::before,
#event-insurance-quote-status .ei-retry-quote:focus-visible::before {
    transform: rotate(180deg);
}

#event-insurance-quote-status .ei-retry-quote:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

#event-insurance-quote-status.is-error .ei-retry-quote {
    border-color: #fecaca;
    color: #b91c1c;
}

#event-insurance-quote-status.is-error .ei-retry-quote:hover {
    border-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
}

#event-insurance-quote-status.is-warning .ei-retry-quote {
    border-color: #fde68a;
    color: #a16207;
}

#event-insurance-quote-status.is-warning .ei-retry-quote:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

#event-insurance-quote-status.is-pending {
    background: #f1f5f9;
    color: #475569;
}

#event-insurance-quote-status.is-pending::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #94a3b8;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    animation: ei-spin 0.7s linear infinite;
}

@keyframes ei-spin {
    to { transform: rotate(360deg); }
}

#event-insurance-quote-status.is-success {
    background: #f0fdf4;
    color: #15803d;
}

#event-insurance-quote-status.is-success::before {
    content: '\2713';
    margin-right: 0.4rem;
    font-weight: 800;
}

#event-insurance-quote-status.is-warning {
    background: #fefce8;
    color: #a16207;
}

#event-insurance-quote-status.is-warning::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #facc15;
    color: #422006;
    font-size: 0.7rem;
    font-weight: 800;
    margin-right: 0.45rem;
    vertical-align: middle;
}

#event-insurance-quote-status.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

#event-insurance-quote-status.is-error::before {
    content: '\00d7';
    margin-right: 0.4rem;
    font-weight: 800;
    font-size: 1.1em;
}

/* ── Payment Decision Dialog ── */

.ei-payment-decision-dialog .modal-dialog {
    max-width: 560px;
}

.ei-payment-decision-dialog.modal.fade .modal-dialog {
    transform: translateY(14px) scale(0.98);
    transition: transform 0.22s ease-out;
}

.ei-payment-decision-dialog.modal.in .modal-dialog,
.ei-payment-decision-dialog.modal.show .modal-dialog {
    transform: none;
}

.ei-payment-decision-dialog .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12), 0 24px 60px rgba(37, 99, 235, 0.1);
}

.ei-payment-decision-dialog .modal-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem 1rem;
    border-bottom: 2px solid #e8effd;
    background: linear-gradient(135deg, #f8faff 0%, #f1f5fd 100%);
}

.ei-payment-decision-dialog .ei-decision-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.ei-payment-decision-dialog .ei-decision-icon svg {
    width: 20px;
    height: 20px;
    fill: #d97706;
}

.ei-payment-decision-dialog .modal-title {
    flex: 1;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.ei-payment-decision-dialog .modal-header .close {
    order: 2;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin: -0.2rem -0.3rem 0 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-shadow: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ei-payment-decision-dialog .modal-header .close:hover,
.ei-payment-decision-dialog .modal-header .close:focus-visible {
    background: #e8effd;
    color: #1e293b;
    opacity: 1;
}

.ei-payment-decision-dialog .modal-body {
    padding: 1.1rem 1.25rem 0.4rem;
}

.ei-payment-decision-dialog .modal-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
}

.ei-payment-decision-dialog .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.25rem 1.2rem;
    border-top: none;
}

.ei-payment-decision-dialog .modal-footer .btn {
    margin: 0;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ei-payment-decision-dialog .modal-footer .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.ei-payment-decision-dialog .btn.ei-continue-without-insurance {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
}

.ei-payment-decision-dialog .btn.ei-continue-without-insurance:hover {
    background: #f8faff;
    border-color: #93b4f5;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.ei-payment-decision-dialog .btn.ei-review-insurance {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1.5px solid #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.ei-payment-decision-dialog .btn.ei-review-insurance:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1e40af;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .ei-payment-decision-dialog.modal.fade .modal-dialog,
    .ei-payment-decision-dialog .modal-footer .btn,
    #event-insurance-quote-status .ei-retry-quote::before {
        transform: none;
        transition: none;
    }
}

@media (max-width: 480px) {
    .ei-payment-decision-dialog .modal-footer {
        flex-direction: column-reverse;
    }

    .ei-payment-decision-dialog .modal-footer .btn {
        display: block;
        width: 100%;
        margin: 0;
    }

    #event-insurance-quote-status:not(:empty) {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}


/* ── Premium Display ── */

#event-insurance-premium {
    min-height: 0;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    letter-spacing: 0.01em;
}

#event-insurance-premium:not(:empty) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #e0eaff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 9px;
    margin-top: 0.75rem;
}

#event-insurance-premium:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #2563eb;
    border-radius: 50%;
}

#event-insurance-premium .event-insurance-premium-label {
    font-weight: 700;
    color: #1e293b;
}

#event-insurance-premium .event-insurance-premium-value {
    font-weight: 800;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
}

#event-insurance-premium .event-insurance-premium-info {
    margin-left: 0;
}


/* ── Smooth panel open when opt-in is active ── */

#event-insurance-wrapper > .ei-opt-in.is-active {
    border-radius: 10px 10px 0 0;
}
