/* Base Styles */
.registration-container {
    display: flex;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
}
/* Left Section */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.mb-3, .my-3{
    margin-bottom: 0rem !important;
}
/* .mform .col-form-label .form-label-addon{
    margin-left: .25rem !important;
} */
.col-form-label{
    max-width: 50% !important;
}
.fdescription{
    display: none;
}
.text-danger{
    display: none;
}
.reg-icon {
    display: none;
    color: red;
}

.register-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Right Section */
.right-section {
    flex: 1;
    display: flex;
    padding: 40px;
}
.registration-title {
    font-size: 3rem !important;
}/* Only apply flex column to regular form groups, not inside .location-group */
#page-local-userregistration-register form .mb-3.row:not(.location-group .mb-3.row) {
    position: relative;
    border-radius: .15rem;
    overflow: hidden;
    flex-direction: column;
    display: flex;
}

/* Default form input styles */
.mform .felement input,
.mform .felement select {
    width: 100%;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
}

/* But inside location-group, apply custom styles */
.location-group select,
.location-group input {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 6px 10px;
}
/* === Updated Date of Birth Dropdowns to Match Other Inputs === */
.dob-group select {
    width: 100%;
    font-size: 14px;
    outline: none;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    padding: 6px 10px;
    transition: border-color 0.3s ease-in-out;
}
.dob-group select {
    width: 100% !important;
}
.select2-container {
    width: 100% !important;
}
#id_customday{
    width: 100px !important;
}
#id_custommonth{
    width: 125px !important;
}
#id_customyear{
    width: 125px !important;
}
@media (min-width: 392px) and (max-width: 699px) {
    #id_customday,
    #id_custommonth,
    #id_customyear {
        width: 100px !important;    }
}


/* Match focus style with other inputs */
.dob-group select:focus {
    border-bottom: 2px solid #0073e6;
}


/* Focus styles */
.mform .felement input:focus,
.mform .felement select:focus {
    border-bottom: 2px solid #0073e6;
}
.location-group select:focus,
.location-group input:focus {
    border: 1px solid #0073e6 !important;
}

/* Keep dropdowns horizontal */
.location-group {
    width: 82%;
    display: flex;
    justify-content: space-between;
}

/* Ensure each fitem stacks its label/input */
.location-group .fitem {
    flex: 1;
    display: ruby;
    flex-direction: column; /* This won't affect ruby but leaving it doesn't hurt */
}

.location-group .fitem .fitemtitle label {
    white-space: nowrap;
    margin: 0;
}
/* Tweak label spacing */
.location-group label {
    /*font-weight: 600;*/
    margin-bottom: 5px;
    white-space: nowrap; /* <-- Prevents the label from breaking like "Distri<br>ct" */
}
.location-group select {
    appearance: none !important;         /* Removes default arrow on most browsers */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
    /*font-weight: 500;*/
    color: #000;
    cursor: pointer;
    min-width: 100px;
}
.select2-container--default .select2-selection--single {
    display: inline-block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right .75rem center / 8px 10px no-repeat;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
}

/* Hide Select2's default arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}


/* Optional: Add a down arrow manually if needed */
.location-group select:after {
    content: '▼';
    padding-left: 5px;
}


/* Star styling */
.location-group .fitem .fitemtitle .required {
    color: red;
    font-size: 16px;
    margin: 0;
    padding-left: 3px;
}


/* Add top padding to the form */
.mform {
    padding-top: 30px !important;
    max-width: auto ;
    width: 100%;
}
.login-link {
    color: #007bff;          /* Bootstrap-like blue */
    text-decoration: none;   /* Removes underline */
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #0056b3;          /* Darker blue on hover */
    text-decoration: underline;
}
.otp-message {
    white-space: nowrap;
    display: inline-block;
}
.login-redirect {
    margin-left: 60px;
}
/* === Date of Birth Styling === */
.styled-date-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    background: #fff;
    max-width: 100%;
}

/* Make individual dropdowns consistent */
.styled-date-selector select {
    flex: 1 1 100px;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 80px;
    appearance: none;
    background-color: white;
    cursor: pointer;
}
/* Hide the calendar icon if needed */
/* #id_dob_calendar {
    display: none !important;
} */

