:root {
    --teal: #006d77;
    --teal-dark: #00515a;
    --teal-soft: #dff1f2;
    --navy: #10243f;
    --orange: #f26a2e;
    --gray: #6b7280;
    --light-gray: #eef2f4;
    --border: #d7dee3;
    --white: #ffffff;
    --bg: #f5f8f9;
    --shadow: 0 24px 60px rgba(16, 36, 63, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--navy);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 0;
    background: linear-gradient(135deg, #eaf7f7 0%, #f7fafb 55%, #ffffff 100%);
}

.page-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 1440px;
    gap: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* LEFT PANEL */

.side-panel {
    position: relative;
    overflow: hidden;
    width: 430px;
    flex-shrink: 0;
    padding: 42px 44px;
    background:
        linear-gradient(180deg, rgba(223, 245, 246, 0.95), rgba(211, 235, 238, 0.86)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center bottom;
}

.side-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(231, 248, 249, 0.94) 0%, rgba(231, 248, 249, 0.72) 54%, rgba(0, 82, 91, 0.18) 100%);
    pointer-events: none;
}

.side-content {
    position: relative;
    z-index: 2;
}

.logo {
    width: 235px;
    margin-bottom: 42px;
}

.mobile-logo-wrapper {
    display: none;
}

.headline {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.18;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 18px;
    letter-spacing: -0.7px;
}

.headline span {
    color: var(--teal);
    font-weight: 700;
}

.accent-line {
    width: 54px;
    height: 2px;
    background: var(--orange);
    margin: 20px 0 20px;
}

/* VIDEO TABS */

.video-tabs-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(16, 36, 63, 0.08);
    margin-bottom: 24px;
}

.video-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.6);
}

.video-tab {
    border: none;
    background: transparent;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-tab.active {
    color: var(--teal);
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--teal);
}

.video-box {
    padding: 14px;
}

.video-thumb {
    position: relative;
    height: 165px;
    border-radius: 13px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 73, 82, 0.08), rgba(0, 73, 82, 0.22)),
        url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
}

.play-button {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.play-button::before {
    content: "";
    margin-left: 5px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 20px solid var(--teal);
}

.video-control {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: rgba(10, 26, 38, 0.68);
    color: white;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    font-size: 12px;
}

.progress {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    overflow: hidden;
}

.progress span {
    display: block;
    width: 34%;
    height: 100%;
    background: white;
    border-radius: 30px;
}

.video-caption {
    font-size: 13px;
    line-height: 1.35;
    color: #41505f;
    margin: 10px 4px 0;
}

.benefits {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.benefit {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
}

.benefit-icon,
.help-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 9px 20px rgba(16, 36, 63, 0.08);
    font-size: 22px;
    font-weight: 700;
}

.benefit h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--navy);
}

.benefit p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #344356;
}

.help-card {
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    box-shadow: 0 16px 35px rgba(16, 36, 63, 0.12);
    max-width: 320px;
}

.help-card h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.help-card p {
    margin: 0 0 7px;
    font-size: 13px;
    color: #536170;
}

.help-card strong {
    color: var(--teal);
    font-size: 14px;
}

/* RIGHT FORM */

.main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    background: var(--white);
    padding: 40px;
}

.wizard-card {
    width: 100%;
    max-width: 980px;
    background: var(--white);
    border-radius: 0;
    box-shadow: none;
    padding: 42px 46px 28px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 36px;
    position: relative;
}

.wizard-progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    min-height: 90px;
}

.wizard-progress-step::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -50%;
    right: 50%;
    height: 2px;
    background: #e4e8ec;
    z-index: 0;
}

.wizard-progress-step:first-child::before {
    display: none;
}

.wizard-progress-step.active::after,
.wizard-progress-step.completed::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--teal);
    z-index: 0;
}

.wizard-progress-step:last-child.active::after,
.wizard-progress-step:last-child.completed::after {
    display: none;
}

.wizard-progress-step.completed .step-number {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.wizard-progress-step.completed {
    color: var(--teal);
}

.step-number {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef3f7;
    color: #718091;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wizard-progress-step.active .step-number,
.wizard-progress-step.completed .step-number {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.wizard-progress-step.active {
    color: var(--teal);
}

.wizard-progress-step span:last-child {
    max-width: 140px;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
    letter-spacing: 0.2px;
    text-transform: none;
}

.wizard-progress-step.completed span:last-child,
.wizard-progress-step.active span:last-child {
    color: var(--teal);
}

.wizard-progress-step span:last-child {
    white-space: normal;
}

.form-header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
}

.wizard-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* margin-bottom: 24px; */
}

.wizard-progress-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-progress-step span:last-child {
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
}

#progressbar {
    display: none;
}

#progressbar .ui-progressbar-value {
    background: linear-gradient(90deg, var(--teal), #3ab2bb);
    border-radius: 999px;
    border: none;
}

#location {
    font-size: 13px;
    color: #6b7280;
}

