/* =========================
   WELLNESS FORM WRAPPER
========================= */
.wellness-form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.wellness-form__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================
   HEADING
========================= */
.wellness-form__heading {
    font-size: 20px;
    font-weight: 600;
    color: #005E9E;
    line-height: 1.4;
}

/* =========================
   TOGGLE BUTTONS
========================= */
.wellness-form__toggle {
    display: flex;
    gap: 12px;
}

.wellness-form__toggle button {
    flex: 1;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wellness-form__toggle button.active {
    background: #ED1C24;
    color: #fff;
    border-color: #ED1C24;
}

/* =========================
   FIELD WRAPPER (NEW)
========================= */
.wellness-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wellness-form__field label {
    font-size: 12px;
    font-weight: 500;
    color: #4B5563;
}

.wellness-form__consent {
    margin-bottom: 0;
}

.wellness-form__consent span {
    font-size: 10px;
}

/* =========================
   INLINE FIELD (NRI TOGGLE)
========================= */
.wellness-form__field.nri-field {
    flex-direction: row;
    gap: 16px;
}

.wellness-form__field label,
.wellness-form__field.nri-field label {
    font-size: 14px;
    color: #4B5563;
    margin-bottom: 0;
}

/* SWITCH */
.wellness-form__field.nri-field input[type="checkbox"] {
    appearance: none;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wellness-form__field.nri-field input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.wellness-form__field.nri-field input[type="checkbox"]:checked {
    background: #ED1C24;
}

.wellness-form__field.nri-field input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

/* =========================
   INPUTS
========================= */
.wellness-form input[type="text"],
.wellness-form input[type="email"],
.wellness-form input[type="tel"] {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 14px;
    font-size: 14px;
    color: #111827;
    outline: none;
    margin-bottom: 0;
    /* FIXED */
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.wellness-form input::placeholder {
    color: #9ca3af;
}

/* =========================
   MOBILE PREFIX (COUNTRY CODE)
========================= */
.wellness-form .mobile-prefix {
    display: flex;
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.wellness-form .mobile-prefix.error {
    border-color: #ED1C24;
}

.wellness-form .mobile-prefix input[type="tel"] {
    flex: 1;
    border: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.wellness-form .mobile-prefix select.countryCode-list {
    min-width: 50px;
    border: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.wellness-form .mobile-prefix>.select2-container {
    width: 18% !important;
    height: auto !important;
    min-width: fit-content !important;
    font-size: 14px !important;
    box-shadow: none !important;
    border: none !important;
    border-right: 1px solid #d1d5db !important;

}

.wellness-form .mobile-prefix>.select2-container--open:last-child {
    width: 100% !important;
    left: 0 !important;
    border-right: none !important;
}

.wellness-form .mobile-prefix .select2-dropdown {
    max-height: unset !important;
}

.wellness-form .mobile-prefix .select2-container .select2-selection--single {
    height: 100%;
    border-radius: 10px 0 0 10px !important;
}

.wellness-form .mobile-prefix .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0 0 14px !important;
    margin-right: 20px !important;
}

.wellness-form .mobile-prefix .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 0 !important;
    width: 20px !important;
    height: 100%;
    background: url("../../../../../content/dam/hdfclifeinsurancecompany/icons/dropdown-icon.svg") no-repeat center;
    background-size: 10px;
    /* Add a smooth transition for the rotation */
    transition: transform 0.3s ease;
}

/* Expanded state (Arrow pointing up) */
.select2-container--default .select2-selection--single[aria-expanded="true"] .select2-selection__arrow {
    transform: rotate(-180deg);
}

.wellness-form .mobile-prefix .select2-container--default .select2-selection--single[aria-disabled="true"] .select2-selection__arrow {
    display: none;
}

.wellness-form .mobile-prefix .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.wellness-form .daterangepicker select.monthselect {
    width: auto;
}

.wellness-form .daterangepicker select.yearselect {
    width: auto;
}

.wellness-form input:focus {
    border-color: #005E9E;
    box-shadow: 0 0 0 2px rgba(0, 94, 158, 0.1);
}

.wellness-form__error {
    font-size: 11px;
    color: #ED1C24;
    min-height: 14px;
}

.wellness-form input.error {
    border-color: #ED1C24;
}

/* =========================
   ROW
========================= */
.wellness-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wellness-form__row:has(.dob-field) {
    grid-template-columns: 40% 1fr;
}

.wellness-form__row .wellness-form__field {
    margin-bottom: 0;
}

/* Required for positioning the date picker */
.wellness-form__row .wellness-form__field.dob-field {
    position: relative;
}

/* =========================
   CONSENT
========================= */
.wellness-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

.wellness-form__consent input {
    margin-top: 3px;
    accent-color: #ED1C24;
}

/* =========================
   SUBMIT
========================= */
.wellness-form__submit {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #ED1C24;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* .wellness-form__submit:not(:disabled):hover {
    background: #c5161d;
} */

.wellness-form__submit:not(:disabled):active {
    transform: scale(0.98);
}

.wellness-form__submit:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================
   STATE SWITCHING
========================= */
.wellness-form__existing {
    display: none;
    flex-direction: column;
    gap: 16px;

    min-height: 256px;
}

.wellness-form[data-state="existing"] .wellness-form__body {
    display: none;
}

.wellness-form[data-state="existing"] .wellness-form__existing {
    display: flex;
}

/* =========================
   SELECT DROPDOWN
========================= */
.wellness-form__select {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 40px 0 14px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;

    /* REMOVE DEFAULT ARROW */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* ADD CUSTOM SVG */
    background-image: url("../../../../../content/dam/hdfclifeinsurancecompany/wellness/dropdown-icon.svg");

    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.wellness-form__select:focus {
    border: 1px solid #005E9E !important;
    box-shadow: 0 0 0 2px rgba(0, 94, 158, 0.1);
}

/* Fix for safari */
.wellness-form select::-ms-expand {
    display: none;
}

/* =========================
   INFO BOX
========================= */
.wellness-form__info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #e8f0fe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
}
.wellness-form__info-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

/* .wellness-form__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    font-weight: 600;
    flex: 0 0 16px;
    margin-top: 2px;
} */

.wellness-form .wellness-form__field.dob-field .hasDatePicker {
    background: url(../../../../../content/dam/hdfclifeinsurancecompany/wellness/banner/black_calendar.png) no-repeat 93% 10px;
    background-size: 16px;
    background-position-y: center;
    cursor: pointer;
}

.wellness-main-banner__right {
    position: relative;
}

.wellness-main-banner__right .dsp-n {
    display: none !important;
}

.wellness-otp-screen-container {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #ed1c24;
    border-radius: 12px;
    background: #fff;
}

.wellness-otp-head-title {
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #3f4c69;
    text-align: center;
    margin-bottom: 0;
}

.wellness-number-wrapper {
    text-align: center;
    padding: 8px;
}

.wellness-number-wrapper .mobile-Number {
    font-size: 14px;
    font-weight: 600;
    color: #3f4c69;
}

.wellness-number-wrapper .inside-content {
    font-size: 12px;
    color: #989898;
    overflow-wrap: break-word;
}

.wellness-error-msg {
    display: flex;
    margin: 0 auto;
    max-width: fit-content;
    gap: 6px;
    border-radius: 6px;
    padding: 6px 12px;
}

.wellness-error-msg-green {
    background-color: #edf9e8;
}

.wellness-error-msg-red {
    background-color: #fff2f3;
}

.wellness-error-green {
    color: #4da22b;
    font-size: 10px;
    font-weight: 600;
}

.wellness-error-red {
    color: #ed2129;
    font-size: 10px;
    font-weight: 600;
}

.wellness-mainform {
    text-align: center;
    margin-top: 8px;
    position: relative;
}

.wellness-otp-input {
    margin-top: 15px;
}

.wellness-otp-input input {
    max-width: 8%;
    height: 40px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #9d9b9b;
    border-top: none;
    border-right: none;
    border-left: none;
    outline: none;
    margin-bottom: 10px;
    text-align: center;
}

.wellness-otp-input input:focus {
    border: 1px solid #9d9b9b;
    border-top: none;
    border-right: none;
    border-left: none;
}

.wellness-otp-input .border-red {
    border-bottom: 1px solid red;
}

.wellness-otpoption {
    margin-bottom: 10px;
}

.wellness-receive-otp {
    color: #949dad;
    font-size: 12px;
    font-weight: 600;
}

.wellness-resend-grey {
    color: #2e3c5c;
    font-weight: 600;
    cursor: pointer;
}

.wellness-btn-main-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wellness-btn-back,
.wellness-btn-verify {
    min-width: 140px;
    padding: 8px 24px;
    border: 1px solid #ed1c24;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.wellness-btn-back {
    background-color: #fff;
    color: #ed1c24;
}

.wellness-btn-verify {
    background-color: #ed1c24;
    color: #fff;
}

.wellness-success-img {
    text-align: center;
    margin-top: 20px;
}

.wellness-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fbfbfb8a;
}

.wellness-countdown-screen {
    margin-top: 12px;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d51d25;
    background: #fff;
    box-shadow: 0px 0px 8px 5px #e4eef6;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.wellness-countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.wellness-countdown-heading {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #3f4c69;
}

.wellness-countdown-description {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #3f4c69;
}

.wellness-countdown-circle {
    margin-top: 10px;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-image: conic-gradient(red 0deg, white 0deg);
    animation: wellnessFillRed 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wellness-countdown-value {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    background-color: #ececec;
}

@keyframes wellnessFillRed {
    0% {
        background-image: conic-gradient(red 0deg, white 0deg);
    }

    25% {
        background-image: conic-gradient(red 90deg, white 90deg);
    }

    50% {
        background-image: conic-gradient(red 180deg, white 180deg);
    }

    75% {
        background-image: conic-gradient(red 270deg, white 270deg);
    }

    100% {
        background-image: conic-gradient(red 360deg, white 0deg);
    }
}

@media screen and (max-width: 768px) {

    .wellness-form__row,
    .wellness-form__row:has(.dob-field) {
        grid-template-columns: 1fr;
    }

    .wellness-otp-input input {
        max-width: 12%;
        margin-right: 6px;
    }

    .wellness-countdown-heading,
    .wellness-countdown-description {
        font-size: 12px;
        line-height: 18px;
    }
}

body.wellness-benefits-modal-open {
    overflow: hidden;
}

.wellness-benefits-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wellness-benefits-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 47, 67, 0.72);
}

.wellness-benefits-modal__dialog {
    position: relative;
    width: min(1055px, 100%);
    height: min(760px, calc(100vh - 24px));
    max-height: min(760px, calc(100vh - 24px));
    overflow: hidden;
    padding: 18px 13px 0 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    color: #1c2633;
}

.wellness-benefits-modal__scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding-right: 8px;
}

.wellness-benefits-modal__close {
    position: absolute;
    top: 8px;
    right: 30px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 36px;
    font-weight: 300;
    line-height: 28px;
    cursor: pointer;
}

.wellness-benefits-modal__badge {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 7px;
    padding: 2px 6px;
    border-radius: 8px;
    background: #d1edff;
    color: #00538a;
    font-size: 11px;
    line-height: 16px;
    font-weight: 500;
}

.wellness-benefits-modal__title {
    color: #005e9e;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.wellness-benefits-modal__title-red {
    color: #ed1c24;
}

.wellness-benefits-modal__title-blue {
    color: #005e9e;
}

.wellness-benefits-modal__product-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wellness-benefits-modal__product-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.wellness-benefits-modal__points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #4B5563;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
}

