/* General Form Elements */
.form_mage_box {
    padding: 1rem 0.5rem !important; /* Using rem for better scalability */
}

.client_add_form_main_box h3 {
    padding: 0.5rem;
    font-size: 1.5rem; /* Ensure consistent heading size */
    color: #333; /* A slightly softer black */
}

/* Custom File Input */
.file-input-container {
    margin: 0 auto;
    padding: 0.5rem 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5rem; /* Rounded corners for the container */
    overflow: hidden; /* Ensures child borders don't break the rounded corners */
}

.sm-input-file {
    display: none;
}

.for-sm-input-file {
    padding: 0.625rem 1.25rem; /* Using rem */
    border-top-left-radius: 0.3125rem;
    border-bottom-left-radius: 0.3125rem;
    border: 1px solid #C34E27;
    cursor: pointer;
    text-align: center;
    color: #C34E27;
    background-color: #fff;
    transition: all 0.2s ease-in-out; /* Smooth transition for hover */
    font-weight: 500;
}

.for-sm-input-file:hover {
    background-color: #C34E27;
    color: #fff;
    box-shadow: 0 4px 8px rgba(195, 78, 39, 0.2); /* Subtle shadow on hover */
}

.span-text {
    flex-grow: 1;
    border: 1px solid #C34E27;
    background: #C34E27;
    color: #fff;
    padding: 0.625rem 1rem; /* Using rem */
    border-top-right-radius: 0.3125rem;
    border-bottom-right-radius: 0.3125rem;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis for overflow */
    font-weight: 400;
}

/* Login/Registration Toggle Buttons */
.login_form_open,
.registration_form_open {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.5rem; /* Using rem */
    margin-top: 0.625rem; /* Using rem */
    cursor: pointer;
    background-color: transparent;
    color: #C34E27;
    border: none; /* Use 'none' instead of '0' for consistency */
    padding: 0.5rem 0; /* Add some padding for better click area */
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; /* Smooth transition */
}

.login_form_open {
    margin-top: 1.25rem; /* Using rem */
}

.login_form_open:hover,
.registration_form_open:hover {
    color: #a03c1f; /* Slightly darker shade on hover */
    transform: translateY(-2px); /* Subtle lift effect */
}

/* Registration New User Section */
.register_form_main_container {
    padding: 6.25rem 0; /* Using rem */
    background-color: #f8f8f8; /* Light background for the container */
}

.registration_new_user_box {
    width: 95%; /* Use percentage for fluid width */
    max-width: 37.5rem; /* Using rem for max-width to control overall form size */
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 1.5rem; /* Using rem */
    padding: 1.5rem; /* Using rem */
    border: 1px dashed #d8d8d8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
}