.wizard-card .main_question {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--navy);
}

.wizard-card .m-form__heading-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--teal);
    font-weight: 800;
}

.wizard-card .form-group {
    margin-bottom: 16px;
}

.actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

button.backward,
button.forward,
button.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

button.backward {
    color: var(--teal);
    background: transparent;
    font-weight: 700;
    padding: 0 8px;
}

.header-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid #cae2e5;
    background: #f0fbfc;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.form-header h1 {
    margin: 0 0 5px;
    font-size: 25px;
    letter-spacing: -0.3px;
}

.form-header p {
    margin: 0;
    color: #677384;
    font-size: 14px;
}

.section-title {
    margin: 24px 0 14px;
    font-size: 17px;
    color: var(--teal);
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px 22px;
}

.field {
    grid-column: span 6;
}

.field.third {
    grid-column: span 4;
}

.field.small {
    grid-column: span 3;
}

.field.two {
    grid-column: span 2;
}

.field.large {
    grid-column: span 9;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #172536;
}

input,
select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
    color: #2b3644;
    outline: none;
    background: white;
    transition: 0.2s ease;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: none;
    accent-color: var(--teal);
}

select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
}

select option {
    background-color: #ffffff !important;
    color: #2b3644 !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 8px 12px !important;
}

input:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1);
}

.phone-field {
    display: flex;
}

.phone-code {
    width: 62px;
    border-radius: 4px 0 0 4px;
    border-right: none;
    background: #f8fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border);
}

.phone-field input {
    border-radius: 0 4px 4px 0;
}

.divider {
    margin: 22px 0 4px;
    height: 1px;
    background: #e8edf0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
    color: #263241;
    font-size: 14px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    margin-top: 2px;
}

.checkbox-row small {
    display: block;
    color: #7a8592;
    margin-top: 4px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 16px;
}

.back {
    text-decoration: none;
    color: #0c7185;
    font-weight: 700;
    font-size: 15px;
    background: transparent;
    border: 1px solid transparent;
    padding: 14px 20px;
    border-radius: 12px;
}

.primary-btn {
    border: none;
    background: #006d77;
    color: white;
    height: 52px;
    min-width: 240px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(0, 109, 119, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
    background: #00515a;
    transform: translateY(-1px);
}

..actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.actions-group button.forward,
.actions-group button.submit {
    margin-left: auto;
}

.actions-group button.backward {
    margin-left: 0;
}

.actions-group button[disabled] {
    display: none !important;
}

.actions .back {
    padding: 14px 20px;
}

#bottom-wizard {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

#bottom-wizard .actions-group {
    order: 1;
    flex: 1;
    min-width: 0;
}

#bottom-wizard .secure-note {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #8a94a3;
}

.primary-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .page {
        padding: 0;
        align-items: stretch;
    }

    .page-inner {
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }

    .main {
        order: 1;
        /* Form first on mobile/tablet */
        padding: 24px 16px;
    }

    .side-panel {
        order: 2;
        width: 100%;
        /* recupera ancho completo en mobile */
        padding: 52px 24px;
        border-top: 1px solid rgba(0, 109, 119, 0.08);
        text-align: center;
    }

    .side-panel #logo {
        display: none !important;
        /* Hide bottom logo */
    }

    .mobile-logo-wrapper {
        display: flex;
        justify-content: center;
        margin-bottom: 32px;
    }

    .mobile-logo-wrapper img {
        max-width: 210px;
        height: auto;
    }

    .headline {
        font-size: 28px;
        margin: 0 auto 12px auto;
        max-width: 550px;
    }

    .accent-line {
        margin: 16px auto 24px auto;
    }

    .video-tabs-card {
        max-width: 460px;
        margin: 0 auto 28px auto;
        text-align: left;
    }

    .benefits {
        max-width: 460px;
        margin: 0 auto 28px auto;
        text-align: left;
    }

    .help-card {
        margin: 24px auto 0 auto;
        text-align: left;
    }

    .wizard-card {
        padding: 30px 24px;
    }

    /* Two-column widget grid layout specifically for Tablet viewports */
    @media (min-width: 761px) {
        .side-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 36px;
            align-items: start;
            max-width: 920px;
            margin: 0 auto;
        }

        .headline,
        .accent-line {
            grid-column: span 2;
        }

        .video-tabs-card,
        .benefits {
            margin: 0;
            max-width: 100%;
        }

        .help-card {
            grid-column: span 2;
            margin: 24px auto 0 auto;
        }
    }
}

@media (max-width: 760px) {
    .stepper {
        overflow-x: auto;
        grid-template-columns: repeat(6, 130px);
        padding-bottom: 10px;
    }

    .field,
    .field.third,
    .field.small,
    .field.two,
    .field.large {
        grid-column: span 12;
    }

    .actions {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
    }

    .primary-btn {
        min-width: 100%;
    }

    .back {
        text-align: center;
    }

    .video-tabs {
        grid-template-columns: 1fr;
    }
}

