/* โครงสร้างหลัก */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: "Prompt", sans-serif;
    color: #f0f0f0;
}

/* หัวข้อใหญ่ */
.contact-section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 35px;
    color: #d4af37;
    letter-spacing: 1px;
}

/* การ์ดติดต่อ */
.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 12px rgba(212,175,55,0.18);
}

/* ชื่อผู้ติดต่อ */
.contact-name {
    font-size: 24px;
    color: #ffd86b;
    margin-bottom: 15px;
}

/* รายการข้อมูลติดต่อ */
.contact-info p {
    font-size: 18px;
    margin: 8px 0;
}

.contact-info p strong {
    color: #ffd86b;
}

/* ปุ่ม LINE พรีเมียม */
.line-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00c300, #009900);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s;
    margin: 15px 0;
}

.line-btn:hover {
    background: linear-gradient(135deg, #00d000, #00a000);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

/* กล่อง QR Code */
.line-qr-box {
    text-align: center;
    margin: 15px 0;
}

.line-qr-box img {
    width: 180px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

/* ----------------------------- */
/* 📱 Responsive: มือถือ */
/* ----------------------------- */
@media (max-width: 600px) {

    .contact-section {
        padding: 15px;
        margin: 20px auto;
    }

    .contact-section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-name {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .line-btn {
        width: 100%;
        text-align: center;
        font-size: 17px;
        padding: 12px 0;
    }

    .line-qr-box img {
        width: 150px;
    }
}

/* ----------------------------- */
/* 📱💻 Responsive: แท็บเล็ต */
/* ----------------------------- */
@media (min-width: 601px) and (max-width: 900px) {

    .contact-section {
        padding: 20px 30px;
    }

    .contact-section-title {
        font-size: 30px;
    }

    .contact-info p {
        font-size: 17px;
    }

    .line-qr-box img {
        width: 170px;
    }
}
/*--แก้จอเอียง--*/
/* ============================
   ⭐ Tablet (≤ 900px)
============================ */
@media (max-width: 900px) {

    .contact-wrapper {
        max-width: 95%;
    }

    .contact-section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .contact-card {
        padding: 22px;
    }

    .contact-info p {
        font-size: 17px;
    }

    .line-qr-box img {
        width: 160px;
    }
}

/* ============================
   ⭐ Mobile (≤ 600px)
============================ */
@media (max-width: 600px) {

    .contact-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .contact-section {
        padding: 15px;
        margin: 20px auto;
    }

    .contact-section-title {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-name {
        font-size: 20px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .line-btn {
        width: 100%;
        padding: 12px 0;
        font-size: 17px;
    }

    .line-qr-box img {
        width: 140px;
    }
}

/* ============================
   ⭐ Mobile Landscape (เอียงจอ)
   ความสูงน้อย → ลด padding + ลดขนาด QR
============================ */
@media (max-height: 500px) and (max-width: 1024px) {

    .contact-wrapper {
        max-width: 95%;
        padding: 0 10px;
    }

    .contact-section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-info p {
        font-size: 15px;
    }

    .line-btn {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    .line-qr-box img {
        width: 120px;
    }
}
