/* registration.css */
/* Reset modal styles */
#phoneVerificationModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Changed from flex to none */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

#phoneVerificationModal {
    height: 80%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 950px;
    display: flex;
    overflow: hidden;
    transform: scale(0.8);
    position: relative;
    opacity: 1; /* Changed from 0 to 1 */
    transition: transform 0.3s ease;
}
/* Active states */
#phoneVerificationModalOverlay.active {
    display: flex;
    opacity: 1;
}



/* Fix illustration section */
.illustration {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-box {
    flex: 1;
    padding: 2rem;
}

/* Phone input styling */

.close-btn{
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.phone-input-container .error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    color: #dc3545;
    font-size: 0.875rem;
    display: none;
}

.screen .active{
    display: block;
}
.verification-box h1{
    color: #004253;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.verification-box .loginDescription{
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.phone-input-container{
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 10px;
    margin-bottom: 2rem;
}

/* IntlTelInput Custom Styling */
.iti {
    width: 100% !important;
    position: relative;
    display: inline-block;
    /* margin-bottom: 1.5rem; */
}

.iti__flag-container {
    border-radius: 12px 0 0 12px;
}

.iti__selected-flag {
    background: #f8faff !important;
    border-radius: 12px 0 0 12px;
}

#phone {
    width: 100%;
    padding: 1rem;
    padding-left: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#phone:focus {
    border-color: #4776E6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.1);
}

.verify-btn{
    width: 100%;
    padding: 1rrem;
    background-color: #7444FD;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* OTP screen styles */
.otp-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.otp-inputs input {
    width: 50px;
    height: 50px;
    border: 2px solid #e1e1e1;
    padding: 0px !important;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    background: #f8f9fa;
    transition: all 0.3s;
}

/* Button styles */
.verify-btn {
    width: 100%;
    padding: 1rem;
    background: #7444FD;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.verify-btn:hover {
    background: #7444FD;
}

/* Mobile styles */
@media (max-width: 768px) {
    #phoneVerificationModal {
        flex-direction: column;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .illustration {
        padding: 1rem;
        flex: none;
    }

    .floating-illustration{
        width: 150px;
        height: 150px;
    }

    .verification-box {
        padding: 1.5rem;
    }
}


/* Fix spacing in main content */
#nav-bottom-content {
    margin-top: 0;
    padding-top: 0;
}

/* Override any conflicting margin/padding */
.image-container {
    margin-top: 0;
}

/* Add to registration.css */
.auth-screen {
    display: none;
    padding: 2rem;
}

.auth-screen.active {
    display: block;
}

.auth-content {
    max-width: 400px;
    margin: 0 auto;
    height: 100%;
}

#phone-form{
    display: flex;
    height: 80%;
    justify-content: space-evenly;
    flex-direction: column;
}

/* Style updates for separate screens */
#phone-screen, #otp-screen {
    background: white;
    border-radius: 20px;
}

.auth-screen h1 {
    color: rgba(0, 0, 0, 0.603);
    margin-bottom: 1rem;
}

.auth-screen p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag-container {
    z-index: 999;
}

#phone {
    padding-left: 90px !important;
    height: 50px !important;
}



.otp-inputs input {
    transition: all 0.3s ease;
}

.otp-inputs input.error {
    border-color: #dc3545;
    background-color: #fff;
    box-shadow: 0 0 0 1px #dc3545;
}

.otp-inputs input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-illustration {
    animation: float 3s ease-in-out infinite;
}

@media (width: 1920px) and (min-height: 1080px) and (max-height: 1200px) {
    #phoneVerificationModal {
        height: 40% !important;
    }
}
@media (width: 1642px) and (min-height: 780px) and (max-height: 785px) {
    #phoneVerificationModal {
        height: 60% !important;
    }
}
@media screen and (max-width: 768px) {
    #phoneVerificationModal {
        height: auto !important; /* For mobile devices */
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    #phoneVerificationModal {
        height: 60% !important; /* For tablets */
    }
}

@media screen and (min-width: 1025px) and (min-height: 600px) {
    #phoneVerificationModal {
        height: 80% !important;
    }
}
@media screen and (min-width: 1025px) and (min-height: 900px) {
    #phoneVerificationModal {
        height: 50% !important;
    }
}
@media screen and (min-width: 1025px) and (max-height: 599px) {
    #phoneVerificationModal {
        height: 80% !important; /* Adjust for shorter screens */
    }
}

@media screen and (aspect-ratio: 1886/1089) {
    #phoneVerificationModal {
        height: 55% !important;
    }
}


/* Add to registration.css */
#profile-info-screen .form-group {
    margin-bottom: 15px;
}

#profile-info-screen label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    text-align: left;
}

#profile-info-screen input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#profile-info-screen input:focus {
    border-color: #004253;
    outline: none;
}

#profile-info-screen .error-message {
    color: #e53935;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

#profile-info-screen button {
    margin-top: 20px;
}

#profile-info-screen h1{
    font-size: 1.5rem;
}