.container {
    max-width: var(--container);
    margin: 0 auto;
}

/* ---------- Section wrapper ---------- */
.insurance-section {
    padding: 70px 0 40px;
}


/* ---------- Insurance filter (dropdown) ---------- */
.insurance-filter-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.insurance-filter-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.insurance-dropdown {
    position: relative;
    min-width: 160px;
}

.insurance-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
    cursor: pointer;
    transition: box-shadow .2s ease;
}

.insurance-dropdown-trigger:hover {
    border: 1px solid var(--primary);
}

.insurance-dropdown-trigger .chev {
    width: 14px;
    height: 14px;
    color: var(--primary);
    transition: transform .2s ease;
    flex: none;
}

.insurance-dropdown.open .insurance-dropdown-trigger .chev {
    transform: rotate(180deg);
}

.insurance-dropdown-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    min-width: 180px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(31, 53, 107, 0.18);
    padding: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(.97);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.insurance-dropdown.open .insurance-dropdown-pop {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.insurance-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.insurance-option:hover {
    background: #EEF3FD;
    color: var(--primary);
}

.insurance-option.active {
    background: var(--primary);
    color: #fff;
}

/* ---------- CF7 live-validation suppression ---------- */

.wpcf7-form:not(.submit-attempted) .wpcf7-not-valid-tip,
.wpcf7-form:not(.submit-attempted) .wpcf7-response-output {
    display: none !important;
}

.wpcf7-form:not(.submit-attempted) .wpcf7-form-control.wpcf7-not-valid {
    border-color: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0 !important;
}



/* ---------- Packages grid ---------- */
.packages-wrap {
    position: relative;
    min-height: 420px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .4s ease;
}

.packages-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.packages-grid.hidden {
    display: none;
}

.package-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 24px 24px;
    text-align: center;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.package-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.package-card.silver {
    border-color: var(--silver);
}

.package-card.gold {
    border-color: var(--yellow);
}

.package-card.platinum {
    border-color: var(--purple);
}

.package-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 6px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    z-index: 2;
}

.package-card.silver .package-tag {
    border-color: var(--silver);
}

.package-card.gold .package-tag {
    border-color: var(--yellow);
}

.package-card.platinum .package-tag {
    border-color: var(--purple);
}

.package-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #EEF0F5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 22px;
}

.package-card.gold .package-icon {
    background: #FCF3E3;
}

.package-card.platinum .package-icon {
    background: #DDD4FD;
}

.package-icon svg {
    width: 34px;
    height: 34px;
}

.package-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.package-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.package-card.gold .package-price .amount {
    color: var(--yellow);
}

.package-card.silver .package-price .amount {
    color: var(--silver);
}

.package-card.platinum .package-price .amount {
    color: var(--purple);
}

.package-price .unit {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.coverage-badge {
    display: inline-block;
    background: #9AA1B2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 22px;
    border-radius: 20px;
    margin-bottom: 26px;
}

.package-card.gold .coverage-badge {
    background: var(--yellow);
    color: #fff;
}

.package-card.platinum .coverage-badge {
    background: var(--purple);
    color: #fff;
}

.package-features {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    text-align: left;
}

.package-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.package-features li:last-child {
    margin-bottom: 0;
}

.check-icon {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon svg {
    width: 11px;
    height: 11px;
}

.feature-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    display: block;
}

.feature-sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    display: block;
    margin-top: 2px;
}

.btn-learn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.btn-learn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #D9E2F5;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Inquiry section ---------- */
.inquiry-section {
    margin: 60px 0;
}

/* ---------- Reveal animation base ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inquiry-card {
        grid-template-columns: 1fr;
    }

    .inquiry-image {
        min-height: 320px;
    }
}

@media (max-width: 700px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .inquiry-form {
        padding: 32px 24px;
    }

    .insurance-section {
        padding: 50px 0 30px;
    }

     .insurance-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .insurance-dropdown {
        width: 100%;
    }

    .insurance-dropdown-pop {
        left: 0;
        right: 0;
    }
}



@media (max-width:480px) {
    .insurance-filter-title {
        font-size: 28px;
    }
}