/**
 * FHE Security Services - Custom CSS Additions
 * @package FHE Security
 */

/* Notification Toast */
.notification-toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Quote Calculator Specific */
.quote-form .form-section-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.quote-item.discount span:last-child {
    color: #4ade80;
}

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

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Card Hover States */
.service-card,
.staff-card,
.news-card {
    position: relative;
}

.service-card::after,
.staff-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::after,
.staff-card:hover::after {
    transform: scaleX(1);
}

/* Image Overlay Gradient */
.image-card .overlay {
    background: linear-gradient(to top, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.4) 50%, transparent 100%);
}

/* Mobile Menu Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Body Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* Selection Color */
::selection {
    background: var(--red);
    color: white;
}

/* Focus Visible Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--red);
    border-color: var(--red);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-stats,
    .btn,
    .mobile-menu-btn,
    .section-dark {
        display: none !important;
        background: white !important;
        color: black !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .service-card,
    .contact-form-card,
    .quote-calculator {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}