/* --- Contact Page Styles --- */

/* Hero Section */
.contact-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?q=80&w=2674&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 16, 73, 0.9), rgba(37, 99, 235, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Info Cards */
.contact-info-section {
    padding: 80px 5%;
    background: linear-gradient(to bottom, #f9fafb 0%, white 100%);
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-navy));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-navy));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.info-card h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-card a {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.info-card a:hover {
    color: var(--primary-navy);
    transform: translateX(5px);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 5%;
    background: white;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-weight: 800;
}

.form-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.contact-form {
    background: linear-gradient(135deg, #f9fafb 0%, white 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
}

.form-group.error .error-message {
    display: block;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-navy));
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px auto 0 auto;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-success-message {
    display: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.form-success-message.show {
    display: block;
}

.form-success-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Office Hours Section */
.office-hours-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--primary-navy), #1e3a8a);
    color: white;
}

.hours-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.hours-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hours-left p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hours-grid {
    display: grid;
    gap: 20px;
}

.hours-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.hours-item.highlight {
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border-color: rgba(255, 255, 255, 0.3);
}

.day {
    font-weight: 600;
    font-size: 1.05rem;
}

.time {
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    filter: grayscale(20%) contrast(1.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 5%;
    background: linear-gradient(to bottom, #f9fafb 0%, white 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-content p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-navy));
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.cta-btn.secondary:hover {
    background: var(--primary-navy);
    color: white;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .contact-info-section {
        padding: 60px 5%;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-header h2 {
        font-size: 2rem;
    }

    .hours-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hours-left h2 {
        font-size: 2rem;
    }

    .hours-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .map-container {
        height: 300px;
    }
}