/* Root wrapper */
.health-ui {
    --health-primary: #8cc63f;
    --health-secondary: #6fbf73;
    --health-radius: 22px;
}

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

/* Card container */
.health-ui .motor-claims-form-cover {
    border-radius: var(--health-radius);
    background: #ffffff;
}

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

/* =========================
   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;
}

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


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

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

    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;

    transition: all 0.25s ease;
}


.health-ui .btn-get:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

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

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

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

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

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

    border: 1.5px solid #dcdcdc;
    cursor: pointer;

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

    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: #ffffff;
}

/* Selected container */
.health-ui .radio-person:has(input:checked) {
    background: linear-gradient(90deg, #a6d96a, #8cc63f);
    border-color: transparent;
}

/* =========================
   Health – Network Page
   ========================= */

.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;

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

    background: #ffffff;
    border: 2px solid #000000;

    transition: all 0.25s ease;
    cursor: pointer;
}

/* Selected state */
.network-option input:checked+.network-card {
    background: linear-gradient(135deg, #c9f0f1, #b4e89a);
    border-color: transparent;
}

/* Content */
.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;
}

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

/* Download link */
.network-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: red;
    text-decoration: none;
}

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

/* =========================
   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: 1.5px solid #dcdcdc;
    background: #ffffff;
    overflow: hidden;
}

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

    background: #fafafa;
    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;
}

/* 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;
    inset: 0;
    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: 14px;
    border: 1.5px dashed #cfded0;
    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: 999px;

    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 Success Page
   ========================= */

.health-success-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Main card */
.health-success-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

/* 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;
}

/* Message */
.health-success-message {
    font-size: 14.5px;
    line-height: 1.6;
    color: #555;
}

/* Thank you */
.health-success-thank {
    font-weight: 700;
    color: #14b114;
    margin-top: 16px;
}

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

.health-policy-card {
    margin-top: 28px;
    padding: 22px;
    border-radius: 22px;
    background: #f9fff4;
    border: 1.5px solid #e3f1d6;
}

.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-status {
    font-size: 14px;
    font-weight: 700;
    color: #14b114;
}

/* =========================
   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;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

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

@media (max-width: 576px) {

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

    .health-success-title {
        font-size: 22px;
    }

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

/* =========================
   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: 999px;
    border: 1.5px solid #dcdcdc;
    background: #ffffff;

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

    color: #555;
    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: none;
}

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

/* Mobile tweaks */
@media (max-width: 576px) {
    .health-ui .health-tabs {
        gap: 8px;
    }

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