/* public/assets/css/seo_pages/seo_register_modal.css */

#seoRegisterModal {
    display: none;
}

.seo-register-modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 9999;
    /* Mac-specific fixes for input interaction */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.seo-register-modal::before {
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    border-radius: 1440px;
    background: rgba(0, 0, 0, 0.671);
    filter: blur(298px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.register_modal-content {
    background-color: #fefefe;
    width: 60vw;
    max-width: 920px;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2rem;
    padding: 0;
    margin: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    /* overflow: hidden; */
    /* Mac-specific fixes for input interaction */
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}
.register_modal-content.modal_body{
    padding: 0 !important;
}
.modal_body {
    padding: 0 !important;
}


.close {
    color: #000000;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 223;

    width: 10px;
    height: 10px;

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

    border: 1px solid rgba(0, 0, 0, 0.288);
    padding: 1rem;
    border-radius: 50%;
}


.modal_body {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1rem;
    min-height: 65vh;
    height: max-content;
    max-height: 90vh;
}

.modal_body_left {
    background-image: url("../../../assets/img/seo_pages/images/intrestGraphic.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    min-height: 100%;
}

.modal_body_right {
    padding: 2.5rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}


#studentName {
    background: url("https://www.sparkl.ac/assets/img/icons/profile.svg") no-repeat scroll 0px 12px;
    padding-left: 28px;
}


#email {
    background: url("https://www.sparkl.ac/assets/img/icons/sms.svg") no-repeat scroll 0px 12px;
    padding-left: 28px;
}



.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 8px;
    box-sizing: border-box;
    outline: none;
    border: none;
    border-bottom: 1px solid #E9EBEC;
    margin-bottom: 0rem;
    font-size: 16px;
    transition: border-color 0.3s ease;
    /* Mac-specific fixes for input field focus */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: #008578;
}

.register_form_heading {
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

#sendOtpBtn,
#verifyOtpBtn {
    border-radius: 12px;
    background: var(--Button-Gradient, linear-gradient(0deg, #F9C935 0%, #FFDA57 100%));
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    display: flex;
    justify-self: flex-end;

    color: var(--Neutral-Black, #1A1A1A);
    text-align: center;

    /* Button/Medium */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    /* 125% */
    letter-spacing: -0.08px;

    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

#sendOtpBtn:hover,
#verifyOtpBtn:hover {
    background-color: #e0a800;
}

.otp-inputfields {
    display: flex;
    justify-content: space-evenly;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.otp-input {
    width: 50px;
    height: 50px;
    color: var(--Neutral-Black, #1A1A1A);
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.24px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.otp-input:focus {
    border-color: #4F4F4F;
}

.error-text {
    color: red;
    margin-top: 5px;
    padding-left: 0 !important;
}


/* ======================================================================== */

.form-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 8px;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #E9EBEC;
    outline: none;
    margin-bottom: 0rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    /* Mac-specific fixes for input field focus */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: #008578;
    /* Mac-specific focus enhancements */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0, 133, 120, 0.2);
    outline: none;
    -webkit-focus-ring-color: transparent;
}

.form-group select {
    cursor: pointer;
}

.form-group select:disabled {
    cursor: default;
    opacity: 0.6;
    color: #999;
}

/* ================== */

input:-moz-autofill,
select:-moz-autofill {
    background-color: transparent !important;
    color: #000 !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
}


/* Autofill styles for inputs */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
    background-color: transparent !important;
    /* reset yellow autofill */
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    /* force background */
    transition: background-color 5000s ease-in-out 0s;
    /* avoid flicker */
}

/* Optional: focus state when autofilled */
input:-webkit-autofill:focus,
select:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
    border-color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* intl-tel-input styles */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-bottom: 1px solid #E9EBEC;
}

.iti__selected-flag {
    padding: 0.3rem 0 0.5rem 0;
    border-bottom: 1px solid #E9EBEC;
    z-index: 1;
}

.iti__country-list {
    z-index: 10000;
}

#mobile {
    padding-left: 80px !important;
    /* Adjust based on flag container width */
}


/* Button Loader Styles */
.button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.circular-loader {
    animation: rotate 2s linear infinite;
    height: 100%;
    width: 100%;
    transform-origin: center center;
}

.loader-path {
    stroke-dasharray: 125.664;
    /* 2 * π * r where r = 20 */
    stroke-dashoffset: 62.832;
    /* 50% of stroke-dasharray */
    stroke: #1A1A1A;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 125.664;
    }

    50% {
        stroke-dashoffset: 62.832;
        transform: rotate(180deg);
    }

    100% {
        stroke-dashoffset: 125.664;
        transform: rotate(360deg);
    }
}

