﻿/* Root wrapper */
.health-ui {
    --health-primary: #8cc63f;
    --health-secondary: #6fbf73;
    --health-radius: 22px;
    --health-border: #d6dee3;
    --health-text: #1f2937;
    --health-muted: #667085;
    --health-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --health-icon-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6 6-6-6 6-6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --health-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0-4-4m4 4 4-4M5 18h14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.health-loading-lock {
    overflow: hidden;
    touch-action: none;
}

.health-form-feedback {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    background: #fff3f4;
    color: #842029;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.health-full-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.health-full-loader.is-visible {
    display: flex;
    animation: healthLoaderFadeIn 0.22s ease-out;
}

.health-full-loader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.3) 0, transparent 44%),
        radial-gradient(circle at 85% 16%, rgba(140, 198, 63, 0.14) 0, transparent 42%),
        linear-gradient(135deg, rgba(160, 180, 196, 0.26) 0%, rgba(124, 147, 167, 0.32) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.health-full-loader__panel {
    position: relative;
    width: min(92vw, 540px);
    border-radius: 20px;
    border: 1px solid rgba(210, 224, 228, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.16),
        0 6px 18px rgba(15, 23, 42, 0.08);
    padding: 24px 22px 20px;
    overflow: hidden;
    font-family: var(--primary-font-family, "Neo Sans Pro"), "Segoe UI", Tahoma, sans-serif;
    animation: healthLoaderPanelIn 0.3s ease-out;
}

html[lang="ar"] .health-full-loader__panel {
    font-family: "Droid Arabic Kufi", var(--primary-font-family, "Neo Sans Pro"), "Segoe UI", Tahoma, sans-serif;
}

.health-full-loader__panel::before {
    content: "";
    position: absolute;
    left: -35%;
    top: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #8cc63f 52%, #30b5e3 100%);
    animation: healthLoaderSweep 1.8s linear infinite;
}

.health-full-loader__brand {
    position: relative;
    width: 150px;
    height: 150px;
    padding: 14px;
    box-sizing: border-box;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
}

.health-full-loader__brand::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(140, 198, 63, 0.24) 0%, rgba(136, 184, 216, 0.07) 62%, transparent 100%);
    animation: healthLoaderPulse 1.8s ease-in-out infinite;
}

.health-full-loader__logo {
    width: auto;
    height: auto;
    max-width: 78px;
    max-height: 78px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.14));
}

.health-full-loader__logo-orbit {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 3px solid rgba(216, 228, 204, 0.86);
    border-top-color: #8cc63f;
    border-right-color: #88b8d8;
    animation: healthLoaderSpin 1s linear infinite;
}

.health-full-loader__logo-orbit::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    border: 2px dashed rgba(136, 184, 216, 0.42);
    animation: healthLoaderSpinReverse 1.65s linear infinite;
}

.health-full-loader__title {
    font-family: inherit;
    font-size: 16px;
    font-weight: var(--font-weight-semibold, 600);
    color: #254418;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.1px;
    margin-bottom: 12px;
    text-wrap: balance;
}

.health-full-loader__bar {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(160, 206, 120, 0.4);
    background: linear-gradient(90deg, #edf5e7 0%, #f8fcf5 48%, #edf5e7 100%);
    background-size: 220% 100%;
    animation: healthLoaderShimmer 1.2s linear infinite;
    position: relative;
    overflow: hidden;
    margin-bottom: 13px;
}

.health-full-loader__bar::after {
    content: "";
    position: absolute;
    top: 1px;
    left: -34%;
    width: 34%;
    height: calc(100% - 2px);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(48, 181, 227, 0.16) 0%, rgba(140, 198, 63, 0.46) 100%);
    animation: healthLoaderBarRun 1.12s ease-in-out infinite;
}

.health-full-loader__skeleton {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.health-full-loader__skeleton span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf4e7 0%, #f9fcf6 50%, #edf4e7 100%);
    background-size: 220% 100%;
    animation: healthLoaderShimmer 1.35s linear infinite;
}

.health-full-loader__skeleton span:nth-child(1) {
    width: 78%;
}

.health-full-loader__skeleton span:nth-child(2) {
    width: 92%;
}

.health-full-loader__skeleton span:nth-child(3) {
    width: 64%;
}

@keyframes healthLoaderFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes healthLoaderPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes healthLoaderSweep {
    0% {
        left: -35%;
    }
    100% {
        left: 105%;
    }
}

@keyframes healthLoaderPulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes healthLoaderShimmer {
    0% {
        background-position: 220% 0;
    }
    100% {
        background-position: -35% 0;
    }
}