.wellness-benefits-modal__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wellness-benefits-modal__points li img {
    width: 14px;
    height: 14px;
    flex: 0 0 16px;
    margin-top: 2px;
    object-fit: contain;
}

.wellness-benefits-modal__divider {
    height: 1px;
    margin: 16px 0 14px;
    background: #E6EBF5;
}

.wellness-benefits-modal__section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wellness-benefits-modal__section-title h3 {
    margin: 0;
    color: #111;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.wellness-benefits-modal__seal {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.wellness-benefits-modal__seal-square {
    position: absolute;
    inset: 8%;
    border-radius: 18%;
    background: #2fae5a;
    opacity: 0;
}

.wellness-benefits-modal__seal-square-a {
    animation: wellnessModalSealSquareA 2.6s ease-in-out infinite;
}

.wellness-benefits-modal__seal-square-b {
    animation: wellnessModalSealSquareB 2.6s ease-in-out infinite;
}

.wellness-benefits-modal__seal svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wellness-benefits-modal__seal path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: wellnessModalCheck 2.6s ease-in-out infinite;
}

@keyframes wellnessModalSealSquareA {
    0%, 100% { opacity: 0; transform: rotate(-90deg) scale(.4); }
    20%, 85% { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes wellnessModalSealSquareB {
    0%, 100% { opacity: 0; transform: rotate(-45deg) scale(.4); }
    20%, 85% { opacity: 1; transform: rotate(45deg) scale(1); }
}

@keyframes wellnessModalCheck {
    0%, 35%, 100% { stroke-dashoffset: 20; }
    55%, 85% { stroke-dashoffset: 0; }
}

.wellness-benefits-modal__list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 24px 35px;
    scrollbar-width: thin;
    scrollbar-color: #9da7b7 transparent;
}

.wellness-benefits-modal__list::-webkit-scrollbar {
    width: 5px;
}

.wellness-benefits-modal__list::-webkit-scrollbar-track {
    background: transparent;
}

.wellness-benefits-modal__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9da7b7;
}

