/* Contact Cards Page Additional Styles */

/* Hero Section Background - Override gradient */
.contact-hero {
    background: #0085AA !important;
}

/* Responsive Grid Layout */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: cardSlideIn 0.6s ease-out;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Form Responsive Layout */
.contact-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: #0085AA !important;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #006d8a !important;
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 133, 170, 0.3) !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-wrapper {
        padding: 25px;
        margin: 0 15px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 20px;
    }
    
    .form-wrapper {
        padding: 20px;
        margin: 0 10px;
    }
    
    .contact-hero {
        padding: 60px 0 40px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-cards-section {
        padding: 60px 0;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
}

/* Custom card animations */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* Card type specific styling */
.contact-card[data-type="office"] {
    border-left: 4px solid #28a745;
}

.contact-card[data-type="department"] {
    border-left: 4px solid #667eea;
}

.contact-card[data-type="other"] {
    border-left: 4px solid #ffc107;
}

/* Enhanced hover effects */
.contact-card:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contact-card:hover .card-header h3 {
    color: #667eea;
    transition: color 0.3s ease;
}

/* Loading animation for form submission */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Print styles */
@media print {
    .contact-hero,
    .contact-form-section,
    .card-actions {
        display: none;
    }
    
    .contact-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .contact-cards-grid {
        display: block;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .contact-cards-section {
        background: #1a1a1a;
    }
    
    .contact-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .card-header h3,
    .contact-info strong {
        color: #ffffff;
    }
    
    .contact-info {
        color: #cccccc;
    }
    
    .contact-form {
        background: #2d2d2d;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #3d3d3d;
        color: #ffffff;
        border-color: #555;
    }
}

/* Accessibility improvements */
.contact-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contact-card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid #000000;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .btn,
    .card-icon {
        animation: none;
        transition: none;
    }
    
    .contact-card:hover {
        transform: none;
    }
}