@keyframes healthLoaderBarRun {
    0% {
        left: -34%;
    }
    100% {
        left: 104%;
    }
}

@keyframes healthLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .health-full-loader.is-visible,
    .health-full-loader__panel,
    .health-full-loader__panel::before,
    .health-full-loader__brand::before,
    .health-full-loader__logo-orbit,
    .health-full-loader__logo-orbit::after,
    .health-full-loader__bar,
    .health-full-loader__bar::after,
    .health-full-loader__skeleton span {
        animation: none !important;
    }
}

/* Mandatory field indicator */
.mandatory {
    color: #d32f2f;
}

/* Card container */
.health-ui .motor-claims-form-cover {
    border-radius: var(--health-radius);
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.health-ui .motor-claims-form-body {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(191, 222, 168, 0.72);
    border-radius: var(--health-radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header */
.health-ui .motor-claims-form-hd h1 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111827;
}

/* =========================
   Health RTL/LTR Input Fix
   ========================= */

.health-ui form {
    text-align: start;
    direction: inherit;
}

.health-ui .form-control,
.health-ui .form-select {
    text-align: start;
    direction: inherit;
    min-height: 48px;
    border: 1px solid var(--health-border);
    border-radius: 10px;
    color: var(--health-text);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fix placeholders explicitly */
.health-ui .form-control::placeholder {
    text-align: start;
    direction: inherit;
    color: #98a2b3;
}

.health-ui .form-control:hover,
.health-ui .form-select:hover {
    border-color: #bec8cf;
}

.health-ui .form-control:focus,
.health-ui .form-select:focus {
    border-color: var(--health-primary);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.16);
}

.health-ui .form-control.is-invalid,
.health-ui .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.health-ui .form-label {
    color: #334155;
    font-weight: 600;
}

/* =========================
   Health Checkboxes
   ========================= */
.health-ui .checkbox {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    margin: 6px 0;
    color: #475467;
    font-size: 14px;
    cursor: pointer;
}

.health-ui .checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.health-ui .checkbox .checkmark {
    position: relative;
    order: -1;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #dfe8d1;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(31, 41, 55, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.health-ui .checkbox .checkmark:after {
    content: "\2713";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.health-ui .checkbox:hover .checkmark {
    transform: translateY(-1px);
    border-color: #b9d7a0;
    box-shadow: 0 6px 12px rgba(31, 41, 55, 0.1);
}

.health-ui .checkbox input:checked ~ .checkmark {
    transform: translateY(-1px);
    border-color: #79b131;
    background: linear-gradient(135deg, #2f4f1f, #1f8b4c);
    box-shadow: 0 8px 16px rgba(31, 139, 76, 0.28), 0 0 0 3px rgba(140, 198, 63, 0.2);
}

.health-ui .checkbox input:checked ~ .checkmark:after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.health-ui .checkbox a {
    color: #2f4f1f;
    text-decoration: underline;
}

.health-ui .checkbox a:hover {
    color: #1f8b4c;
}


/* CTA */
/* =========================
   Health Primary CTA Button
   ========================= */

.health-ui .btn-get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    height: 52px;

    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(90deg,
            #7fcfd6 0%,
            /* darker blue */
            #7fbf3f 100%
            /* darker green */
        );
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;

    box-shadow: 0 2px 6px rgba(127, 191, 63, 0.28);
    transition: all 0.2s ease;
}


.health-ui .btn-get:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(127, 191, 63, 0.22);
}

.health-ui .btn-get:active {
    filter: brightness(0.97);
    transform: translateY(0);
}

.health-ui .btn-get-outline {
    background: #ffffff;
    color: #2f4f1f;
    border: 1px solid #8cc63f;
    box-shadow: none;
    border-radius: 999px;
}

.health-ui .btn-get-outline:hover {
    background: #f5fbea;
    color: #1f8b4c;
    border-color: #79b131;
    box-shadow: 0 6px 12px rgba(121, 177, 49, 0.12);
}

.health-ui .btn-get-outline:active {
    background: #eef7df;
    color: #2f4f1f;
}

.health-ui .btn-get:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.health-ui .btn-get,
.health-ui .btn-get-outline,
.health-ui .btn-health-outline {
    --health-cta-icon: var(--health-icon-arrow-right);
}

.health-ui .btn-get::before,
.health-ui .btn-get-outline::before,
.health-ui .btn-health-outline::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: currentColor;
    -webkit-mask-image: var(--health-cta-icon);
    mask-image: var(--health-cta-icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.health-ui .btn-get {
    --health-cta-icon: var(--health-icon-arrow-right);
}

.health-ui .btn-get-outline {
    --health-cta-icon: var(--health-icon-arrow-left);
}

.health-ui .btn-health-outline {
    --health-cta-icon: var(--health-icon-download);
}

body[dir="rtl"] .health-ui .btn-get {
    --health-cta-icon: var(--health-icon-arrow-left);
}

body[dir="rtl"] .health-ui .btn-get-outline {
    --health-cta-icon: var(--health-icon-arrow-right);
}

/* =========================
   Health Radio Buttons
   ========================= */

.health-ui .radio-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
    border-radius: 999px;

    border: 1px solid var(--health-border);
    background: #ffffff;
    cursor: pointer;

    font-size: 14px;
    font-weight: 500;
    color: #475467;

    transition: all 0.2s ease;
}

/* Hide native radio */
.health-ui .radio-person input {
    display: none;
}

/* Selected state */
.health-ui .radio-person input:checked+span {
    color: #2f4f1f;
}

/* Selected container */
.health-ui .radio-person:has(input:checked) {
    background: #f2f9e8;
    border-color: #79b131;
    box-shadow: 0 8px 16px rgba(121, 177, 49, 0.16), inset 0 0 0 1px rgba(140, 198, 63, 0.18);
    transform: translateY(-1px);
}

.health-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-stepper-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.health-stepper-num {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #d6dee3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.health-stepper-item.active {
    color: #2f4f1f;
}

.health-stepper-item.active .health-stepper-num {
    background: #8cc63f;
    border-color: #8cc63f;
    color: #ffffff;
}

.health-stepper-divider {
    flex: 1;
    height: 1px;
    background: #dbe7d0;
}

/* =========================
   Health â€“ Network Page
   ========================= */

.health-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.health-plan-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    border: 1px solid var(--health-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.3);
    padding: 14px 12px;
    text-align: start;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: all 0.2s ease;
    filter: saturate(0.92);
}

.health-plan-card:hover {
    border-color: #b8d997;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.07);
}

.health-plan-card.active {
    border: 2px solid var(--health-primary);
    background: rgba(242, 249, 232, 0.52);
    box-shadow:
        0 0 0 3px rgba(140, 198, 63, 0.20),
        0 14px 24px rgba(27, 76, 34, 0.16),
        inset 0 0 0 1px rgba(140, 198, 63, 0.20);
    transform: translateY(-2px);
    filter: saturate(1.04);
}

.health-plan-card.active::before {
    content: "\2713";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #8cc63f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(38, 122, 46, 0.30);
    z-index: 3;
    pointer-events: none;
}

body[dir="rtl"] .health-plan-card.active::before {
    right: auto;
    left: 10px;
}

.health-plan-media {
    position: absolute;
    inset: 0;
    background-image: var(--plan-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.health-plan-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(
        to top,
        rgba(17, 24, 39, 0.48) 0%,
        rgba(17, 24, 39, 0.24) 20%,
        rgba(17, 24, 39, 0) 55%
    );
    pointer-events: none;
}

.health-plan-card:hover .health-plan-media,
.health-plan-card.active .health-plan-media {
    transform: scale(1.08);
}

.health-plan-title {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.health-plan-card.active .health-plan-title {
    font-size: 15px;
    font-weight: 800;
}

.health-selected-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(191, 222, 168, 0.9);
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.85);
}

.health-selected-amount {
    justify-content: center;
    min-height: 96px;
}

.health-amount-display {
    display: inline-block;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 0.2px;
}

.health-change-plan {
    border: 0;
    background: transparent;
    color: #1f8b4c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.health-change-plan:hover {
    color: #2f4f1f;
}

.network-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Hide native radio */
.network-option input {
    display: none;
}

/* Base card */
.network-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;

    padding: 18px 20px;
    border-radius: 22px;

    background: #ffffff;
    border: 2px solid #dfe8d1;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.04);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.network-card:hover {
    transform: translateY(-2px);
    border-color: #b9d7a0;
    box-shadow: 0 14px 26px rgba(31, 41, 55, 0.08);
}