/* ========================================== */
/* INLINE STYLES REFACTORING FROM BUY.PHP    */
/* ========================================== */

.side-panel #logo {
    max-width: 250px;
}

.video-iframe-wrapper {
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
    background: #000;
}

.video-iframe-wrapper iframe,
.video-iframe-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.stepper {
    width: 100%;
}

label .optional-text {
    font-weight: 400;
    color: #7a8592;
}

.checkbox-container-wrapper {
    margin-top: 20px;
    width: 100%;
}

.field.full {
    grid-column: span 12;
}

#applyPlan {
    font-size: small;
}

.beneficiary-section,
.pet-section {
    margin-top: 24px;
    display: none;
}

.beneficiary-section .section-title,
.pet-section .section-title {
    font-size: 16px;
}

.step-content#step-4 .section-title {
    margin-top: 30px;
}

#video-completar,
#step-2,
#step-3,
#step-4 {
    display: none;
}

/*SELECT LAGUAGE*/
.cc-selector input {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.visa {
    background-image: url('../../../assets/img/spanish-language.png');
}

.mastercard {
    background-image: url('../../../assets/img/english-language-usa.png');
}

.cc-selector input:active+.drinkcard-cc {
    opacity: .9;
}

.cc-selector input:checked+.drinkcard-cc {
    -webkit-filter: none;
    -moz-filter: none;
    filter: none;
}

.drinkcard-cc {
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 100px;
    height: 70px;
    -webkit-transition: all 100ms ease-in;
    -moz-transition: all 100ms ease-in;
    transition: all 100ms ease-in;
    -webkit-filter: brightness(1.8) grayscale(1) opacity(.7);
    -moz-filter: brightness(1.8) grayscale(1) opacity(.7);
    filter: brightness(1.8) grayscale(1) opacity(.7);
}

.drinkcard-cc:hover {
    -webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
    -moz-filter: brightness(1.2) grayscale(.5) opacity(.9);
    filter: brightness(1.2) grayscale(.5) opacity(.9);
}

/* Extras */
.cc-selector-2 input {
    margin: 5px 0 0 12px;
}

.cc-selector-2 label {
    margin-left: 7px;
}

span.cc {
    color: #6d84b4
}

/* ========================================== */
/* CUSTOM LAYOUT & LANG WIZARD OVERRIDES      */
/* ========================================== */

/* Requirement 1: Stepper occupies full width */
.stepper {
    grid-template-columns: repeat(6, 1fr) !important;
}

.step:last-child::after {
    display: none !important;
}

/* Requirement 3: All inputs and selects in steps have the same height */
.wizard-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wizard-card select {
    height: 48px !important;
}

/* New Class for 2/3 grid span */
.field.two-thirds {
    grid-column: span 8;
}

@media (max-width: 760px) {
    .field.two-thirds {
        grid-column: span 12 !important;
    }
}

/* Flag Selector Improvement (Requirement) */
.cc-selector {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 15px 0 !important;
}

.cc-selector input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.drinkcard-cc {
    cursor: pointer;
    display: block;
    width: 120px !important;
    height: 80px !important;
    border-radius: 12px !important;
    border: 3px solid #eef0f3 !important;
    background-size: contain !important;
    background-position: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    filter: brightness(1.2) grayscale(0.6) opacity(0.8) !important;
}

.drinkcard-cc:hover {
    transform: translateY(-4px) scale(1.03) !important;
    border-color: #cfd7e0 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
    filter: brightness(1.1) !important;
}

.cc-selector input:checked+.drinkcard-cc {
    border-color: #007B85 !important;
    /* Serenity Teal Brand Color */
    box-shadow: 0 8px 20px rgba(0, 123, 133, 0.25) !important;
    transform: scale(1.06) !important;
    filter: none !important;
}

/* ========================================== */
/* PREMIUM CUSTOM DATEPICKER THEME            */
/* ========================================== */

/* Datepicker container */
.ui-datepicker.ui-widget {
    font-family: 'Poppins', sans-serif !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 123, 133, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(12, 42, 51, 0.15) !important;
    padding: 15px !important;
    width: 300px !important;
    z-index: 9999999 !important;
    /* Ensure it sits on top of all components */
}

/* Datepicker Header */
.ui-datepicker .ui-datepicker-header {
    background: #007B85 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}

/* Month & Year Dropdowns inside header */
.ui-datepicker .ui-datepicker-title select {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 4px 6px !important;
    margin: 0 3px !important;
    outline: none !important;
    cursor: pointer !important;
    height: auto !important;
    /* Prevent overwriting from general input height */
}

.ui-datepicker .ui-datepicker-title select option {
    color: #333333 !important;
    background: #ffffff !important;
}

/* Prev/Next Buttons */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer !important;
    top: 10px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    border: none !important;
    transition: background 0.3s ease !important;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    top: 10px !important;
}

/* Hide original span icon text */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none !important;
}

