/* ==========================================================================
   PAGE-SPECIFIC STYLES: CONTACT (contact.css) - WOXA INSPIRED
   ========================================================================== */

/* 1. Hero Section (White Background) */
.contact-hero {
    padding: 150px 10% 80px;
    text-align: center;
    background-color: var(--bg-white);
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-label::before,
.contact-label::after {
    content: "";
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.contact-hero h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. Message Form Section (Light Grey Background) */
.form-section {
    padding: 100px 10%;
    background-color: var(--bg-light-grey);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 50px;
}

.form-header span {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 10px;
}

.expatique-form .form-group {
    margin-bottom: 35px;
}

.expatique-form label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.expatique-form input,
.expatique-form textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.expatique-form input:focus,
.expatique-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(181, 133, 41, 0.05);
}

/* 3. Office & Location (White Background) */
.office-section {
    padding: 120px 10%;
    background-color: var(--bg-white);
}

.office-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.office-info {
    flex: 1;
    min-width: 350px;
}

.office-info h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.office-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.office-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
}

.office-details {
    padding: 30px;
}

.office-details h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.office-details p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.office-map {
    flex: 1.2;
    min-width: 350px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* 4. Careers CTA (Dark Background) */
.careers-cta {
    padding: 120px 10%;
    background-color: var(--primary-color);
    text-align: center;
    color: #fff;
}

.careers-cta h2 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.careers-cta h2 span {
    color: var(--accent-gold);
}

.careers-cta p {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.careers-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   🔥 CONTACT MOBILE MASTER FIX (V.2)
   * แก้ปัญหา Contact Us โดนบังมิดแบบเด็ดขาด (ใช้ Margin ดันข้อความลงมาตรงๆ)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- 1. ป้องกันหน้าจอล้นแนวนอน 100% --- */
    body,
    html,
    main {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* --- 2. 🔥 HERO SECTION (ท่าไม้ตาย: ดันเนื้อหาหนี Navbar) --- */
    .contact-hero {
        /* บังคับให้ Hero มีพื้นที่ด้านบนเยอะๆ */
        padding-top: 130px !important;
        padding-bottom: 60px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        box-sizing: border-box !important;

        /* 🔥 ถ้าของเดิมเป็น flex ให้บังคับเรียงแนวตั้งและอยู่ตรงกลาง */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }

    /* 🔥 ดันคำว่า WRITE TO US / CONTACT US ลงมาให้ห่างขอบบนสุดๆ */
    .contact-label {
        font-size: 0.85rem !important;
        margin-top: 40px !important;
        /* 🔥 ดันตัวเองลงมา 40px หนี Navbar ชัวร์ๆ */
        margin-bottom: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .contact-label::before,
    .contact-label::after {
        width: 20px !important;
    }

    .contact-hero h1 {
        font-size: 3.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        /* ล้าง margin-top เผื่อมันตีกัน */
    }

    .contact-hero p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }

    /* --- 3. SAFE AREA สำหรับ Section อื่นๆ ทั่วไป --- */
    .form-section,
    .office-section,
    .careers-cta {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-header h2 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .office-info h2 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .careers-cta h2 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    /* --- 4. FORM SECTION (ฟอร์มส่งข้อความ) --- */
    .form-container {
        width: 100% !important;
        padding: 0 !important;
    }

    .expatique-form input,
    .expatique-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- 5. OFFICE & MAP SECTION (เรียงแนวตั้ง) --- */
    .office-grid {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .office-info,
    .office-map {
        min-width: 0 !important;
        width: 100% !important;
    }

    .office-map {
        height: 350px !important;
    }

    /* --- 6. BUTTONS & CTA (ปุ่มสมัครงาน/ติดต่อ) --- */
    .careers-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .btn,
    .btn-outline,
    .careers-actions a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}