/* Selected state */
.network-option input:checked+.network-card {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f8fdf3, #eef8f2);
    border-color: #79b131;
    box-shadow: 0 14px 30px rgba(121, 177, 49, 0.2), 0 0 0 3px rgba(140, 198, 63, 0.18);
}

.network-option input:checked+.network-card::before {
    content: "\2713";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #2f4f1f, #1f8b4c);
    box-shadow: 0 4px 10px rgba(31, 139, 76, 0.3);
}

body[dir="rtl"] .network-option input:checked+.network-card::before {
    right: auto;
    left: 12px;
}

/* Content */
.network-info {
    flex: 1 1 auto;
    min-width: 0;
}

.network-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.network-info small {
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.price {
    color: #14b114;
    font-weight: 800;
}

.amount {
    font-size: 34px;
}

.currency {
    font-size: 14px;
    margin-left: 4px;
}

.review-premium-value .amount {
    font-size: 42px;
}

.review-premium-value .currency {
    font-size: 14px;
}

.review-premium-value {
    position: relative;
    min-height: 52px;
}

.review-premium-value.is-loading .amount,
.review-premium-value.is-loading .currency {
    opacity: 0;
}

.review-premium-value.is-loading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 180px;
    max-width: 100%;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8efe3 0%, #f4f8f1 50%, #e8efe3 100%);
    background-size: 220% 100%;
    animation: healthPremiumShimmer 1.1s linear infinite;
}

