/* HERO BANNER */

.hero h1 { font-size: 4rem; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 700px; margin: auto; color: #d0d0d0; line-height: 1.9; }

/* CONTACT LAYOUT GRID */
.contact-section {
    padding: 80px 8%;
}

/* 📦 Container คุมกรอบความกว้างส่วนเนื้อหาทั้งหมดในหน้านี้ */
.contact-container {
    max-width: 1200px; /* กำหนดความกว้างเพดานสูงสุด */
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* เว้นระยะห่างระหว่าง หัวข้อ -> กล่องเนื้อหา -> แผนที่ */
}

/* จัดตำแหน่งหัวข้อหลักให้เริ่มจากขอบซ้ายของแนวเนื้อหาพอดี */
/* ✨ ปรับหัวข้อหลักให้ย้ายมาอยู่กึ่งกลางหน้าจออย่างสมบูรณ์ */
.contact-main-header {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center; /* 🎯 คำสั่งย้ายข้อความมาอยู่ตรงกลาง */
    margin-bottom: 20px; /* ระยะเว้นช่องไฟก่อนถึงตัวกล่องเนื้อหาด้านล่าง */
}

.contact-main-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    display: inline-block; /* บังคับให้สเกลตัวอักษรจับกลุ่มกันตรงกลางพอดี */
}

.contact-main-header h2 span {
    color: #d4af37;
}
/* โครงสร้าง Grid/Flex มิติ 2 คอลัมน์ */
.contact-grid-content {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* บังคับให้ขอบบนของกล่องซ้ายและขวาเรียบเสมอกัน */
    width: 100%;
}

.contact-left-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ------------------------------------------------------------
   🎯 แก้ไขส่วนควบคุมคอลัมน์ฝั่งขวา เพื่อกระจายพื้นที่และลดช่องว่าง
   ------------------------------------------------------------ */
.contact-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🚀 บังคับให้กล่องบน และ กล่องล่าง แยกไปชิดขอบบน-ล่างพอดี */
    align-self: stretch;            /* บังคับให้คอลัมน์ขวาสูงเท่ากับคอลัมน์ซ้ายแบบสมบูรณ์ */
}

/* ปรับแต่งความสูงของกล่องแบบฟอร์มด้านล่างให้สมดุล */
.contact-right-column .info-item {
    margin-bottom: 0 !important;   /* ลบ Margin ล่างออกเพื่อไม่ให้หลุดเฟรม */
    display: flex;
    flex-direction: column;
    justify-content: center;       /* จัดเนื้อหาในบล็อกฟอร์มให้อยู่กึ่งกลางแนวดิ่ง */
    flex-grow: 1;                  /* 🚀 ให้กล่องฟอร์มช่วยยืดกินพื้นที่ส่วนที่เหลือ แทนที่จะปล่อยให้เป็นช่องว่างเปล่าๆ */
    margin-top: 20px;              /* ระยะห่างระหว่างกล่องบนกับกล่องล่าง */
}

/* ตกแต่งกล่องข้อมูลติดต่อฝั่งขวา */
/* 🖤 ปรับแต่งกล่องข้อมูลติดต่อฝั่งขวา (เอาเส้นขอบทองออกแล้ว) */
.contact-highlight-box {
    border: none !important; /* ❌ ลบเส้นขอบทองออกอย่างสมบูรณ์ */
    background-color: #161616 !important; /* พื้นหลังสีดาร์กโทนเดียวกับฝั่งซ้าย */
    border-radius: 12px;
    padding: 35px !important;
    /* 🌑 เปลี่ยนเงาจากสีทองเรืองแสงให้เป็นเงาสีดำนุ่ม ๆ เนียนไปกับภาพรวม */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
    width: 100%;
    box-sizing: border-box;
    margin-top: 0 !important;
}

.contact-method-item {
    margin-bottom: 25px;
}

.contact-method-item:last-of-type {
    margin-bottom: 30px;
}

.contact-method-item strong {
    color: #d4af37;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.contact-method-item p {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

/* ปุ่มแสดง QR Code ด้านในกล่องทอง */
.contact-highlight-box .line-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37, #b89322);
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px; /* ปรับความมนให้เข้ากับกล่องสาขาสำนักงาน */
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-highlight-box .line-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 🗺️ ตัวควบคุมกรอบแผนที่ บังคับให้ล็อคความกว้างเท่ากับเซ็ตด้านบนเป๊ะ */
.contact-map-wrapper {
    width: 100%;
    height: 450px;
    margin-top: 15px;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ระบบจัดเรียงบนหน้าจอมือถือ */
@media (max-width: 992px) {
    .contact-grid-content {
        flex-direction: column;
        gap: 25px;
    }
    .contact-left-column, .contact-right-column {
        width: 100%;
    }
    .contact-map-wrapper {
        height: 350px;
    }
}
/* INFO ITEM CARDS */
.info-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.02);
}

.info-item strong {
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    color: #e0e0e0;
}

.line-box-wrapper strong {
    display: inline-block;
    margin-right: 10px;
}

/* LINE BUTTON WITH LIGHT EFFECT */
.line-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d4af37, #f7dc6f);
    color: #111;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(212,175,55,.35);
    animation: floatBtn 2s ease-in-out infinite;
}

@keyframes floatBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.line-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 15px rgba(212,175,55,.7), 0 0 30px rgba(212,175,55,.5);
}

.line-btn:active { transform: scale(0.95); }

.line-btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transition: .6s;
}

.line-btn:hover::before { left: 100%; }

/* MAP GOOGLE IFRAME */
.map {
    margin-top: 30px;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map iframe {
    width: 150px;
    height: 200px;
    border: none;
    display: block;
}

/* CONTACT FORM ELEMENTS */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    width: 100%;
    padding: 18px;
    outline: none;
    border-radius: 15px;
    background: #111;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212,175,55,0.15);
}

textarea {
    min-height: 180px;
    resize: none;
}

.submit-btn {
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #d4af37, #f1d77b);
    color: black;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(212,175,55,0.25);
}

/* RESPONSIVE DESIGN */
@media(max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 { font-size: 2.8rem; }
}

/* สไตล์ครอบคลุมแถวฟอร์มแบบใหม่ */
.kp-cnt-form-card-row {
    width: 100%;
}

.kp-cnt-form-card-row .kp-cnt-form-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* จัดคอนเทนต์ในกล่องให้อยู่ตรงกลาง */
    justify-content: center;
    padding: 30px;
    background: #111; /* หรือสีพื้นหลังเดิมของคุณ */
    border: 1px solid #c5a880; /* สีขอบทอง (ถ้ามี) */
    border-radius: 12px;
}