/* General Container Styles */

/* body{
    background-color: rgb(130, 106, 251);  
} */
.container,
.container-about {
    position: relative;
    max-width: 700px;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center the containers */
}

.container-about h1 {
    text-align: center;
    font-size: 30px;
}

.container-about p {
    text-align: center;
    padding-top: 0.7rem;
}

/* Form Header Styles */
.container header {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* Form Styles */
.container .form {
    margin-top: 30px;
}

.form .input-box {
    width: 100%;
    margin-top: 20px;
}

.input-box label {
    color: #333;
}

.form :where(.input-box input, .select-box) {
    position: relative;
    height: 50px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #707070;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
}

.input-box input:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.form .column {
    display: flex;
    column-gap: 15px;
}

.form .gender-box {
    margin-top: 20px;
}

.gender-box h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.form :where(.gender-option, .gender) {
    display: flex;
    align-items: center;
    column-gap: 50px;
    flex-wrap: wrap;
}

.form .gender {
    column-gap: 5px;
    cursor: pointer;
}

.gender input {
    accent-color: rgb(130, 106, 251);
}

.form :where(.gender input, .gender label) {
    cursor: pointer;
}

.gender label {
    color: #707070;
}

.address :where(input, .select-box) {
    margin-top: 15px;
}

.select-box select {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    color: var(--color-carrot);
    font-size: 1rem;
    background-color: white;
    box-sizing: border-box;  
}

.form button {
    height: 55px;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    border: none;
    margin-top: 30px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 400;
    transition: all 0.2s ease;
    background-color: rgb(130, 106, 251);
}

.form button:hover {
    background-color: rgb(88, 56, 250);
}

/* Responsive Styles */
@media screen and (max-width: 500px) {
    .form .column {
        flex-direction: column; /* Stack columns vertically */
        margin-top: 15px; /* Add some margin between stacked elements */
    }

    .form :where(.gender-option, .gender) {
        flex-direction: column; /* Stack gender options vertically */
        row-gap: 10px; /* Adjust gap between gender options */
    }

    .form .input-box,
    .form .select-box {
        margin-top: 15px; /* Ensure consistent spacing */
    }

    header {
        font-size: 1.2rem; /* Slightly reduce header size */
    }

    .input-box label,
    .gender-box h3 {
        font-size: 0.9rem; /* Reduce label font size */
    }

    .form button {
        font-size: 0.9rem; /* Reduce button font size */
    }
}