.review-premium-value.is-loading::after {
    content: attr(data-loading-text);
    position: absolute;
    left: 0;
    top: 34px;
    font-size: 12px;
    font-weight: 700;
    color: #6b8a4f;
    letter-spacing: 0.02em;
    animation: healthPremiumPulse 1s ease-in-out infinite;
}

@keyframes healthPremiumShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -30% 0;
    }
}

@keyframes healthPremiumPulse {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.desc {
    font-size: 13px;
    margin-top: 6px;
    color: #6f8f2d;
}

.network-default-params {
    margin-top: 10px;
    border: 1px solid #e3f1d6;
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.85);
    overflow: hidden;
}

.network-param-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    font-size: 13px;
    color: #475467;
}

.network-param-row + .network-param-row {
    border-top: 1px solid #e8efe3;
}

.network-param-row strong {
    color: #1f2937;
    font-weight: 700;
}

.network-param-row strong.price,
.network-param-row strong.review-premium-value {
    color: #14b114;
}

.health-summary-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.health-summary-plan-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    text-align: start;
}

.health-summary-plan-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-summary-plan-title-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.health-summary-plan-card {
    border: 1px solid #dbe3d8;
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.health-summary-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf1ea;
}

.health-summary-plan-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.health-summary-plan-head .review-premium-value {
    min-height: 52px;
}

.health-summary-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.health-summary-bullets li {
    position: relative;
    padding-inline-start: 28px;
    font-size: 14px;
    line-height: 1.45;
    color: #667085;
}

.health-summary-bullets li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 18px;
    height: 20px;
    background: linear-gradient(180deg, #18bf18 0%, #0f8f0f 100%);
    clip-path: polygon(50% 0%, 90% 14%, 90% 56%, 50% 100%, 10% 56%, 10% 14%);
    box-shadow: 0 4px 8px rgba(31, 139, 76, 0.24);
}

.health-summary-bullets li::after {
    content: "\2713";
    position: absolute;
    inset-inline-start: 4px;
    top: 3px;
    font-size: 11px;
    line-height: 1;
    color: #ffffff;
    font-weight: 800;
}

.health-summary-bullets strong {
    color: #111827;
    font-weight: 700;
}

.health-summary-addon-card {
    border: 1px solid #dbe3d8;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
}

.health-summary-addon-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.health-summary-addon-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #475467;
    text-align: start;
}

.health-summary-addon-options {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.health-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
    text-align: start;
}

.health-field-hint-icon {
    color: var(--health-primary, #139bd3);
    line-height: 1;
    margin-top: 1px;
    flex-shrink: 0;
}

.health-field-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475467;
    text-align: start;
}

.health-static-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid #dbe8ce;
    border-radius: 8px;
    background: #f8fcf3;
    font-size: 13px;
    line-height: 1.45;
    color: #2d3a2a;
    text-align: start;
}

.health-summary-addon-benefits {
    margin: 0 0 12px;
    padding-inline-start: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #475467;
    font-size: 13px;
}

.health-summary-addon-benefits li {
    list-style: disc;
    line-height: 1.45;
}

.health-review-breakdown {
    border: 1px solid #e3f1d6;
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.65);
    padding: 10px 12px;
}

.health-review-total-card {
    border: 1px solid #dfe8d1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px 12px;
}

.health-review-medical-note {
    border: 0;
    border-inline-start: 4px solid var(--health-primary);
    border-radius: 8px;
    background: rgba(243, 249, 236, 0.9);
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.45;
    padding: 10px 12px 10px 14px;
}

.health-review-total-price .amount {
    font-size: 42px;
    line-height: 1;
    color: #14b114;
}

.health-review-total-price .currency {
    font-size: 14px;
    color: #14b114;
    margin-inline-start: 4px;
}

.health-review-breakdown-card {
    border-radius: 14px;
    padding: 12px;
}

