/* Contact Page Styles - contact.css */

:root {
    --primary-blue: #1e3a8a;
    --secondary-green: #16a085;
    --accent-gold: #f39c12;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --text-muted: #6c757d;
    --success-green: #27ae60;
    --warning-orange: #e67e22;
    --danger-red: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Header Styles */
.header-top {
    background: var(--primary-blue);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path d="M200,300 Q500,100 800,300" stroke="rgba(255,255,255,0.1)" stroke-width="3" fill="none"/><circle cx="150" cy="200" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="850" cy="400" r="60" fill="rgba(255,255,255,0.08)"/><rect x="600" y="150" width="80" height="80" rx="10" fill="rgba(255,255,255,0.06)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Contact Method Cards */
.contact-method-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    border-left: 4px solid var(--secondary-green);
}

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

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.admissions-icon {
    background: var(--primary-blue);
}

.support-icon {
    background: var(--success-green);
}

.general-icon {
    background: var(--accent-gold);
}

.method-actions {
    margin-top: 1.5rem;
}

.method-actions .btn {
    margin: 0.25rem;
    border-radius: 25px;
}

/* Staff Cards */
.staff-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.staff-info h5 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.staff-role {
    color: var(--accent-gold);
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
}

.staff-description {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.staff-contact {
    text-align: center;
}

.contact-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.contact-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step-title {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

/* Category Selection */
.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-option {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-option:hover {
    background: rgba(22, 160, 133, 0.1);
    border-color: var(--secondary-green);
}

.category-option.selected {
    background: rgba(22, 160, 133, 0.15);
    border-color: var(--secondary-green);
    color: var(--primary-blue);
}

.category-option i {
    font-size: 2rem;
    color: var(--secondary-green);
    display: block;
    margin-bottom: 1rem;
}

.category-option span {
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.2rem rgba(22, 160, 133, 0.25);
    outline: none;
}

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

.invalid-feedback {
    color: var(--danger-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.form-navigation .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--secondary-green);
    color: white;
}

.progress-step.completed {
    background: var(--success-green);
    color: white;
}

/* Location Cards */
.location-card, .visit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.location-card h4, .visit-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.location-details p {
    margin-bottom: 1rem;
}

.location-actions, .visit-actions {
    margin-top: 1.5rem;
}

.location-actions .btn, .visit-actions .btn {
    margin: 0.25rem;
    border-radius: 25px;
}

.visit-option {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.visit-option h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.visit-option p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Hours Card */
.hours-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hours-card h4 {
    color: var(--primary-blue);
}

.hours-section {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    height: 100%;
}

.hours-section h6 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Emergency Section */
.emergency-section {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 15px;
    padding: 3rem 2rem;
}

.emergency-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.emergency-card h5 {
    color: var(--danger-red);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    background: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

/* Call to Action */
.cta-section {
    background: var(--primary-blue);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.btn-cta {
    background: var(--accent-gold);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px;
}

.btn-cta:hover {
    background: #e67e22;
    transform: translateY(-2px);
    color: white;
}

.btn-outline-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px 10px;
}

.btn-outline-cta:hover {
    background: white;
    color: var(--primary-blue);
}

/* Alert Boxes */
.alert-info {
    background: rgba(22, 160, 133, 0.1);
    border: 1px solid var(--secondary-green);
    color: var(--primary-blue);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Animations */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem 1rem;
    }
    
    .category-selection {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .staff-card {
        margin-bottom: 1.5rem;
    }
    
    .method-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cta-buttons .btn-cta,
    .cta-buttons .btn-outline-cta {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-buttons .btn-cta,
    .hero-buttons .btn-outline-cta {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 80px 0 60px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .category-option {
        padding: 1.5rem 0.75rem;
    }
    
    .staff-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --secondary-green: #006400;
        --dark-gray: #000000;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.category-option:focus,
.faq-question:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-method-card,
    .staff-card,
    .location-card,
    .visit-card,
    .hours-card,
    .emergency-card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .page-hero,
    .navbar,
    .footer,
    .cta-section {
        display: none;
    }
    
    .contact-form-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .staff-card,
    .contact-method-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}