/*
============================================================
 Jordan Guild Tech - Contact Us Page Styles (contact.css)
 This file contains CSS rules unique to the contact page.
 All common, site-wide styles are in common.css.
============================================================
*/

/* ==================== PAGE HEADER (BANNER) ==================== */
.page-header.contact-page-header {
    background-color: #111827;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 200px 10%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header.contact-page-header .page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header.contact-page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.page-header.contact-page-header p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== CONTACT CONTENT ==================== */
.contact-content-section {
    background-color: #ffffff;
    padding: 60px 5% 40px 5%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info-block {
    flex: 1;
    padding-right: 30px;
}

.contact-info-block h2 {
    font-size: 2.8rem;
    color: #111827;
    margin-bottom: 20px;
}

.contact-info-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 30px;
}

.contact-detail {
    margin-bottom: 25px;
}

.contact-detail h3 {
    font-size: 1.4rem;
    color: #111827;
    margin: 0 0 10px 0;
}

.contact-detail span {
    font-size: 1.1rem;
    color: #4b5563;
    display: block;
}

.contact-form-block {
    flex: 1;
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #111827;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* ==================== MAP SECTION ==================== */
.map-section {
    background-color: #f9fafb;
    padding: 40px 5% 60px 5%;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}


/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .contact-info-block {
        padding-right: 0;
        width: 100%;
    }

    .contact-form-block {
        width: 100%;
    }

    .contact-info-block h2 {
        font-size: 2.5rem;
    }

    .contact-detail {
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .page-header.contact-page-header {
        padding: 80px 10% 60px 5%;
    }

    .page-header.contact-page-header h1 {
        font-size: 2.5rem;
    }

    .page-header.contact-page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-header.contact-page-header {
        padding: 70px 10% 50px 5%;
    }

    .page-header.contact-page-header h1 {
        font-size: 2rem;
    }

    .page-header.contact-page-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-content-section,
    .map-section {
        padding: 40px 5%;
    }

    .contact-form-block {
        padding: 30px;
    }

    .map-container iframe {
        height: 300px;
    }

    .page-header.contact-page-header {
        padding: 60px 5% 40px 5%;
    }

    .page-header.contact-page-header h1 {
        font-size: 1.8rem;
    }

    .page-header.contact-page-header p {
        font-size: 0.8rem;
    }
}

/* ==================== RESPONSIVE LAYOUT & SIZING ==================== */

/* --- Tablet and Larger Mobile Phones (992px) --- */
@media (max-width: 992px) {
    /* Multi-column layouts revert to a single column */
    .excellence-container,
    .about-container,
    .mission-vision-container,
    .why-choose-us-container,
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Course grid switches to 2 columns */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Responsive image sizes */
    .about-image, .mission-vision-image, .choose-us-image {
        flex: 1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .about-image img, .mission-vision-image img, .choose-us-image img {
        width: 100%;
    }
    
    /* Page header sizing for tablets */
    .page-header.courses-page-header,
    .page-header.aboutus-page-header,
    .page-header.contact-page-header {
        padding: 80px 5%;
        text-align: center;
    }

    .hero-content h1,
    .about-text h2,
    .excellence-content h2,
    .courses-header h2,
    .testimonials-container h2,
    .cta-content h2,
    .founders-container h2,
    .values-container h2,
    .contact-info-block h2 {
        font-size: 2.5rem;
    }
}

/* --- Small Mobile Phones (768px) --- */
@media (max-width: 768px) {
    /* Page headers shrink further */
    .page-header.courses-page-header,
    .page-header.aboutus-page-header,
    .page-header.contact-page-header {
        padding: 60px 5%;
    }

    /* All grid and flex layouts become a single column */
    .grid-container,
    .testimonials-grid,
    .values-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 30px;
    }

    /* Text content shrinks for readability */
    .hero-content h1,
    .about-text h2,
    .excellence-content h2,
    .courses-header h2,
    .testimonials-container h2,
    .cta-content h2,
    .founders-container h2,
    .values-container h2,
    .contact-info-block h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p,
    .about-text p,
    .excellence-content p,
    .card-content-detailed p,
    .testimonial-text {
        font-size: 1rem;
    }

    /* Other section styles and spacing */
    .excellence-section,
    .about-intro,
    .timeline-section,
    .courses-section,
    .contact-content-section,
    .map-section,
    .testimonials-section,
    .why-choose-us-section {
        padding: 40px 5%;
    }

    /* Specific element sizes */
    .stat-number-outlined {
        font-size: 4rem;
    }
    .timeline-container::before,
    .timeline-item::after {
        left: 20px;
    }
    .timeline-item, .timeline-item-reversed {
        padding-left: 50px;
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-image {
        order: 1;
        margin-bottom: 20px;
    }
    .timeline-content {
        order: 2;
    }
    .courses-slider-track {
        flex-direction: column;
        gap: 20px;
    }
    .course-card {
        max-width: 100%;
        margin: 0 auto;
    }
    .slider-arrow, .slider-pagination {
        display: none !important;
    }
}