/* Custom CSS for modern form styling */

/* Form container */
.form-container {
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Form inputs */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 58px; /* For form-floating */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Form floating labels */
.form-floating > label {
    padding: 1rem;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #0d6efd;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Invalid feedback */
.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 0.5rem;
}

.form-actions .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    min-width: 120px;
}

/* Required field indicator */
label:has(+ .required)::after, 
label.required::after {
    content: ' *';
    color: #dc3545;
}

/* Custom styling for checkboxes and radios */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Card headers above forms */
.card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.card-header h2 {
    margin-bottom: 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
} 