/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4070f4;
} */


.container-form {
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 6px;
    padding: 30px;
    margin: 0x 15px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}




.container-form header.head-form {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.container-form header::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 50px;
    border-radius: 8px;
    background-color: #4070f4;
}

.head-desc {
    margin-top: 2%;
}

.container-form form {
    position: relative;
    margin-top: 16px;
    min-height: 490px; /* Adjust this if needed */
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container-form form .form {
    display: none; /* Hide all steps by default */
    width: 100%;
    transition: 0.3s ease;
}

.container-form form .form.active {
    display: block; /* Show the active step */
}

.container-form form .title {
    display: block;
    margin-bottom: 8px;
    font-size: 25px;
    font-weight: 500;
    margin: 6px 0;
    color: #333;
}

.container-form form .fields {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px; /* Add gap between fields */
}

form .fields .input-field {
    display: flex;
    width: calc(100% / 2 - 10px); /* Adjust width to account for gap */
    flex-direction: column;
    margin: 4px 0;
}

form .fields .input-field-1 {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin: 4px 0;
}

/* Container for input-field-2 elements */
.input-field-2-container {
    display: flex;
    gap: 10px; /* Space between fields */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin: 8px 0;
}

/* Styling for input-field-2 */
.input-field-2 {
    display: flex;
    width: calc(100% / 3 - 10px); /* 3 fields per row */
    flex-direction: column;
    margin: 4px 0;
}

.input-field label,
.input-field-1 label,
.input-field-2 label {
    font-size: 12px;
    font-weight: 500;
    color: #2e2e2e;
}

.input-field input,
.input-field select,
.input-field-1 input,
.input-field-1 select,
.input-field-2 input,
.input-field-2 select {
    outline: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 5px;
    border: 1px solid #aaa;
    padding: 0 15px;
    height: 42px;
    margin: 8px 0;
    width: 100%; /* Ensure inputs take full width */
}

.input-field input:focus,
.input-field select:focus,
.input-field-1 input:focus,
.input-field-1 select:focus,
.input-field-2 input:focus,
.input-field-2 select:focus {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
}

.input-field input[type="date"],
.input-field-1 input[type="date"],
.input-field-2 input[type="date"] {
    color: #707070;
}

.input-field input[type="date"]:valid,
.input-field-1 input[type="date"]:valid,
.input-field-2 input[type="date"]:valid {
    color: #333;
}

.input-field input.error,
.input-field select.error,
.input-field-1 input.error,
.input-field-1 select.error,
.input-field-2 input.error,
.input-field-2 select.error {
    border-color: red;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between checkboxes */
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and text */
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.container-form form button,
.backBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    max-width: 200px;
    width: 100%;
    border: none;
    outline: none;
    color: #fff;
    border-radius: 5px;
    margin: 25px 0;
    padding: 0 50px;
    background-color: #4070f4;
    transition: all 0.3s linear;
    cursor: pointer;
}

.container-form form .btnText {
    font-size: 14px;
    font-weight: 400;
}

form button:hover {
    background-color: #265df2;
}

form button i,
form .backBtn i {
    margin: 0 6px;
}

form .backBtn i {
    transform: rotate(180deg);
}

form .buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Add gap between buttons */
    margin-top: auto; /* Push buttons to the bottom */
}

form .buttons button,
.backBtn {
    margin-right: 0; /* Remove margin-right */
}

/* Responsive Styling */
@media (max-width: 750px) {
    .container-form form {
        overflow-y: auto; /* Allow scrolling if content overflows */
    }

    .container-form form::-webkit-scrollbar {
        display: none;
    }

    form .fields .input-field,
    form .fields .input-field-1,
    form .fields .input-field-2 {
        width: 100%; /* Full width on smaller screens */
    }

    .input-field-2 {
        width: calc(100% / 2 - 10px); /* 2 fields per row on medium screens */
    }

    .checkbox-group {
        gap: 8px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 550px) {
    .head-desc {
        font-size: 12px;
    }

    .input-field-2 {
        width: 100%; /* 1 field per row on small screens */
    }

    .checkbox-group {
        gap: 6px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
}