.verification-description_modal {
    color: var(--Neutral-Dark-Grey, #4F4F4F);

    /* Heading H8- 16px/Regular */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 125% */
    letter-spacing: -0.16px;

    width: 70%;
}

/* Change button styles */
.change-btn {
    color: #008578;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.change-btn:hover {
    color: #03645b;
}

/* OTP Timer Container - Position at bottom left */
.otp-timer-container {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#resend-button {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    border: none;
    background: none;
    color: #008578;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    padding: 0;
    margin: 0;
}

#resend-button:hover {
    color: #03645b;
}

#resend-button:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}



/* Tablet and medium screen improvements */
@media screen and (max-width: 1024px) {
    .register_modal-content {
        width: 80vw;
        max-width: 800px;
    }
    
    .modal_body_right {
        padding: 2rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
 
    .register_modal-content {
        width: 90vw;
        max-width: none;
        margin: 0 auto;
        border-radius: 1.5rem;
    }
    .register_modal-content .close{
        filter: invert(1);
        padding: 1rem;
    }
    
    .modal_body {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: min-content;
        height: max-content;
        max-height: 90vh;
        width: 100%;
    }
    
    .modal_body_left {
        order: 1;
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        min-height: 25vh;
        width: 100%;
        background-size: cover;
        background-position: top;
    }
    
    .modal_body_right {
        order: 2;
        padding: 2rem 1.5rem;
        position: relative;
        min-height: 55vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .register_form_heading {
        width: 100%;
        text-align: left;
        margin-bottom: 2rem;
        font-size: 1.3rem;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 20px auto;
        padding: 0 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 14px 8px;
        font-size: 16px;
        min-height: 44px; /* Better touch target */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Adjust icon positioning for mobile */
    #studentName {
        background: url("https://www.sparkl.ac/assets/img/icons/profile.svg") no-repeat scroll 0px 12px;
        padding-left: 28px;
    }

    #email {
        background: url("https://www.sparkl.ac/assets/img/icons/sms.svg") no-repeat scroll 0px 12px;
        padding-left: 28px;
    }

    .otp-inputfields {
        max-width: 100%;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .verification-description_modal {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        padding: 0 1rem;
    }

    #sendOtpBtn,
    #verifyOtpBtn {
        position: static;
        margin: 2rem auto 0 auto;
        display: block;
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        min-height: 48px;
        font-size: 16px;
        border-radius: 8px;
    }

    .otp-timer-container {
        position: static;
        justify-content: center;
        margin-top: 1rem;
        padding: 0 1rem;
    }

    #resend-button {
        position: static;
        margin-top: 1rem;
        text-align: center;
        display: block;
        width: 100%;
        padding: 0 1rem;
    }

    .close {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .register_modal-content {
        width: 90vw;
        border-radius: 1rem;
    }

    .modal_body_left {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
        min-height: 15vh;
    }

    .modal_body_right {
        padding: 1.5rem 1rem;
    }

    .register_form_heading {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        max-width: 100%;
        margin-bottom: 15px;
        padding: 0 0.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 12px 8px;
        font-size: 16px;
        min-height: 44px; /* Better touch target */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    /* Adjust icon positioning for smaller mobile screens */
    #studentName {
        background: url("https://www.sparkl.ac/assets/img/icons/profile.svg") no-repeat scroll 0px 10px;
        padding-left: 28px;
    }

    #email {
        background: url("https://www.sparkl.ac/assets/img/icons/sms.svg") no-repeat scroll 0px 10px;
        padding-left: 28px;
    }

    .otp-inputfields {
        max-width: 100%;
        gap: 8px;
        padding: 0 0.5rem;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .verification-description_modal {
        max-width: 100%;
        font-size: 14px;
        padding: 0 0.5rem;
    }

    #sendOtpBtn,
    #verifyOtpBtn {
        max-width: 100%;
        padding: 14px 16px;
        min-height: 48px;
        font-size: 16px;
        border-radius: 8px;
    }
}

/* Thank You Form Styles */
#thankyouForm {
    text-align: center;
    padding: 2rem 0;
}

#thankyouForm .register_form_heading {
    text-align: center !important;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#thankyouForm p {
    font-size: 1.1rem;
    color: #4f4f4f;
    margin: 0;
    line-height: 1.5;
}

/* Mobile styles for Thank You Form */
@media screen and (max-width: 768px) {
    #thankyouForm .register_form_heading {
        font-size: 1.8rem;
        text-align: center !important;
    }
    
    #thankyouForm p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #thankyouForm .register_form_heading {
        font-size: 1.6rem;
        text-align: center !important;
    }
    
    #thankyouForm p {
        font-size: 0.95rem;
    }
}