
/* ========================================
   7. COMPLAINT FORM STYLES
   ======================================== */

/* Enhanced Complaint Form Styling */
.complaint-form {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.complaint-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2a5298, #1e3c72);
}

.complaint-form:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Form inside the complaint-form */
.complaint-form  {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Enhanced form controls */
.complaint-form .form-control,
.complaint-form .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.complaint-form .form-control:focus,
.complaint-form .form-select:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Enhanced labels */
.complaint-form .form-label {
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Enhanced submit button */
.complaint-form .btn-primary {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.complaint-form .btn-primary:hover {
    background: linear-gradient(45deg, #2a5298, #2a5298);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

/* Enhanced textarea */
.complaint-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form header styling */
.complaint-form h4 {
    color: var(--text-primary) !important;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Loading state for submit button */
.complaint-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   8. FORM VALIDATION STYLES
   ======================================== */

/* Enhanced validation styles */
.complaint-form .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.complaint-form .invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
}

.complaint-form .is-invalid ~ .invalid-feedback {
    display: block;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Required field asterisk */
.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Custom file upload validation styles */
.custom-file-upload.is-invalid .btn,
.btn.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
}

.custom-file-upload.is-invalid ~ .invalid-feedback,
.custom-file-upload .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    font-weight: 500;
}

.custom-file-upload .invalid-feedback {
    display: none;
}

.custom-file-upload.is-invalid .invalid-feedback {
    display: block;
}


/* ========================================
   10. UTILITY CLASSES
   ======================================== */

/* Enhanced list styling */
.list-group-item {
    background-color: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    padding-left: 10px !important;
    color: #2a5298 !important;
}

/* Check icons */
.fa-check.text-primary {
    color: #2a5298 !important;
    font-size: 1.1rem;
}



/* ========================================
   15. NAVBAR ADDITIONAL STYLES
   ======================================== */
.bg-white {
    background-color: var(--card-bg) !important;
}
.bg-light {
    background-color: var(--bg-secondary) !important;
}