/* FontAwesome Custom Icons for Prev/Next navigation */
.ui-datepicker .ui-datepicker-prev::after,
.ui-datepicker .ui-datepicker-next::after {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", sans-serif !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 11px !important;
}

.ui-datepicker .ui-datepicker-prev::after {
    content: "\f053" !important;
    /* fa-chevron-left */
}

.ui-datepicker .ui-datepicker-next::after {
    content: "\f054" !important;
    /* fa-chevron-right */
}

/* Calendar Grid Spacing */
.ui-datepicker table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

/* Day labels (Su Mo Tu...) */
.ui-datepicker th {
    color: #6c7a89 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 6px 0 !important;
    border: none !important;
}

/* Cells container */
.ui-datepicker td {
    padding: 0 !important;
    border: none !important;
}

/* Day number link styling */
.ui-datepicker td span,
.ui-datepicker td a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #2a3b4c !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

/* Hover day cell effect */
.ui-datepicker td a:hover {
    background-color: rgba(0, 123, 133, 0.1) !important;
    color: #007B85 !important;
}

/* Active (Selected) Day */
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-active:hover {
    background: #007B85 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(0, 123, 133, 0.3) !important;
}

/* Today Cell highlight */
.ui-datepicker .ui-datepicker-today a {
    border: 1.5px solid #007B85 !important;
    color: #007B85 !important;
}

/* Priority Secondary days (previous/next month overflow) */
.ui-datepicker .ui-priority-secondary {
    opacity: 0.35 !important;
}

/* ========================================== */
/* VALIDATION FEEDBACK STYLING                */
/* ========================================== */
.is-invalid {
    border-color: #e63946 !important;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1) !important;
}

/* PLAN CARDS GRID */
.plan-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 15px 0 25px 0;
}

.plan-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    cursor: default;
    pointer-events: none;
    opacity: 0.65;
}

.plan-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.plan-card.silver {
    border-top: 6px solid #a0aec0;
}

.plan-card.gold {
    border-top: 6px solid #d69e2e;
    background: linear-gradient(to bottom, #fffdf5, #ffffff);
}

.plan-card.platinum {
    border-top: 6px solid #00525b;
    background: linear-gradient(to bottom, #f2fafb, #ffffff);
}

.plan-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-card .plan-price {
    margin: 10px 0 18px 0;
    color: #1a202c;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.plan-card .plan-price .currency {
    font-size: 20px;
    margin-right: 2px;
    align-self: flex-start;
    margin-top: 4px;
}

.plan-card .plan-price .amount {
    font-size: 42px;
    line-height: 1;
}

.plan-card .plan-price .period {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    margin-left: 4px;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
}

.plan-card .plan-features li {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.plan-card .plan-features li::before {
    content: "✓";
    color: #38a169;
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* SELECTED PLAN CARD STATE */
.plan-card.selected {
    opacity: 1 !important;
    border-color: var(--teal) !important;
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 82, 91, 0.15) !important;
    z-index: 10;
    background: linear-gradient(to bottom, #f2fafa, #ffffff) !important;
}

.plan-card.selected::after {
    content: "✓";
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--teal);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0, 82, 91, 0.25);
    border: 2px solid #ffffff;
}

/* Coupon / Discount Input Group Styling to match the new wizard */
.coupon-input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.coupon-input-group input#input_coupon_cambridge {
    flex: 1;
    height: 48px !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px 0 0 4px !important;
    padding: 0 14px;
    font-size: 14px;
    color: #2b3644;
    outline: none;
    background: white;
    transition: 0.2s ease;
}

.coupon-input-group input#input_coupon_cambridge:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1) !important;
    position: relative;
    z-index: 1;
}

.coupon-input-group #btnApplyCouponCambridge {
    height: 48px !important;
    width: 54px !important;
    border: none !important;
    border-radius: 0 9px 9px 0 !important;
    background-color: var(--teal) !important;
    color: var(--white) !important;
    font-size: 16px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.coupon-input-group #btnApplyCouponCambridge:hover {
    background-color: var(--teal-dark) !important;
}

/* Premium Riders / Add-ons Table Styling */
.riders-table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(16, 36, 63, 0.03);
    overflow: visible;
    margin-top: 8px;
}

.premium-riders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

.premium-riders-table thead tr {
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--border);
}

.premium-riders-table thead tr:first-child th:first-child {
    border-top-left-radius: 14px;
}

.premium-riders-table thead tr:first-child th:last-child {
    border-top-right-radius: 14px;
}

.premium-riders-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 14px;
}

.premium-riders-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 14px;
}

.premium-riders-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    padding: 14px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-riders-table td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.premium-riders-table tbody tr {
    border-bottom: 1px solid var(--light-gray);
}

.premium-riders-table tbody tr:last-child {
    border-bottom: none;
}

.premium-riders-table tbody tr:hover {
    background-color: rgba(0, 109, 119, 0.02);
}