.wellness-benefits-modal__benefit {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: flex-start;
}

.wellness-benefits-modal__benefit > img,
.wellness-benefits-modal__benefit-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: #40506b;
    font-size: 26px;
    line-height: 32px;
    text-align: center;
}

.wellness-benefits-modal__benefit h4 {
    margin: 0 0 6px;
    color: #005e9e;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
}

.wellness-benefits-modal__benefit h4 + div {
    color: #1c2633;
    font-size: 13px;
    line-height: 20px;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .wellness-benefits-modal {
        align-items: flex-start;
        padding: 18px 20px;
    }

    .wellness-benefits-modal__dialog {
        height: calc(100vh - 36px);
        max-height: calc(100vh - 36px);
        padding: 20px 8px 0px 20px;
        border-radius: 12px;
    }

    .wellness-benefits-modal__scroll {
        padding-right: 6px;
    }

    .wellness-benefits-modal__close {
        top: 6px;
        right: 10px;
    }

    .wellness-benefits-modal__title {
        margin-right: 0;
        font-size: 16px;
        line-height: 25px;
    }

    .wellness-benefits-modal__points {
        grid-template-columns: 1fr;
        gap: 8px;
        font-size: 12px;
        line-height: 16px;
    }

    .wellness-benefits-modal__divider {
        margin: 12px 0 13px;
    }

    .wellness-benefits-modal__section-title {
        gap: 10px;
        margin-bottom: 13px;
    }

    .wellness-benefits-modal__section-title h3 {
        font-size: 14px;
        line-height: 20px;
    }

    .wellness-benefits-modal__list {
        gap: 26px;
    }

    .wellness-benefits-modal__benefit {
        grid-template-columns: 28px 1fr;
        gap: 2px;
    }

    .wellness-benefits-modal__benefit h4 {
        margin-bottom: 6px;
        font-size: 12px;
        line-height: 16px;
    }

    .wellness-benefits-modal__benefit h4 + div {
        font-size: 12px;
        line-height: 20px;
    }

    .wellness-benefits-modal__product-icon {
        display: none;
    }
    
    .wellness-benefits-modal__points li {
        gap:6px;
    }
}