.health-review-breakdown-toggle {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #2f4f1f;
    list-style: none;
}

.health-review-breakdown-toggle::-webkit-details-marker {
    display: none;
}

.health-review-breakdown-toggle::before {
    content: "+ ";
    color: #1f8b4c;
}

.health-review-breakdown[open] .health-review-breakdown-toggle::before {
    content: "- ";
}

.health-review-breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.health-review-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dfe8d1;
    border-radius: 10px;
    background: rgba(249, 255, 244, 0.75);
}

.health-review-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
    font-size: 13px;
}

.health-review-table th {
    background: linear-gradient(90deg, #8cc63f 0%, #79bd6b 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 9px 10px;
    border: 1px solid #7db748;
    text-align: center;
    white-space: nowrap;
}

.health-review-table td {
    border: 1px solid #e4ecd9;
    padding: 9px 10px;
    vertical-align: middle;
    background: #ffffff;
    color: #1f2937;
}

.health-review-table-value {
    text-align: center;
    font-weight: 700;
    color: #1f8b4c;
    white-space: nowrap;
}

.health-review-table-ar {
    text-align: right;
    font-weight: 600;
}

.health-review-table-ar-only {
    text-align: right;
    font-weight: 600;
}

.health-review-table-total td {
    font-weight: 800;
    background: #f2f8eb;
    color: #2f4f1f;
}

@media (max-width: 575.98px) {
    .health-review-table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .health-review-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 8px;
        font-size: 12px;
    }

    .health-review-table thead {
        display: none;
    }

    .health-review-table tbody,
    .health-review-table tr,
    .health-review-table td {
        display: block;
        width: 100%;
    }

    .health-review-table tr {
        border: 1px solid #e4ecd9;
        border-radius: 10px;
        background: #ffffff;
        overflow: hidden;
    }

    .health-review-table td {
        border: 0;
        border-bottom: 1px solid #eef3e8;
        padding: 8px 10px;
    }

    .health-review-table td:first-child {
        background: #f9fcf4;
        color: #2f4f1f;
        font-weight: 700;
    }

    .health-review-table td:last-child {
        border-bottom: 0;
        text-align: left;
        color: #1f8b4c;
        font-weight: 700;
    }

    .health-review-table.is-ar td:last-child {
        text-align: right;
    }

    .health-review-table-total {
        border-color: #d4e6be;
    }

    .health-review-table-total td:first-child {
        background: #eef8de;
    }
}

.health-review-item {
    border: 1px solid #e4ecd9;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.health-review-item-head {
    padding: 10px 12px;
    border-bottom: 1px solid #eef3e8;
    background: #f9fcf4;
    color: #2f4f1f;
    font-size: 13px;
    font-weight: 700;
}

.health-review-item-body {
    padding: 10px 12px;
    color: #475467;
    font-size: 13px;
}

.health-review-item-body strong {
    color: #1f2937;
    font-weight: 700;
}

.health-review-subrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.health-review-subrow + .health-review-subrow {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e8efe3;
}

/* Gold plan includes */
.network-includes {
    margin-top: 14px;
    border: 1px solid #dbe9d3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdf9 0%, #f4faf5 100%);
    overflow: hidden;
}

.network-includes-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.network-includes-toggle::-webkit-details-marker {
    display: none;
}

.network-includes-toggle:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(20, 155, 211, 0.2);
}

.network-includes-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.network-includes-label {
    color: #60725f;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.network-includes-subtitle {
    color: #214137;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.network-includes-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid #cfe0c4;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(31, 41, 55, 0.08);
}

.network-includes-icon::before,
.network-includes-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #1f8b4c;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.network-includes-icon::before {
    width: 10px;
    height: 2px;
}

.network-includes-icon::after {
    width: 2px;
    height: 10px;
}

.network-includes[open] .network-includes-icon::after {
    opacity: 0;
}

.network-includes-panel {
    padding: 0 14px 14px;
}

.network-includes-list {
    display: grid;
    gap: 8px;
}

.network-includes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    color: #214137;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    background: #ffffff;
    border: 1px solid #e8efe3;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.04);
}

.network-includes-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #98c829, #139bd3);
}

/* Download link */
.network-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    color: #1f8b4c;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.network-download:hover,
.network-download:focus-visible {
    color: #125e47;
    text-decoration: none;
    border-color: #c8e2c1;
    background: linear-gradient(135deg, #f4fbeb 0%, #edf9ff 100%);
    box-shadow: 0 10px 18px rgba(31, 139, 76, 0.08);
    transform: translateY(-1px);
}

.network-download:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 155, 211, 0.18), 0 10px 18px rgba(31, 139, 76, 0.08);
}