.premium-riders-table td.checkbox-cell {
    text-align: center;
    width: 60px;
}

.premium-riders-table td.checkbox-cell input[type="checkbox"] {
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
}

.premium-riders-table td.rider-name-cell {
    font-weight: 600;
    color: var(--navy);
}

.premium-riders-table td.rider-price-cell {
    text-align: right;
    font-weight: 700;
    color: var(--teal);
    font-size: 15px;
}

/* Automatic visual highlight for checked rows using modern CSS :has selector */
.premium-riders-table tbody tr:has(input[type="checkbox"]:checked) {
    background-color: rgba(0, 109, 119, 0.05) !important;
}

.premium-riders-table tbody tr:has(input[type="checkbox"]:checked) td.rider-name-cell {
    color: var(--teal-dark) !important;
}

/* Rider Info Icon & Tooltip Bubble */
.rider-info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.rider-info-icon {
    font-size: 15px;
    color: var(--teal, #006D77);
    transition: all 0.2s ease;
}

.rider-info-tooltip-wrapper:hover .rider-info-icon {
    color: var(--teal-dark, #004952);
    transform: scale(1.15);
}

.rider-custom-tooltip-bubble {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #ffffff;
    color: #1a202c;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 36, 63, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 109, 119, 0.15);
    z-index: 1050;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
}

.rider-custom-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.rider-custom-tooltip-bubble::before {
    content: '';
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: rgba(0, 109, 119, 0.15) transparent transparent transparent;
}

.rider-info-tooltip-wrapper:hover .rider-custom-tooltip-bubble {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modern input group prepends (like the dollar symbol $) */
#step-4 .input-group,
#wrapped .input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

#step-4 .input-group-prepend,
#wrapped .input-group-prepend {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--light-gray) !important;
    border: 1px solid var(--border) !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    padding: 0 16px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    height: 48px !important;
}

#step-4 .input-group input.form-control,
#wrapped .input-group input.form-control {
    border-radius: 0 4px 4px 0 !important;
    flex: 1 !important;
    height: 48px !important;
    border: 1px solid var(--border) !important;
}

/* Ensure consistent border radius for all inputs, select fields, and Select2 containers in the wizard */
#wrapped .form-control,
#wrapped select,
#wrapped .select2-container--default .select2-selection--single {
    border-radius: 4px !important;
}

/* Sleek styling for readonly and disabled inputs */
#step-4 input[readonly],
#step-4 select[readonly],
#step-4 textarea[readonly],
#wrapped input[readonly],
#wrapped select[readonly],
#wrapped textarea[readonly] {
    background: #f8fafb !important;
    color: #7a8592 !important;
    border: 1px solid var(--border) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Textarea custom styling for wizard */
#step-4 textarea,
#wrapped textarea {
    width: 100% !important;
    min-height: 110px !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #2b3644 !important;
    outline: none !important;
    background: white !important;
    transition: 0.2s ease !important;
    resize: vertical !important;
}

#step-4 textarea:focus,
#wrapped textarea:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.1) !important;
}

/* Premium Payment Pills & Plan Cards Selection */
.payment-pill-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    font-weight: 600;
    color: #7a8592 !important;
    background: var(--white) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    height: 40px;
    user-select: none;
    position: relative;
}

.payment-pill-label input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.payment-pill-label:has(input[type="radio"]:checked) {
    background-color: rgba(0, 109, 119, 0.06) !important;
    border-color: var(--teal) !important;
    color: var(--teal) !important;
}

.payment-pill-label:hover:not(:has(input[type="radio"]:checked)):not(.disabled-payment-method):not(:has(input[type="radio"]:disabled)) {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background: #f8fafb !important;
}

.payment-pill-label.disabled-payment-method,
.payment-pill-label:has(input[type="radio"]:disabled) {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}

/* Plan Cards Pill Selection */
.plan-pill-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    font-weight: 700;
    color: var(--navy) !important;
    background: var(--white) !important;
    cursor: not-allowed;
    transition: all 0.2s ease;
    font-size: 13px;
    height: 48px;
    user-select: none;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 145px;
}

.plan-pill-label input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.plan-pill-label:has(input[type="radio"]:checked) {
    background-color: rgba(0, 109, 119, 0.06) !important;
    border-color: var(--teal) !important;
    color: var(--teal) !important;
    cursor: default;
}

.plan-pill-label:has(input[type="radio"]:checked)::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 11px;
    font-weight: bold;
    color: var(--teal);
}

/* ========================================== */
/* STEP 5: MEDICAL QUESTIONS PREMIUM CARD DESIGN */
/* ========================================== */

#step-5 {
    counter-reset: medical-question-counter;
}

/* Hide the redundant secondary title */
#step-5 .section-title[key="questions"] {
    display: none !important;
}

/* Style each question as a premium card container */
#step-5 .form-group {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 18px rgba(16, 36, 63, 0.02) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease !important;
}

