/* Custom styles */
body {
    background: #f7f7f7;
}

.form-container {
    max-width: 800px;
    margin: 2rem auto;
}

.registration-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.form-label {
    font-weight: 500;
}

.required-field::after {
    content: " *";
    color: red;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-primary {
    margin-top: 1rem;
}

/* Custom styles for file input */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Custom styles for date picker */
.flatpickr-input {
    background-color: #fff !important;
}

/* Error states */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading .loading-spinner {
    display: block;
}

.floating-alert {
    position: fixed;
    top: 20px;
    right: 10px;
    left: 10px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}