/* Align label with date field */
.form-group .fitem.fdate_selector .fitemtitle {
    font-weight: 600;
    padding-right: 1rem;
}
/* Responsive Design */
/* Tablets (Below 1024px) */
@media screen and (max-width: 1024px) {
    .registration-container {
        flex-direction: column;
        height: auto;
        align-items: center;
    }

    .left-section,
    .right-section {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .register-img {
        max-width: 400px;
        height: auto;
    }

    .mform {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Mobile Devices (Below 768px) */
@media screen and (max-width: 768px) {
    .registration-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .left-section {
        padding: 10px;
    }

    .image-container {
        gap: 15px;
    }

    .register-img {
        max-width: 300px;
        height: auto;
    }

    .right-section {
        padding: 20px;
    }

    .mform {
        max-width: 320px;
        margin: 0 auto;
    }

    .registration-title {
        text-align: center;
        font-size: 24px !important;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .mform .felement input,
    .mform .felement select {
        font-size: 16px;
    }

    .mform .fitem {
        margin-bottom: 15px;
    }

    .location-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .location-group .fitem {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .location-group select {
        width: 100%;
        padding: 8px;
        font-size: 16px;
    }
    .login-redirect {
        margin-left: 15px;
    }
    .styled-date-selector {
        flex-direction: column;
        padding: 6px;
    }

    .styled-date-selector select {
        width: 100%;
    }
}

/* Small Mobile Devices (Below 480px) */
@media screen and (max-width: 480px) {
    .register-img {
        max-width: 250px;
        height: auto;
    }

    .mform {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .mform .felement input,
    .mform .felement select {
        font-size: 12px;
        padding: 5px;
    }

    .mform input[type="submit"] {
        width: 150px;
    }
    .login-redirect {
        margin-left: 15px;
    }
    .styled-date-selector {
        flex-direction: column;
        padding: 6px;
    }

    .styled-date-selector select {
        width: 100%;
    }
}


/* Verify OTP Page */
/* Base Styles */
body {
    margin: 0;
    padding: 0;
}
.otp-container {
    display: flex;
    width: 100%;
    height: 100%; /* Full viewport height */
    background: #f9f9f9;
}
.verifyotp-title{
    font-size: 3rem !important;
    text-align: left;
}
/* Left Section - Logo & Image */
.otp-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
}

.otp-image {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between images */
    align-items: center;
}

.otp-logo {
    width: auto;
    height: auto;
}

.otp-graphic {
    width: auto;
    height: auto;
}

/* Right Section - OTP Form */
#page-local-userregistration-verify_otp form .mb-3.row.fitem {
    position: relative;
    border-radius: .15rem;
    overflow: hidden;
    flex-direction: column;
    display: flex;
}
#page-local-proctor-verifyotp form .mb-3.row.fitem {
    position: relative;
    border-radius: .15rem;
    overflow: hidden;
    flex-direction: column;
    display: flex;
}
.otp-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

/* OTP Form Wrapper */
.otp-form-wrapper {
    width: 100%;
    max-width: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    
    text-align: center;
}

/* Form Input Fields */
.mform .felement input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc; /* Adds only a bottom border */
    font-size: 16px;
    padding: 10px;
    outline: none; /* Removes blue highlight when clicked */
    transition: border-color 0.3s ease-in-out;
    
}

/* Change Border Color on Focus */
.mform .felement input:focus {
    border-bottom: 2px solid #0073e6; /* Highlight effect */
}
.otp-form-wrapper .col-md-9{
    max-width: 100% !important;
}
.otp-message {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    font-weight: normal;
    text-align: left;
    width: 100%;
}

/* OTP Resend Links */
.resend-otp {
    font-size: 14px;
    color: #0073e6;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: left;
    justify-content: left;
}

/* Submit Button */
.mform input[type="submit"] {
    width: 160px !important;  /* Force width */
    padding: 12px !important; /* Adjust padding */
    font-size: 16px !important; /* Improve readability */
    font-weight: bold;
    color: white;
    background-color: #0073e6;
    border: none;
    border-radius: 5px;
    display: block;
    margin: 20px auto; /* Center the button */
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.mform input[type="submit"]:hover {
    background-color: #005bbd;
}

/* Responsive Design */
/* Mobile View - Heading at the Top and No Images */
@media (max-width: 768px) {
    /* OTP Container */
    .otp-container {
        flex-direction: column; /* Stack the left and right sections */
        height: auto;
        padding: 10px;
    }

    /* Remove Left Section - No images */
    .otp-left {
        display: none !important; /* Hide the left section (logo/image) on mobile */
    }

    /* Form Wrapper */
    .otp-form-wrapper {
        width: auto; /* Allow the form to auto adjust its width */
        max-width: max-content !important; /* Use max-content to make the form wrapper adjust based on content */
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        margin-top: 15px;
    }

    /* OTP Form */
    .mform {
        width: 100%; /* Ensure the form takes the full width of the container */
    }

    /* Heading Styling */
    .verifyotp-title {
        font-size: 2.5rem !important;  /* Adjust heading size for mobile */
        text-align: center;
        margin-bottom: 20px;  /* Add space below the heading */
        font-weight: bold;
    }

    /* Form Input Fields */
    .mform .felement input {
        width: 100%; /* Make inputs fill the container */
        font-size: 14px; /* Smaller font size for mobile */
        padding: 12px;  /* Increase padding for mobile */
        border: none;
        border-bottom: 2px solid #ccc; /* Adds only a bottom border */
        outline: none; /* Removes blue highlight when clicked */
        transition: border-color 0.3s ease-in-out;
    }

    /* Change Border Color on Focus */
    .mform .felement input:focus {
        border-bottom: 2px solid #0073e6; /* Highlight effect */
    }

    /* Resend OTP Link */
    .resend-otp {
        font-size: 14px;
        color: #0073e6;
        cursor: pointer;
        margin-top: 5px;
        display: block;
        text-align: center;
    }

    /* Submit Button */
    .mform input[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        background-color: #0073e6;
        border: none;
        border-radius: 5px;
        margin-top: 15px;
        cursor: pointer;
        transition: background 0.3s ease-in-out;
    }

    .mform input[type="submit"]:hover {
        background-color: #005bbd;
    }

    /* Adjust OTP Message */
    /* Wrap OTP Message */
    .otp-message {
        font-size: 10px;
        font-weight: 600;
        color: #333;
        margin-top: 10px;
        text-align: center;
        word-wrap: break-word;      /* Allows long words to wrap */
        white-space: normal;        /* Prevents single-line truncation */
        overflow-wrap: break-word;  /* Ensures text wraps nicely */
        width: 100%;
    }
}

/* Forget Password  */
/*  Forgot Password Page Container */
.forgot-password-container {
    display: flex;
    width: 100%;
    height: auto; /* Full viewport height */
    background: #f4f7fc;
}

/*  Left Section - Logo & Illustration */
.forgot-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
}

.forgot-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between images */
}

.forgot-logo {
    width: auto;
    height: auto;
}

.forgot-illustration {
    width: auto;
    height: auto;
}

/*  Right Section - Form */
.forgot-right {
    
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}
/* Right Section - OTP Form */
#page-local-userregistration-forgot_password form .mb-3.row.fitem {
    position: relative;
    border-radius: .15rem;
    overflow: hidden;
    flex-direction: column;
    display: flex;
}
/*  Form Wrapper */
.forgot-form-wrapper {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Form Input Fields */
.mform .felement input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc; /* Adds only a bottom border */
    font-size: 16px;
    padding: 10px;
    outline: none; /* Removes blue highlight when clicked */
    transition: border-color 0.3s ease-in-out;
    
}

