/* Custom CSS for Medicaid Meal Support Landing Page */

/* Root Variables - Can be customized to match BPJCC brand */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004c99 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
main {
    min-height: 60vh;
}

/* Form Container */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-weight: 600;
    margin-bottom: 0;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-label .text-danger {
    font-weight: 700;
}

/* Form Inputs */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Radio Buttons */
.form-check {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: var(--text-dark);
}

/* Alerts */
.alert {
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning-color);
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger-color);
}

/* Submit Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* FAQ Container */
.faq-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    top: 2rem;
}

.faq-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Accordion Styling */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 6px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    border-color: var(--primary-color);
}

.accordion-button::after {
    filter: brightness(0) invert(0);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 1.25rem;
    color: var(--text-dark);
}

.accordion-body ul {
    margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
    background-color: #e7f3ff;
    border-color: #b3d9ff !important;
}

.info-box h4 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Validation Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    /* Tablet and below */
    .faq-container {
        margin-top: 2rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    /* Mobile */
    .form-container,
    .faq-container {
        padding: 1.5rem;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    /* Stack form fields on mobile */
    .row.mb-3 .col-md-6,
    .row.mb-3 .col-md-5,
    .row.mb-3 .col-md-4,
    .row.mb-3 .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Loading State */
#submitBtn:disabled .submit-text {
    opacity: 0.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn,
    footer {
        display: none;
    }
    
    .form-container,
    .faq-container {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