/* Badge */
.network-badge {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .network-card {
        padding: 18px;
    }

    .network-badge {
        width: 72px;
        height: 72px;
    }

    .network-includes-toggle {
        padding: 11px 12px;
    }

    .network-includes-panel {
        padding: 0 12px 12px;
    }
}

/* =========================
   Health Counter ( + / - )
   ========================= */
/* Center Adults / Children labels above counters */
.health-ui .health-counter-label,
.health-ui label.fw-medium {
    display: block;
    text-align: center;
}

.health-ui .health-counter {
    direction: ltr;
    margin-top: 6px;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    /* FORCE space for + and - */

    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--health-border);
    background: #ffffff;
    overflow: hidden;
}

.health-ui .counter-btn {
    width: 56px;
    height: 100%;

    background: #f8fafc;
    color: #333;

    border: none;

    font-size: 24px;
    font-weight: 700;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.15s ease, color 0.15s ease;
}

.health-ui .counter-btn:hover {
    background: #eef2f7;
}

/* Divider lines ONLY where needed */
.health-ui .counter-btn.minus {
    border-right: 1px solid #e5e5e5;
}

.health-ui .counter-btn.plus {
    border-left: 1px solid #e5e5e5;
}

.health-ui .counter-input {
    width: 100%;
    height: 100%;

    border: none;
    background: transparent;

    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #000;

    pointer-events: none;
}

@media (max-width: 767px) {
    .health-ui .health-counter {
        height: 60px;
    }
}

/* Disabled family member option */
.family-member-select option.is-selected {
    color: #6c757d;
    /* muted text */
    background-color: #f1f3f5;
    font-style: italic;
}

/* Optional: cursor feedback */
.family-member-select option:disabled {
    cursor: not-allowed;
}

/* Selected chips container */
.selected-chips .remove-chip {
    cursor: pointer;
    font-weight: 600;
    opacity: 0.8;
}

.selected-chips .remove-chip:hover {
    opacity: 1;
}

/* =========================
   Health File Upload
   ========================= */

.health-file-upload {
    position: relative;
    width: 100%;
}

/* Hide native input but keep it clickable */
.health-file-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Custom UI */
.health-file-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 52px;
    padding: 0 16px;

    border-radius: 10px;
    border: 1px dashed #c5d2c9;
    background: #ffffff;

    transition: all 0.25s ease;
}

/* Hover */
.health-file-upload:hover .health-file-ui {
    border-color: var(--health-primary);
    background: #f7fbf3;
}

/* File text */
.health-file-text {
    font-size: 14px;
    color: #6c757d;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 70%;
}

