/* Container styling for the form */
.custom-form {
    background-color: var(--color-white);         /* White background */
    padding: 2rem;                  /* Inner padding */
    border-radius: 12px;            /* Rounded corners */
    box-shadow: 0 4px 12px var(--color-shadow); /* Subtle shadow */
    max-width: 900px;               /* Optional: limit width */
    margin: 0 auto;                 /* Center the form */
    transition: box-shadow 0.3s ease;
}

/* Hover effect on form container */
.custom-form:hover {
    box-shadow: 0 6px 18px var(--color-shadow-strong);
}

/* Styling for form labels */
.custom-form .form-label {
    font-weight: 500;
}

/* Input, select, textarea styling */
.custom-form input:not([type="checkbox"]):not([type="radio"]),
.custom-form select,
.custom-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-offwhite);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* Focus state */
.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem var(--color-secondary);
    outline: none;
}

/* Error messages */
.custom-form .text-danger {
    font-size: 0.875rem;
}

/* Checkbox / radio spacing */
.custom-form .form-check {
    margin-bottom: 1rem;
}

.form-header {
    max-width: 900px;
    margin: 0 auto;
}