#step-5 .form-group:hover {
    box-shadow: 0 8px 24px rgba(16, 36, 63, 0.05) !important;
    border-color: #cbd5e1 !important;
}

/* Question text block styled with automatic CSS numbering */
#step-5 .form-group>p.lang {
    position: relative !important;
    padding-left: 54px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    margin-bottom: 20px !important;
}

/* circular green counter badge */
#step-5 .form-group>p.lang::before {
    counter-increment: medical-question-counter;
    content: counter(medical-question-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: -2px !important;
    width: 38px !important;
    height: 38px !important;
    background-color: var(--teal) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(0, 109, 119, 0.2) !important;
}

/* "Yes / No" Pill selectors container */
#step-5 .form-group .container_radio.version_2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
    margin: 0 !important;
    min-width: 95px !important;
    height: 40px !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    background-color: var(--white) !important;
    color: #7a8592 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    user-select: none !important;
    text-align: center !important;
}

/* Hide native radio input completely */
#step-5 .form-group .container_radio.version_2 input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Hide default checkmark circle */
#step-5 .form-group .container_radio.version_2 .checkmark {
    display: none !important;
}

/* Hover style for unselected option */
#step-5 .form-group .container_radio.version_2:hover {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background: #f8fafb !important;
}

/* Premium selected check state style */
#step-5 .form-group .container_radio.version_2:has(input[type="radio"]:checked) {
    background-color: rgba(0, 109, 119, 0.06) !important;
    border: 2px solid var(--teal) !important;
    color: var(--teal) !important;
    font-weight: 700 !important;
}

/* Normalize the Yes/No label inner elements */
#step-5 .form-group .container_radio.version_2 p.lang,
#step-5 .form-group .container_radio.version_2 span.lang {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    display: inline !important;
}

/* Flex options layout underneath question text */
.medical-options {
    display: flex !important;
    gap: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Hide any rogue error label inside radio buttons just in case */
#step-5 .form-group .container_radio.version_2 span.error,
#step-5 .form-group .container_radio.version_2 label.error {
    display: none !important;
}

/* Medical question validation error message below Sí/No buttons matching other fields */
#step-5 .form-group > label.error,
#step-5 .form-group > span.error,
.medical-options + label.error,
.medical-options + span.error {
    display: block !important;
    color: #e53e3e !important;
    font-size: 11px !important;
    font-weight: normal !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: static !important;
    letter-spacing: 0.2px !important;
}

/* Red border on question card when error/required is active */
#step-5 .form-group:has(> label.error),
#step-5 .form-group:has(> span.error),
#step-5 .form-group:has(.medical-options + label.error),
#step-5 .form-group:has(.medical-options + span.error),
#step-5 .form-group:has(input.error) {
    border-color: #e53e3e !important;
}

/* Conditional dropdown and textarea details row styling */
#step-5 .form-group .medical-detail-card.who_1,
#step-5 .form-group .medical-detail-card.who_2,
#step-5 .form-group .medical-detail-card.who_3,
#step-5 .form-group .medical-detail-card.who_4,
#step-5 .form-group .medical-detail-card.who_5 {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px dashed var(--border) !important;
}

/* Premium Form Label Styling inside Step 5 */
#step-5 .form-label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--navy) !important;
    margin-bottom: 10px !important;
}

/* Consolidated Step 5 styles are defined in the medical detail card section below */

/* Custom Select2 Dropdown List Overrides */
.select2-container--default .select2-dropdown {
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(16, 36, 63, 0.1) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: "Inter", "Segoe UI", sans-serif !important;
    color: #2b3644 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--teal) !important;
    color: var(--white) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--light-gray) !important;
    color: var(--teal) !important;
    font-weight: 600 !important;
}

/* ==========================================
   STEP 6: FINAL REVIEW PREMIUM LAYOUT
   ========================================== */
.review-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.review-card {
    background: #ffffff;
    border: 1px solid rgba(16, 36, 63, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(16, 36, 63, 0.04);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 6px 20px rgba(16, 36, 63, 0.06);
    border-color: rgba(16, 117, 123, 0.15);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 36, 63, 0.06);
}

.review-card-header .card-icon {
    font-size: 20px;
}

.review-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #10757b;
    margin: 0;
    letter-spacing: 0.8px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.review-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.review-separator {
    border-top: 2px dashed rgba(16, 36, 63, 0.06);
    margin: 10px 0;
    height: 0;
}

/* Plan & Beneficiaries */
.plan-summary-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 36, 63, 0.03);
}

.plan-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #8898a1;
    letter-spacing: 0.5px;
}

