.signup_body{
    background-color: #f0f0f0; /* Light gray background for the entire page */
    font-family: 'Karla', sans-serif; /* Default font for the page */
    padding: 20px; /* General padding for the body */
    margin: 0;
    box-sizing: border-box;
}
/* Main container for the signup form area */
.signup_flex_container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.signup_flex_with_background {
    background-color: #eeeeee; /* Grayish background for the form area */
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px; /* Max width for the form container */
    box-sizing: border-box;
}

/* Logo Styling */
.signup_crbn_logo_container {
    text-align: center;
    margin-bottom: 25px;
}

.signup_crbn_logo {
    max-width: 180px;
    height: auto;
}

/* Typography */
h3.custom_header_text {
    font-family: 'Unica One', sans-serif;
    font-size: 1.8em;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FA5500;
    padding-bottom: 8px;
    letter-spacing: 1px;
}

h3.custom_header_text:first-of-type {
    margin-top: 0; /* No top margin for the very first header */
}


p {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #555;
}

.orange_text {
    color: #FA5500;
    font-weight: bold;
}

/* Form Styling */
.signup_form {
    margin-top: 20px;
}

.signup_input_flex {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label.signup_label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333333;
    text-transform: uppercase;
}

/* Styling for Django form widgets (input, select, textarea) */
.signup_form input[type="text"],
.signup_form input[type="email"],
.signup_form input[type="password"],
.signup_form input[type="tel"], /* Assuming phone might be tel */
.signup_form select,
.signup_form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Karla', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.signup_form input[type="text"]:focus,
.signup_form input[type="email"]:focus,
.signup_form input[type="password"]:focus,
.signup_form input[type="tel"]:focus,
.signup_form select:focus,
.signup_form textarea:focus {
    border-color: #FA5500;
    outline: none;
    box-shadow: 0 0 5px rgba(250, 85, 0, 0.3);
}

/* Specifically for select elements if they need different padding or height */
.signup_form select {
    padding: 12px 10px; /* Adjust if necessary for select arrow */
    appearance: none; /* Basic reset for select appearance */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}


/* Error Message Styling */
.error_text {
    color: #D8000C !important; /* Ensure this red is used */
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 0.85em;
}

/* Footer and Policy Section */
.signup_footer_col {
    margin-top: 25px;
    margin-bottom: 20px;
}

a.signup_policy_link {
    color: #FA5500;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

a.signup_policy_link:hover {
    color: #d64800; /* Darker orange on hover */
    text-decoration: underline;
}

.signup_flex_row {
    display: flex;
    align-items: center; /* Vertically align checkbox and label */
    margin-bottom: 20px;
}

.signup_flex_row input[type="checkbox"] {
    margin-right: 10px;
    width: 18px; /* Custom size for checkbox */
    height: 18px; /* Custom size for checkbox */
    accent-color: #FA5500; /* Color for the checkbox tick/fill */
}

label.signup_policy_label {
    font-size: 0.9em;
    color: #333;
    font-weight: normal; /* Override bold if it was inherited */
    text-transform: none; /* Override uppercase if inherited */
}

p.no_margin {
    margin-top: 0;
    margin-bottom: 10px; /* Small margin before the button */
    font-size: 0.9em;
    color: #555;
}

/* Button Styling */
button.signup_orange_button {
    background-color: #FA5500;
    color: #ffffff;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-family: 'Unica One', sans-serif;
    font-size: 1.3em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%; /* Full width button */
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

button.signup_orange_button:hover {
    background-color: #d64800; /* Darker orange on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

button.signup_orange_button:active {
    background-color: #b23a00; /* Even darker orange on click */
    transform: translateY(0);
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .signup_flex_with_background {
        padding: 25px 20px;
        margin: 0 10px; /* Add some horizontal margin on smaller screens */
    }

    h3.custom_header_text {
        font-size: 1.6em;
    }

    button.signup_orange_button {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .signup_crbn_logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .signup_flex_with_background {
        padding: 20px 15px;
    }

    h3.custom_header_text {
        font-size: 1.4em;
    }

    label.signup_label {
        font-size: 0.85em;
    }

    .signup_form input[type="text"],
    .signup_form input[type="email"],
    .signup_form input[type="password"],
    .signup_form input[type="tel"],
    .signup_form select,
    .signup_form textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    button.signup_orange_button {
        font-size: 1em;
    }

    .signup_flex_row {
        flex-direction: column; /* Stack checkbox and label on very small screens */
        align-items: flex-start;
    }

    .signup_flex_row input[type="checkbox"] {
        margin-bottom: 8px;
    }
}