/* Button */
.health-file-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 8px;

    background: linear-gradient(90deg, #a6d96a, #8cc63f);
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Selected state */
.health-file-upload.has-file .health-file-ui {
    border-style: solid;
    border-color: #8cc63f;
    background: #f9fff4;
}

.health-file-upload.has-file .health-file-text {
    color: #000;
    font-weight: 500;
}

.health-file-preview {
    margin-top: 10px;
    border: 1px solid #d6dee3;
    border-radius: 10px;
    background: #ffffff;
    padding: 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.health-file-preview-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
}

.health-file-preview-pdf {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

.health-file-preview-fallback {
    padding: 12px;
    font-size: 13px;
    color: #667085;
    text-align: center;
    border: 1px dashed #c5d2c9;
    border-radius: 8px;
    background: #f9fbf8;
}

/* =========================
   Health Success Page
   ========================= */

.health-success-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Main card */
.health-success-card {
    background: rgba(255, 255, 255, 0.66);
    border-radius: 28px;
    padding: 36px 28px;
    border: 1px solid rgba(191, 222, 168, 0.72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Title */
.health-success-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

/* Divider line */
.health-success-divider {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #7fcfd6, #8cc63f);
    border-radius: 999px;
    margin: 18px auto 22px;
}

.health-success-subtitle {
    font-size: 24px;
    color: #1f2937;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.health-success-check {
    width: 84px;
    height: 84px;
    margin: 4px auto 14px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #a8df7b 0%, #8cc63f 58%, #6cab30 100%);
    box-shadow: 0 14px 28px rgba(31, 139, 76, 0.22), 0 0 0 6px rgba(140, 198, 63, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: healthSuccessPop 0.75s ease, healthSuccessPulse 1.8s ease-in-out infinite 0.85s;
}

.health-success-check span {
    color: #ffffff;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

@keyframes healthSuccessPop {
    0% {
        transform: scale(0.65);
        opacity: 0.2;
    }
    75% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes healthSuccessPulse {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(31, 139, 76, 0.22), 0 0 0 6px rgba(140, 198, 63, 0.14);
    }
    50% {
        box-shadow: 0 16px 30px rgba(31, 139, 76, 0.26), 0 0 0 10px rgba(140, 198, 63, 0.18);
    }
}

/* Message */
.health-success-message {
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 640px;
    margin-inline: auto;
}

/* Thank you */
.health-success-thank {
    font-size: 16px;
    font-weight: 700;
    color: #2f4f1f;
    margin-top: 12px;
}

.health-success-selection {
    margin-top: 22px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(191, 222, 168, 0.70);
    background: rgba(249, 255, 244, 0.62);
}

.health-success-selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.health-success-selection-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #2f4f1f;
}

.health-success-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.health-success-selection-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(214, 222, 227, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    padding: 10px 12px;
}

.health-success-selection-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.health-success-selection-card small {
    display: block;
    color: #667085;
    font-size: 11px;
    line-height: 1.2;
}

.health-success-selection-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

/* =========================
   Policy Card
   ========================= */

.health-policy-card {
    margin-top: 28px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(249, 255, 244, 0.62);
    border: 1.5px solid rgba(191, 222, 168, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.health-policy-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* Grid */
.health-policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.health-policy-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-policy-label {
    font-size: 12px;
    color: #6c757d;
}

.health-policy-value {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    word-break: break-all;
}

.health-policy-value--policy-no {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.2px;
    color: var(--color-100);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* =========================
   Download Buttons
   ========================= */

.btn-health-outline {
    height: 50px;
    border-radius: 999px;
    border: 1.5px solid #8cc63f;
    background: #ffffff;
    color: #6f8f2d;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-health-outline:hover {
    background: #f6fde9;
}

.btn-health-outline.secondary {
    border-color: #cfded0;
    color: #555;
}

/* Success actions */
.health-success-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.health-ui .health-success-action-btn {
    width: auto;
    min-width: 0;
}

.health-success-actions.has-downloads .health-success-action-btn {
    flex: 1 1 0;
}

.health-success-actions.single .health-success-action-btn {
    width: min(100%, 320px);
}

/* =========================
   Mobile tweaks
   ========================= */

@media (max-width: 576px) {

    .health-success-card {
        padding: 28px 22px;
    }

    .health-success-subtitle {
        font-size: 20px;
    }

    .health-success-check {
        width: 72px;
        height: 72px;
    }

    .health-success-check span {
        font-size: 34px;
    }

    .health-policy-grid {
        grid-template-columns: 1fr;
    }

    .health-success-selection-grid {
        grid-template-columns: 1fr;
    }

    .health-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .health-ui .health-success-action-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* =========================
   Health Tabs (Full Width)
   ========================= */

.health-ui .health-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    border-bottom: none;
    margin-bottom: 22px;
}

.health-ui .health-tabs .nav-item {
    margin-bottom: 0;
}

.health-ui .health-tabs .nav-link {
    width: 100%;
    height: 52px;

    border-radius: 10px;
    border: 1px solid var(--health-border);
    background: #ffffff;

    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;

    color: #475467;
    text-align: center;

    transition: all 0.25s ease;
}

/* Hover */
.health-ui .health-tabs .nav-link:hover {
    background: #f7fbf3;
    border-color: var(--health-primary);
}

/* Active tab */
.health-ui .health-tabs .nav-link.active {
    background: linear-gradient(
        90deg,
        rgba(127, 207, 214, 0.25),
        rgba(140, 198, 63, 0.25)
    );

    color: #2f4f1f; /* deep olive text */
    border-color: var(--health-primary);

    box-shadow: inset 0 0 0 1px rgba(140, 198, 63, 0.12);
}

/* Remove default bootstrap underline */
.health-ui .health-tabs .nav-link::after {
    display: none;
}

/* Mobile tweaks */
@media (max-width: 576px) {
    .health-plan-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .health-ui .health-tabs {
        gap: 8px;
    }

    .health-ui .health-tabs .nav-link {
        font-size: 14px;
        height: 54px;
    }

    .health-amount-display {
        font-size: 30px;
    }

    .health-summary-plan-title {
        font-size: 24px;
    }

    .health-summary-plan-title-image {
        width: 36px;
        height: 36px;
    }

    .health-summary-plan-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .health-summary-plan-head h3 {
        font-size: 22px;
    }

    .health-summary-addon-label {
        font-size: 16px;
    }

    .health-summary-addon-options {
        justify-content: flex-start;
    }

    .health-ui .btn-get,
    .health-ui .btn-get-outline,
    .health-ui .btn-health-outline,
    .health-ui .health-success-action-btn {
        height: 56px;
        min-height: 56px;
        font-size: 15px;
        padding-inline: 16px;
    }
}

/* =========================
   Family Flow Styles
   ========================= */

.health-ui .upload-mode-option .upload-mode-check {
    border-color: #dfe8d1;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(31, 41, 55, 0.06);
}

.health-ui .upload-mode-option input:checked ~ .upload-mode-check {
    border-color: transparent;
    background: linear-gradient(135deg, #2f4f1f, #1f8b4c);
    box-shadow: 0 4px 10px rgba(31, 139, 76, 0.3);
}

.health-ui .upload-mode-option input:checked ~ .upload-mode-check:after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.health-ui .member-details-summary {
    background: linear-gradient(135deg, #cfeedd, #e6f5da);
    color: #2f5b3d;
    border: 1px solid #b7dcc0;
    box-shadow: 0 1px 2px rgba(47, 91, 61, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    list-style: none;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.health-ui .member-details-summary::-webkit-details-marker {
    display: none;
}

.health-ui .member-details-summary::marker {
    content: '';
}

.health-ui .member-details-summary::before {
    content: none !important;
    display: none !important;
}

.health-ui .member-details-summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    color: #2f5b3d;
}

.health-ui details[open] > .member-details-summary::after {
    content: '-';
}

.health-ui .member-details-accordion {
    border: 1px solid #d4dfc7;
}

.health-ui #familyMedicalTabsRoot,
.health-ui #familyLimitsTabsRoot,
.health-ui #familyMembersTabsRoot,
.health-ui #familyDocumentsTabsRoot {
    margin-bottom: 1rem;
}

.health-ui .family-medical-tabs,
.health-ui .family-limits-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0;
    border-bottom: 1px solid #cfdac8;
    margin-bottom: 0;
}

.health-ui .family-medical-tabs::-webkit-scrollbar,
.health-ui .family-limits-tabs::-webkit-scrollbar {
    height: 6px;
}

.health-ui .family-medical-tabs::-webkit-scrollbar-thumb,
.health-ui .family-limits-tabs::-webkit-scrollbar-thumb {
    background: #c7d9bf;
    border-radius: 999px;
}

.health-ui .member-medical-tab,
.health-ui .member-limits-tab {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5b6673;
    border-radius: 0;
    padding: 0.72rem 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: max-content;
}

.health-ui .member-medical-tab:hover,
.health-ui .member-limits-tab:hover {
    color: #2f5b3d;
    background: rgba(138, 197, 63, 0.08);
}

.health-ui .member-medical-tab.active,
.health-ui .member-limits-tab.active {
    color: #2f5b3d;
    border-bottom-color: #8ac53f;
    background: transparent;
}

.health-ui .family-medical-panel,
.health-ui .family-limits-panel {
    border: 1px solid #cfdac8;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #f7fbf5;
}

.health-ui .family-member-context-heading {
    margin: 0;
    color: #2f5b3d;
    font-size: clamp(1.28rem, 1.5vw, 1.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
}

.health-ui .family-member-context-divider {
    margin: 8px auto 14px;
}

.health-ui .member-medical-question.is-invalid {
    border: 1px solid #d86f6f;
    border-radius: 10px;
    padding: 0.75rem;
    background: #fff8f8;
}

.health-ui .member-medical-prev {
    background: #ffffff;
    color: #2f5b3d;
    border: 1px solid #8ac53f;
    --health-cta-icon: var(--health-icon-arrow-left);
}

body[dir="rtl"] .health-ui .member-medical-prev {
    --health-cta-icon: var(--health-icon-arrow-right);
}

.health-ui .family-medical-actions {
    flex-wrap: nowrap !important;
}

.health-ui .family-medical-actions .btn {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .health-ui .family-medical-tabs,
    .health-ui .family-limits-tabs {
        gap: 0.4rem;
        border-bottom: 0;
        padding-bottom: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .health-ui .member-medical-tab,
    .health-ui .member-limits-tab {
        border: 1px solid #cfdac8;
        border-bottom-width: 1px;
        border-radius: 10px;
        background: #ffffff;
        color: #4f5c6a;
        padding: 0.56rem 0.8rem;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .health-ui .member-medical-tab.active,
    .health-ui .member-limits-tab.active {
        border-color: #8ac53f;
        background: #eef8e4;
        color: #2f5b3d;
    }

    .health-ui .family-medical-panel,
    .health-ui .family-limits-panel {
        border-top: 1px solid #cfdac8;
        border-radius: 12px;
    }

    .health-ui .family-member-context-heading {
        font-size: 1.22rem !important;
        font-weight: 800 !important;
    }
}