.plan-badge-pill {
    background: linear-gradient(135deg, #10757b 0%, #0d5e63 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(16, 117, 123, 0.2);
}

.beneficiary-count-badge {
    background: #eefafb;
    color: #10757b;
    border: 1px solid rgba(16, 117, 123, 0.15);
    font-size: 14px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    display: inline-block;
}

/* Beneficiaries Table */
.review-beneficiaries-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    border: 1px solid rgba(16, 36, 63, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.review-beneficiaries-table th {
    background: #10757b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border: none;
}

.review-beneficiaries-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.review-beneficiaries-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.review-beneficiaries-table tbody tr:hover {
    background: #f1f5f9;
}

/* Medical Questions */
.review-medical-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medical-review-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.medical-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.medical-question-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 12px;
}

.medical-answer-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.medical-answer-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    display: inline-block;
    text-transform: uppercase;
}

.medical-answer-badge.yes-badge {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.medical-answer-badge.no-badge {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Rider / Add-on status badges */
.rider-active {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
    letter-spacing: 0.4px;
}

.rider-inactive {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    letter-spacing: 0.4px;
}

.medical-details-box {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #475569;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    line-height: 1.5;
}

.obs-box {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    color: #475569;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

/* Payment Review Layout */
.payment-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.amount-due-today-card {
    background: #10757b;
    border: none;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 16px rgba(16, 117, 123, 0.2);
}

.amount-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.amount-badge-pill {
    background: #ffffff;
    color: #10757b;
    font-size: 22px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* Stepper Extra Customizations */
.stepper .step:nth-child(6).active .step-number {
    background-color: var(--teal) !important;
    color: var(--white) !important;
}

@media (max-width: 768px) {

    .review-grid,
    .payment-review-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .plan-summary-box {
        flex-direction: column;
        gap: 15px;
    }

    .amount-due-today-card {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
}

/* Premium Sub-panels for Yes answers in Step 5 */
.medical-detail-card {
    background: #f8fafc;
    border: 1px solid rgba(16, 117, 123, 0.1);
    border-left: 4px solid var(--teal);
    border-radius: 0 12px 12px 0;
    padding: 24px 24px 24px 20px;
    margin-top: 18px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.medical-detail-field {
    display: flex;
    flex-direction: column;
}

.medical-detail-field label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase;
}

/* Select2 inside medical detail cards */
#step-5 .medical-detail-card .select2-container {
    width: 100% !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple {
    background-color: #ffffff !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 8px !important;
    min-height: 38px !important;
    max-height: 80px !important;
    padding: 3px 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    overflow-y: auto !important;
}

#step-5 .medical-detail-card .select2-container--default.select2-container--focus .select2-selection--multiple,
#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple:hover {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(16, 117, 123, 0.08) !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    list-style: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--teal-soft) !important;
    border: 1px solid rgba(16, 117, 123, 0.2) !important;
    color: var(--teal-dark) !important;
    border-radius: 14px !important;
    padding: 2px 8px 2px 6px !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.3 !important;
    position: relative !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice::before,
#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice::after {
    display: none !important;
    content: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    color: var(--teal) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border: none !important;
    border-right: none !important;
    border-left: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 2px 0 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: color 0.15s ease !important;
    float: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #e74c3c !important;
    background: transparent !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    border: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin: 0 !important;
    display: inline-flex !important;
    flex: 1 !important;
    min-width: 50px !important;
    float: none !important;
    border: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-search--inline::before,
#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-search--inline::after {
    display: none !important;
    content: none !important;
}

#step-5 .medical-detail-card .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin: 0 !important;
    height: 24px !important;
    line-height: 24px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    color: #2b3644 !important;
    padding: 0 2px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    background: transparent !important;
}

/* Textarea inside medical detail cards */
#step-5 .medical-detail-card textarea.form-control.m-input {
    width: 100% !important;
    min-height: 38px !important;
    max-height: 38px !important;
    height: 38px !important;
    border: 1px solid #d9e2ec !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    font-family: inherit !important;
    color: #2b3644 !important;
    outline: none !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    resize: none !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

#step-5 .medical-detail-card textarea.form-control.m-input:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(16, 117, 123, 0.08) !important;
}

@media (max-width: 768px) {
    .medical-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================
   VALIDATION ERROR LABELS
   ========================================== */
label.error,
span.error {
    display: block;
    color: #e53e3e !important;
    font-size: 11px !important;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.2px;
    border: none !important;
}

input.error,
select.error,
textarea.error {
    border: 1px solid red !important;
}

.iti:has(input.error) .iti__selected-flag {
    height: 69%;
}

/* ========================================== */
/* MOVED FROM BUY.PHP INLINE STYLES           */
/* ========================================== */

.age-readonly {
    background-color: #eef2f4;
}

@-webkit-keyframes fade-in-up {
    0% {
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

.contenedor_video {
    display: none;
}

.video video {
    max-width: 100%;
    max-height: 100%;
    width: 750px;
    height: 450px;
}

.videoflotante {
    position: fixed;
    bottom: 67px;
    right: 20px;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    max-width: 100%;
    max-height: 100%;
    width: 330px;
    height: 185px;
    -webkit-animation: fade-in-up .25s ease forwards;
    animation: fade-in-up .25s ease forwards;
    margin-top: -50px;
}

.btn_cerrar {
    font-size: 30px;
    margin-top: -50px;
    margin-left: 320px;
    cursor: pointer;
}

button.reset {
    background: linear-gradient(to top right, #6c9aa7, #94bdbf);
}

.table th,
.table td {
    padding: 5px;
    line-height: 1.3;
    font-size: 13px;
}

.iti {
    width: 100%;
}

@media (max-width: 760px) {
    .field.two {
        grid-column: span 12 !important;
    }
}

/* ========================================== */
/* INLINE STYLE REFACTORING FROM BUY.PHP      */
/* ========================================== */

/* Utility spacing */
.mt-5 {
    margin-top: 5px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

/* Display */
.d-none {
    display: none;
}

/* Text alignment */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Width 100% */
.w-100 {
    width: 100% !important;
}

/* Flex helpers */
.flex-1 {
    flex: 1 !important;
}

/* Fieldset reset */
.fieldset-clean {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Step 4: Form grid align-items start */
#step-4 .form-grid-start {
    align-items: start !important;
}

/* Step 4: Payment method heading */
#step-4 .payment-method-heading {
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-left: 3px solid var(--teal) !important;
    padding-left: 10px !important;
    line-height: 1 !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}

/* Step 4: Payment flex row */
#step-4 .payment-flex-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

/* Step 4: Coupon label */
#step-4 .coupon-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--navy) !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Step 4: Plan section heading */
#step-4 .plan-section-heading {
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-left: 3px solid var(--teal) !important;
    padding-left: 10px !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
    font-weight: 700 !important;
}

/* Step 4: Plan pill group */
#step-4 .plan-pill-group {
    flex: 1 !important;
}

/* Step 4: Reset button */
#step-4 .btn-reset-custom {
    background: transparent !important;
    color: #7a8592 !important;
    border: 1px solid var(--border) !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

#step-4 .btn-reset-custom:hover {
    color: var(--teal) !important;
    border-color: var(--teal) !important;
}

/* Step 4: Payment shares heading */
#step-4 .payment-shares-heading {
    font-size: 16px !important;
}

/* Review Step (Read-only fields) */
.review-wrapper input.form-control[readonly] {
    background-color: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    color: #172536 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.review-wrapper .field label {
    color: var(--gray) !important;
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

/* Premium Review Cards Layout */
#end {
    flex-direction: column !important;
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(16, 36, 63, 0.05);
    border: 1px solid #eef2f4;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f4f7;
}

.review-card-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-icon {
    font-size: 20px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 24px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.review-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    min-height: 20px;
}

.review-separator {
    height: 1px;
    background: repeating-linear-gradient(to right, transparent, transparent 5px, #d7dee3 5px, #d7dee3 10px);
    margin: 4px 0;
}

.plan-summary-box {
    display: flex;
    gap: 30px;
    background: #f8fafb;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.plan-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
}

.plan-badge-pill {
    display: inline-block;
    padding: 6px 14px;
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
}

.beneficiary-count-badge {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
}

.review-beneficiaries-table {
    width: 100%;
    border-collapse: collapse;
}

.review-beneficiaries-table th {
    font-size: 11px;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 12px 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    background-color: var(--teal) !important;
}

.review-beneficiaries-table td {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    padding: 12px 10px;
    border-bottom: 1px solid #f5f8f9;
}

.review-medical-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medical-review-item {
    background: #fcfcfc;
    border: 1px solid #f0f4f7;
    border-radius: 12px;
    padding: 16px;
}

.medical-question-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px 0;
}

.medical-answer-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.medical-answer-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.yes-badge {
    background: #fdf0ed;
    color: #e54a2a;
}

.no-badge {
    background: #eef8f4;
    color: #17a070;
}

.medical-details-box {
    flex: 1;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #eef2f4;
    font-size: 12px;
    color: #536170;
}

.payment-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px 20px;
    margin-bottom: 24px;
}

.amount-due-today-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--teal) 0%, #00515a 100%);
    padding: 20px 24px;
    border-radius: 14px;
    color: white;
}

.amount-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-badge-pill {
    font-size: 24px;
    font-weight: 800;
}

.rider-active {
    color: #17a070;
    font-weight: 700;
}

.rider-inactive {
    color: var(--gray);
}

/* ZELLE INSTRUCTIONS CARD */
.div_zelle_instructions {
    margin-top: 18px;
    width: 100%;
}

.div_zelle_instructions .alert-info {
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1.5px solid #99f6e4;
    border-radius: 12px;
    padding: 20px 22px;
    color: #134e4a;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.08);
}

.div_zelle_instructions .alert-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f766e;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.div_zelle_instructions .msg_client_zelle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
    color: #115e59;
}

.div_zelle_instructions .msg_client_zelle strong {
    color: #042f2e;
    font-weight: 700;
}

.div_zelle_instructions span {
    font-size: 13.5px;
    color: #134e4a;
}