.registration_new_user_box .registration_heading {
    width: 100%;
    font-size: 2rem; /* Using rem */
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.registration_new_user_box .registration_subtitle {
    width: 100%;
    max-width: 30rem; /* Control line length for readability */
    margin: 0.625rem auto 1rem auto; /* Center the subtitle and add vertical margin */
    line-height: 1.75rem; /* Using rem */
    color: #666;
    text-align: center;
}

.registration_new_user_box form {
    width: 100%;
    padding: 0.9375rem 0; /* Using rem */
    display: flex;
    flex-direction: column; /* Stack inputs vertically by default */
    gap: 1rem; /* Gap between input boxes */
}

.registration_new_user_box form .input_main_box {
    width: 100%;
    padding: 0.3125rem 0; /* Using rem */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem; /* Gap between inputs within a row */
}

.registration_new_user_box form .input_main_box input,
.registration_new_user_box form .input_main_box select,
.registration_new_user_box form .input_main_box textarea {
    width: calc(50% - 0.5rem); /* Adjust width for gap */
    border-radius: 1.875rem; /* Using rem */
    border: 2px solid #ddd !important; /* Lighter border, softer */
    font-size: 1.125rem; /* Using rem */
    padding: 1.25rem 1.5rem; /* Using rem */
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth transitions */
    color: #333;
}

.registration_new_user_box form .input_main_box input:focus,
.registration_new_user_box form .input_main_box select:focus,
.registration_new_user_box form .input_main_box textarea:focus {
    border-color: #007BFF !important; /* Highlight on focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Subtle glowing effect */
}

.registration_new_user_box form .input_main_box textarea {
    border-radius: 0.75rem; /* More natural for textarea */
    min-height: 8rem; /* Minimum height for textarea */
    resize: vertical; /* Allow vertical resizing */
}


.registration_new_user_box form .buttons {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the button */
    align-items: center;
    margin-top: 1rem;
}

.registration_new_user_box form .buttons button {
    padding: 0.9375rem 1.5625rem; /* Using rem */
    font-size: 1.5rem; /* Using rem */
    border-radius: 6.25rem; /* Using rem */
    background: #007BFF;
    color: #fff;
    border: 2px solid #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out; /* Smooth transition */
    cursor: pointer;
    width: 100%; /* Full width by default */
    max-width: 20rem; /* Limit max width for better appearance */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Initial shadow */
}

.registration_new_user_box form .buttons button:hover {
    background: #0069d9; /* Slightly darker blue on hover */
    border-color: #0062cc;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* More pronounced shadow */
    transform: translateY(-1px); /* Subtle lift */
}

.registration_new_user_box form .buttons button:active {
    background: #0056b3; /* Even darker blue on click */
    border-color: #004c9e;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.4); /* Depressed shadow */
    transform: translateY(1px); /* Push down effect */
}


/* Steps Status Bar */
.steps_status_register_form {
    width: 100%;
    padding: 1.5625rem 0; /* Using rem */
    margin: 1.5625rem 0; /* Using rem */
    border-radius: 3.125rem; /* Using rem */
    position: relative;
    z-index: 1;
    background-color: #f0f0f0; /* Light background for the bar container */
}

.step_bar_main {
    width: 100%;
    height: 0.625rem; /* Using rem */
    background: #e0e0e0; /* Lighter grey for the base bar */
    border-radius: 3.125rem; /* Using rem */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    z-index: 2;
}

.step_bar_main .step_bar {
    width: 0;
    height: 100%;
    background: #C34E27;
    border-radius: 3.125rem; /* Using rem */
    transition: all 0.5s ease-in-out; /* Smoother transition */
}

.number_box_step {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3; /* Ensure numbers are above the bar */
}

.number_box_step span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.125rem; /* Using rem */
    width: 3.125rem; /* Using rem */
    background: #ccc;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.125rem; /* Using rem */
    border: 3px solid #fff; /* White border for separation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Shadow for numbers */
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.active_form_no_box {
    background: #11143c !important; /* Darker blue for active step */
    border-color: #007BFF !important; /* Matching border color */
}

/* Client Register Services */
.client_register_services {
    width: 100%;
    max-height: 18.75rem; /* Using rem */
    padding: 1.5625rem 0; /* Using rem */
    overflow-y: auto;
    border-top: 1px solid #eee; /* Separator line */
    margin-top: 1.5rem;
}

.client_register_services > b {
    padding-bottom: 0.625rem; /* Using rem */
    display: block;
    font-size: 1.3125rem; /* Using rem */
    color: #333;
    margin-bottom: 0.5rem;
}

.checkbox_client_service {
    margin: 0px 0.3125rem; /* Using rem */
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: top; /* Align to top for multi-line labels */
}

.checkbox_client_service label {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.625rem; /* Using rem */
    padding: 0.9375rem 1.875rem; /* Using rem */
    margin: 0.3125rem 0; /* Using rem */
    border-radius: 1.5625rem; /* Using rem */
    background: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #eee; /* Subtle border */
}

.checkbox_client_service label:hover {
    background: #ececec;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.checkbox_client_service label input[type="checkbox"] {
    width: unset !important;
    min-width: 1.25rem; /* Ensure checkbox is visible */
    min-height: 1.25rem; /* Ensure checkbox is visible */
    accent-color: #C34E27; /* Style the checkbox itself */
    margin: 0; /* Remove default margin */
}

/* Already Have Account Box */
.already_account_box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem; /* Using rem */
    margin-top: 1.5rem; /* Add some space above */
    font-size: 1rem;
    color: #555;
}

.already_account_box a {
    color: #C34E27;
    text-decoration: none; /* Remove underline */
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.already_account_box a:hover {
    color: #a03c1f; /* Darker on hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 767px) {
    .register_form_main_container {
        padding: 4.6875rem 0; /* Using rem */
    }
    .registration_new_user_box {
        background-color: unset;
        border: 0px dashed #d8d8d8;
        box-shadow: unset;
        padding: 1rem; /* Adjust padding for smaller screens */
    }
    .registration_new_user_box .registration_subtitle {
        max-width: 100%; /* Allow subtitle to take full width on mobile */
        margin: 0.625rem auto 1rem auto; /* Center subtitle */
        line-height: 1.375rem; /* Using rem */
        font-size: 0.95rem;
    }
    .registration_new_user_box form .input_main_box {
        flex-direction: column; /* Stack inputs vertically */
        gap: 0.625rem; /* Smaller gap */
    }
    .registration_new_user_box form .input_main_box input,
    .registration_new_user_box form .input_main_box select,
    .registration_new_user_box form .input_main_box textarea {
        width: 100%;
        margin-bottom: 0.625rem; /* Using rem */
        font-size: 1.3125rem; /* Using rem */
        padding: 1rem 1.25rem; /* Adjust padding */
    }
    .registration_new_user_box form .buttons button {
        width: 100%;
        max-width: none; /* Allow full width on mobile */
        font-size: 1.3125rem;
        padding: 0.8rem 1.2rem;
    }
    .card {
        background: unset;
        border-style: dashed !important;
        border-width: 0px !important;
        border: 0px solid #d8d8d8;
        box-shadow: unset;
    }
    .client_register_services {
        width: 100%;
        padding: 1rem 0;
    }

    .number_box_step span {
        height: 2.1875rem; /* Using rem */
        width: 2.1875rem; /* Using rem */
        font-size: 0.75rem; /* Using rem */
    }

    .step_bar_main {
        height: 0.25rem; /* Using rem */
    }
}
