/* General form styling */
.member-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px 40px;
}

/* Flexbox container for the fields */
.form-fields-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: space-between; /* Adds space between columns */
}

/* Individual field styling */
.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    /* Each field takes up a little less than 50% to account for gaps */
    flex-basis: calc(50% - 10px); 
}

/* Styling for a field that should span the full width */
.form-field.full-width {
    flex-basis: 100%;
    flex-direction: row;
}

.form-field.full-width input[type="checkbox"] {
    margin-right: 20px;
}

.member-form label {
    font-size: 0.6em;
    margin-bottom: 5px;
    font-weight: bold;
}

.member-form input,
.member-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.member-form button {
    padding: 14px;
    background-color: #155dfc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.form-button-container {
    width: 100%;
    text-align: center;
}

/* Responsive: On screens smaller than 600px, stack to one column */
@media (max-width: 600px) {
    .form-field {
        flex-basis: 100%; /* Each field takes full width */
    }
}