/* ===================================================
   CONTACT PAGE – con-contact (CLEAN FINAL)
=================================================== */

/* ================= BASE ================= */

.con-contact-body,
.con-contact-body * {
    box-sizing: border-box;
}

.con-contact-body {
    width: 100%;
    background: #ffffff;
    overflow-x: hidden;
}

/* ================= HERO ================= */

.con-contact-hero {
    padding: clamp(64px, 8vw, 120px) 0 0;
}

.con-contact-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.con-contact-hero-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 16px;
    color: #0b2a4a;
}

.con-contact-hero-desc {
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(15px, 1.6vw, 18px);
    color: #2f3a44;
}

/* ================= MAP ================= */

.con-contact-hero-map {
    margin-top: clamp(32px, 6vw, 64px);
}

.con-contact-map-embed {
    position: relative;
    width: 100%;
    height: clamp(360px, 55vh, 620px);
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(11, 42, 74, 0.18);
}

.con-contact-map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= CONTACT METHODS ================= */

.con-contact-methods {
    padding: clamp(64px, 8vw, 120px) 0;
}

.con-contact-methods-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

/* ================= CARD ================= */

.con-contact-card {
    background: #ffffff;
    border: 1px solid #e5ecf3;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.con-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(11, 42, 74, 0.12);
}

/* ICON (Font Awesome) */

.con-contact-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #f1f6ff;
    color: #0b2a4a;
    font-size: 20px;

    transition: background 0.25s ease, color 0.25s ease;
}

.con-contact-card:hover .con-contact-card-icon {
    background: #0b2a4a;
    color: #ffffff;
}

/* TEXT */

.con-contact-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0b2a4a;
}

.con-contact-card-desc {
    font-size: 14px;
    margin-bottom: 10px;
    color: #2f3a44;
}

.con-contact-card-link,
.con-contact-card-text {
    font-size: 14px;
    font-weight: 500;
    color: #0b2a4a;
    text-decoration: none;
}

/* ================= FAQ ================= */

.con-contact-faq {
    padding: clamp(64px, 8vw, 120px) 0;
    background: #f9fbfd;
}

.con-contact-faq-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.con-contact-faq-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 48px;
    color: #0b2a4a;
}

.con-contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.con-contact-faq-item {
    background: #ffffff;
    border: 1px solid #e5ecf3;
    border-radius: 16px;
    padding: 24px;
}

/* ================= CTA ================= */

.con-contact-cta {
    padding: clamp(72px, 9vw, 140px) 0;
}

.con-contact-cta-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .con-contact-methods-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .con-contact-map-embed {
        height: clamp(280px, 45vh, 420px);
    }

    .con-contact-faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .con-contact-methods-inner {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }
}

/* ===================================================
   MICRO INTERACTIONS – PREMIUM TOUCH
=================================================== */

/* ================= GLOBAL TRANSITION ================= */

.con-contact-card,
.con-contact-card-icon,
.con-contact-card-link {
    transition:
        transform 0.35s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s cubic-bezier(.2, .8, .2, 1),
        background 0.35s ease,
        color 0.35s ease;
}

/* ================= CARD HOVER ================= */

.con-contact-card {
    will-change: transform;
}

.con-contact-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px rgba(11, 42, 74, 0.12),
        0 4px 12px rgba(11, 42, 74, 0.08);
}

/* ================= ICON MOTION ================= */

.con-contact-card-icon {
    position: relative;
    overflow: hidden;
}

/* subtle glow */
.con-contact-card-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, .6),
            transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
}

.con-contact-card:hover .con-contact-card-icon::after {
    opacity: .35;
}

/* ================= LINK INTERACTION ================= */

.con-contact-card-link {
    position: relative;
    display: inline-block;
}

.con-contact-card-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.con-contact-card:hover .con-contact-card-link::after {
    transform: scaleX(1);
}

/* ================= FAQ INTERACTION ================= */

.con-contact-faq-item {
    transition:
        transform .35s cubic-bezier(.2, .8, .2, 1),
        box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}

.con-contact-faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 42, 74, 0.08);
}

/* ================= CTA BUTTON ================= */

.con-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    transition:
        transform .25s cubic-bezier(.2, .8, .2, 1),
        box-shadow .25s ease,
        background .25s ease;
}

.con-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 42, 74, 0.2);
}

/* ================= FOCUS (ACCESSIBILITY) ================= */

.con-contact-card:focus-within,
.con-contact-btn:focus-visible,
.con-contact-card-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 42, 74, 0.25);
}

/* ================= REDUCE MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ================= MOBILE TEXT OVERFLOW FIX ================= */

.con-contact-card {
    min-width: 0;
    /* 🔑 สำคัญมากสำหรับ grid */
}

.con-contact-card-title,
.con-contact-card-desc,
.con-contact-card-link,
.con-contact-card-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* email / tel ดู premium ไม่ขาดคำมั่ว */
.con-contact-card-link {
    display: inline-block;
    max-width: 100%;
}

/* mobile typography tighten */
@media (max-width: 480px) {
    .con-contact-card-title {
        font-size: 15px;
    }

    .con-contact-card-desc {
        font-size: 13px;
        line-height: 1.45;
    }

    .con-contact-card-link,
    .con-contact-card-text {
        font-size: 13px;
    }
}

/* ================= CONTACT HERO BAR (COMPACT GRADIENT) ================= */

.con-contact-hero {
    padding: 48px 0 0;
    /* ไม่สูง */
}

.con-hero-bar {
    display: none;
    /* ปิด bar เดิม ถ้ามี */
}

.con-contact-hero-inner {
    background: linear-gradient(135deg,
            #0b2a4a 0%,
            #123a63 50%,
            #0b2a4a 100%);
    border-radius: 20px;
    padding: clamp(32px, 4vw, 48px) 24px;
    box-shadow: 0 18px 48px rgba(11, 42, 74, 0.25);
}

/* ================= TEXT COLOR OVERRIDE ================= */

.con-contact-hero-title {
    color: #ffffff;
}

.con-contact-hero-desc {
    color: rgba(255, 255, 255, 0.9);
}

.con-hero-meta {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.con-contact-hero-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.15),
            transparent 60%);
    pointer-events: none;
}

/* ================= FULL-WIDTH CONTACT HERO BAR ================= */

.con-contact-hero {
    width: 100%;
    padding: clamp(40px, 5vw, 64px) 0;
    /* สูงพอดีครอบ text */
    background: linear-gradient(135deg,
            #0b2a4a 0%,
            #123a63 50%,
            #0b2a4a 100%);
}

/* ปิด bar เดิมถ้ามี */
.con-hero-bar {
    display: none;
}

/* ================= INNER CONTENT ================= */

.con-contact-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* ================= TEXT COLOR ================= */

.con-contact-hero-title {
    color: #ffffff;
}

.con-contact-hero-desc {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.con-hero-meta {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* ================= CTA – HERO STYLE (COMPACT) ================= */

.con-contact-cta {
    position: relative;
    width: 100%;
    padding: clamp(40px, 4vw, 56px) 0;
    /* เตี้ยกว่า hero */
    background: linear-gradient(135deg,
            #0b2a4a 0%,
            #123a63 50%,
            #0b2a4a 100%);
    overflow: hidden;
}

/* soft light เหมือน hero */
.con-contact-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.12),
            transparent 60%);
    pointer-events: none;
}

/* ================= INNER ================= */

.con-contact-cta-inner {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* ================= TEXT ================= */

.con-contact-cta-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.con-contact-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.con-contact-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.con-contact-faq-item h4 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.con-contact-faq-item h4 i {
    color: #0b2a4a;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}