/*  Highlight Input on Focus */
.mform .felement input:focus {
    border-color: #0073e6;
}

/*  Alert Messages */
.forgot-alert {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
}

.forgot-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.forgot-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*  Submit Button */
.mform input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #0073e6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.mform input[type="submit"]:hover {
    background-color: #005bbd;
}

/*  Responsive Design */
@media (max-width: 768px) {
    .forgot-password-container {
        flex-direction: column;
        height: auto;
        font-size: small;
    }
    .forgot-form-wrapper h3 {
        text-align: center;
        font-weight: 700;
        font-size: 24px;
        width: 100%;
        justify-content: center;
        display: flex;
        color: #333;
        margin-bottom: 20px;
    }
    
    .forgot-left, .forgot-right {
        flex: none;
        width: 100%;
        padding: 20px 10px;
        box-sizing: border-box;
    }

    .forgot-images {
        flex-direction: column;
        gap: 15px;
    }

    .forgot-logo img,
    .forgot-illustration img {
        max-width: 80%;
        height: auto;
    }

    .forgot-form-wrapper {
        max-width: 100%;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }

    .mform .felement input {
        font-size: 14px;
        padding: 8px;
    }

    .mform input[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }

    .resend-otp {
        font-size: 13px;
        margin-top: 10px;
    }

    .forgot-alert {
        font-size: 13px;
        padding: 8px;
    }
}

/* hiding the header from registration */
.tpheaderl_modern #page-header {
    display: none;
}
/* hiding buttons and search from navbar */
#page-local-userregistration-register .header-tools {
    display: none;
}
#page-local-proctor-verifyotp .header-tools{
    display: none !important;
}
#page-local-userregistration-verify_otp .header-tools {
    display: none;
}
#page-local-userregistration-forgot_password .header-tools {
    display: none;
}
#main-content {
    padding: 0 !important;
}
/* Registration pahe sidebar hide*/
#page-local-userregistration-register .fixed-bar button.iconbutton{
    display: none !important;
}
#page-local-userregistration-verify_otp .fixed-bar button.iconbutton{
    display: none !important;
}
#page-local-userregistration-forgot_password .fixed-bar button.iconbutton{
    display: none !important;
}
#page-local-userregistration-forgot_password .block_navigation{
    display: none !important;
}
#page-local-userregistration-register .block_navigation{
    display: none !important;
}
#page-local-userregistration-verify_otp .block_navigation{
    display: none !important;
}