/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Loading Spinner */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.page-loader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a7d8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-container {
    text-align: center;
}

.spinner-text {
    margin-top: 1rem;
    color: #1e3156;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    background: #1a2847;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.75rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-content > div {
    white-space: nowrap;
}

/* Navigation */
nav {
    background: #1e3156;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    z-index: 1001;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    opacity: 0.8;
}

.btn-login {
    background: #FDB913;
    color: #1e3156;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #e5a610;
}

/* Mobile Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* Common Button Styles */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
    white-space: nowrap;
}

.btn-primary {
    background: #FDB913;
    color: #1e3156;
}

.btn-primary:hover {
    background: #e5a610;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #1a2847;
    color: white;
    padding: 2.5rem 1.5rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-badge {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #FDB913;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FDB913;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Form Styles */
label {
    display: block;
    font-weight: 600;
    color: #1a2847;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    min-height: 44px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2a7d8f;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Service Cards (used across multiple pages) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #e8f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-icon.teal { background: #e8f5f7; color: #2a7d8f; }
.service-icon.yellow { background: #fff9e6; color: #FDB913; }
.service-icon.red { background: #ffe8e8; color: #dc3545; }
.service-icon.blue { background: #e6f0ff; color: #0066cc; }
.service-icon.green { background: #e8f5e8; color: #28a745; }
.service-icon.purple { background: #f0e8ff; color: #6f42c1; }

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2847;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-button {
    background: white;
    border: 1.5px solid #dee2e6;
    color: #1a2847;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.service-button:hover {
    border-color: #2a7d8f;
    color: #2a7d8f;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .top-bar-content {
        padding: 0 3rem;
    }

    .nav-content {
        padding: 0 3rem;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    footer {
        padding: 3rem 3rem 1.5rem;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: #1e3156;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 2rem 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-login {
        margin: 1rem 2rem;
        text-align: center;
        display: block;
    }

    .top-bar-content > div:last-child {
        display: none;
    }

    /* Touch-friendly improvements */
    .service-card,
    button,
    a.btn {
        min-height: 44px;
    }

    .service-button,
    input,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid,
select.is-invalid,
input.is-invalid,
textarea.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus,
select.is-invalid:focus,
input.is-invalid:focus,
textarea.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.35) !important;
}

/* Remove validation styling when field is filled */
.form-control:valid,
.form-select:valid,
select:valid,
input:valid,
textarea:valid {
    border-color: #ddd;
}

/* SweetAlert above modal */
.swal-above-modal {
    z-index: 99999 !important;
}

.swal2-container {
    z-index: 99999 !important;
}

/* Alert components for modals */
.alert {
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    color: #004085;
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Form text helper */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Required field indicator */
span.required {
    color: #dc3545;
    font-weight: 700;
}
/* FullCalendar Customization */
#appointmentCalendar {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* FullCalendar base overrides */
.fc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Calendar header styling */
.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #e9ecef !important;
    background: transparent !important;
}

.fc .fc-toolbar-chunk {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1e3156 !important;
    margin: 0 !important;
}

.fc .fc-button {
    background-color: #002b5c !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.fc .fc-button:hover:not(:disabled) {
    background-color: #003d7a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 43, 92, 0.2) !important;
}

.fc .fc-button:active {
    background-color: #001f3f !important;
    transform: translateY(0) !important;
}

.fc .fc-button:disabled {
    background-color: #6c757d !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.fc .fc-button-active,
.fc .fc-button-active:hover {
    background-color: #003d7a !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.fc .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.25) !important;
}

/* Time grid and slots */
.fc .fc-timegrid-slot {
    height: 4rem !important;
    border-color: #e9ecef !important;
}

.fc .fc-timegrid-slot-label {
    border-color: #e9ecef !important;
    color: #495057 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    vertical-align: middle !important;
    padding: 0 0.5rem !important;
}

.fc .fc-timegrid-axis {
    background-color: #f8f9fa !important;
}

.fc .fc-col-header {
    background-color: #f8f9fa !important;
}

.fc .fc-col-header-cell {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    padding: 1rem 0.5rem !important;
}

.fc .fc-col-header-cell-cushion {
    color: #1e3156 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem !important;
}

.fc .fc-scrollgrid {
    border-color: #dee2e6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #dee2e6 !important;
}

.fc .fc-scrollgrid-section > * {
    border-color: #dee2e6 !important;
}

.fc .fc-timegrid-col {
    border-color: #dee2e6 !important;
}

.fc .fc-timegrid-divider {
    border-color: #dee2e6 !important;
    padding: 0 !important;
}

/* Event/Slot styling */
.fc-event {
    border: none !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    margin: 2px !important;
    padding: 4px 8px !important;
}

.fc .fc-event.available-slot {
    background-color: #28a745 !important;
    border: 2px solid #1e7e34 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.fc .fc-event.available-slot:hover {
    background-color: #218838 !important;
    border-color: #1c7430 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    z-index: 100 !important;
}

.fc .fc-event.booked-slot {
    background-color: #dc3545 !important;
    border: 2px solid #bd2130 !important;
    cursor: not-allowed !important;
    opacity: 0.75 !important;
}

/* Event content */
.fc-event-main {
    padding: 0.25rem 0.5rem !important;
}

.fc-event-main-frame {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.fc-event-title-container {
    flex: 1 !important;
    min-width: 0 !important;
}

.fc-event-title {
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 0.25rem !important;
}

.fc-event-title i {
    font-size: 0.875rem !important;
    margin-bottom: 0.25rem !important;
}

.fc-event-title small {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    opacity: 0.95 !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* Today highlighting */
.fc .fc-day-today {
    background-color: rgba(0, 43, 92, 0.05) !important;
}

.fc .fc-day-today .fc-col-header-cell-cushion {
    color: #002b5c !important;
    font-weight: 800 !important;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: #dc3545 !important;
}

/* Remove default FullCalendar link styling */
.fc a {
    text-decoration: none !important;
}

.fc a:hover {
    text-decoration: none !important;
}

/* View harness */
.fc .fc-view-harness {
    min-height: 500px !important;
    background: white !important;
}

/* Scrollgrid sync */
.fc .fc-scrollgrid-sync-table {
    background: white !important;
}

/* Selected slot info box */
#selectedSlotInfo {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal scrolling fix - prevent double scrollbars */
.modal.active {
    overflow-y: auto !important;
}

.modal-dialog {
    margin: 2rem auto !important;
    max-height: none !important;
}

.modal-body {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Large modal for calendar */
.modal-lg .modal-dialog {
    max-width: 1000px !important;
}

/* Responsive calendar */
@media (max-width: 768px) {
    #appointmentCalendar {
        padding: 0.5rem;
    }
    
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc .fc-button {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.7rem !important;
    }
    
    .fc .fc-timegrid-slot {
        height: 2.5rem !important;
    }
    
    .fc-event-title {
        font-size: 0.7rem !important;
    }
    
    .modal-lg .modal-dialog {
        max-width: 95% !important;
        margin: 1rem auto !important;
    }
}

/* Calendar loading state */
.fc .fc-view-harness {
    min-height: 400px;
}

/* Better spacing for appointment form */
#appointmentSchedulerForm .form-group {
    margin-bottom: 1.25rem;
}

#appointmentSchedulerForm .form-control,
#appointmentSchedulerForm .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.2s;
}

#appointmentSchedulerForm .form-control:focus,
#appointmentSchedulerForm .form-select:focus {
    border-color: #002b5c;
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
    outline: none;
}

/* Appointment modal specific */
#appointmentSchedulerModal .modal-header {
    background: linear-gradient(135deg, #002b5c 0%, #003d7a 100%);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#appointmentSchedulerModal .modal-header .modal-title {
    color: white;
}

#appointmentSchedulerModal .modal-header .modal-close {
    color: white;
    opacity: 0.9;
}

#appointmentSchedulerModal .modal-header .modal-close:hover {
    opacity: 1;
}
/* Additional calendar and modal enhancements */
#appointmentSchedulerModal .modal-body {
    padding: 1.5rem !important;
}

#appointmentSchedulerModal #appointmentCalendar {
    margin-bottom: 1.5rem;
}

.fc table {
    border-collapse: collapse !important;
    width: 100% !important;
}

.fc td,
.fc th {
    border: 1px solid #dee2e6 !important;
}

.fc-timegrid-event-harness {
    position: absolute !important;
}

.fc-timegrid-event {
    position: relative !important;
}

.fc .fc-timegrid-slot:hover {
    background-color: rgba(0, 43, 92, 0.02) !important;
}

.fc .fc-daygrid-day-number,
.fc .fc-timegrid-slot-label-cushion {
    color: #495057 !important;
}

.fc .fc-button-group {
    display: inline-flex !important;
    gap: 0 !important;
}

.fc .fc-button-group > .fc-button {
    margin: 0 !important;
    border-radius: 0 !important;
}

.fc .fc-button-group > .fc-button:first-child {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
}

.fc .fc-button-group > .fc-button:last-child {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.fc .fc-event.selected-slot {
    border: 3px solid #ffc107 !important;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3) !important;
}

.fc .fc-view-harness.fc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fix modal-lg width */
.modal-lg .modal-content {
    width: 100% !important;
}

/* Fix appointment scheduler modal layout */
#appointmentSchedulerModal .modal-dialog {
    display: flex;
    flex-direction: column;
}

#appointmentSchedulerModal .modal-content {
    display: flex;
    flex-direction: column;
    height: auto;
}

#appointmentSchedulerModal .modal-footer {
    margin-top: auto;
}

/* Submit button styling */
#submitAppointmentBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

#submitAppointmentBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#submitAppointmentBtn:active {
    transform: translateY(0);
}

/* Button general styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #002b5c 0%, #003d7a 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003d7a 0%, #004a92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 43, 92, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn i {
    font-size: 1rem;
}

/* Ensure modals have proper flex structure */
.modal-dialog {
    display: flex !important;
    flex-direction: column !important;
}

.modal-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.modal-body {
    flex: 1 !important;
}

.modal-footer {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

/* ===========================
   Form Validation Error Styles
   =========================== */

/* Error state for input fields */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error,
input.field-error,
select.field-error,
textarea.field-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Error message below fields */
.form-group .error-message,
.error-message {
    display: block;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

/* Shake animation for error fields */
@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

.shake-error {
    animation: shake-error 0.5s ease-in-out;
}

/* Slide down animation for error messages */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus state for error fields */
.form-group input.field-error:focus,
.form-group select.field-error:focus,
.form-group textarea.field-error:focus,
input.field-error:focus,
select.field-error:focus,
textarea.field-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Optional: Style for required field labels */
.form-group label.required::after,
label.required::after {
    content: ' *';
    color: #dc2626;
}
