@charset "utf-8";
/* =========================================================
   contact-modern.css
   สไตล์เฉพาะหน้า "ติดต่อเรา" (?p=contact)
   ทุก class ขึ้นต้นด้วย .cm- เพื่อไม่ให้กระทบหน้าอื่นของธีม
   ========================================================= */

.cm {
    --cm-navy: #001d59;
    --cm-navy-2: #003a86;
    --cm-red: #d7000b;
    --cm-red-2: #ff2d18;
    --cm-line-green: #06c755;
    --cm-ink: #16181d;
    --cm-muted: #6b7280;
    --cm-line: #e7eaf0;
    --cm-bg: #f5f6f9;
    --cm-radius: 16px;
    --cm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --cm-shadow-hover: 0 12px 32px rgba(16, 24, 40, .14);

    font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--cm-bg);
    color: var(--cm-ink);
}

.cm *,
.cm *::before,
.cm *::after {
    box-sizing: border-box;
}

.cm-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.cm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 60px 0 54px;
    background-color: var(--cm-navy);
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    isolation: isolate;
}

.cm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 100% at 15% 0%, rgba(0, 58, 134, .55) 0%, rgba(0, 12, 40, .1) 60%),
        linear-gradient(180deg, rgba(0, 13, 42, calc(var(--cm-overlay, 72) * .008)) 0%, rgba(0, 13, 42, calc(var(--cm-overlay, 72) * .011)) 100%);
}

.cm-hero-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
    color: #fff;
}

.cm-crumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
}

.cm-crumb a {
    color: rgba(255, 255, 255, .88) !important;
    text-decoration: none !important;
}

.cm-crumb a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.cm-crumb i.fa-chevron-right {
    font-size: 10px;
    opacity: .6;
}

.cm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 14px;
    color: #fff;
}

.cm-eyebrow i {
    color: #ffcf3f;
}

.cm-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.25;
    font-weight: 600;
    color: #fff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.cm-hero-sub {
    max-width: 660px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .84) !important;
}

/* ปุ่มลัดในแบนเนอร์ */
.cm-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16.5px;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cm-btn:hover {
    transform: translateY(-2px);
}

.cm-btn-red {
    background: linear-gradient(120deg, var(--cm-red-2) 0%, var(--cm-red) 100%);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(215, 0, 11, .38);
}

.cm-btn-line {
    background: var(--cm-line-green);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(6, 199, 85, .34);
}

.cm-btn-ghost {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .34);
    color: #fff !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cm-btn-ghost:hover {
    background: rgba(255, 255, 255, .24);
}

/* ---------------------------------------------------------
   เนื้อหาหลัก
   --------------------------------------------------------- */
.cm-main {
    padding: 46px 0 10px;
}

.cm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.cm-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 600;
    color: var(--cm-ink);
}

.cm-title i {
    color: var(--cm-red);
}

.cm-owner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    background: #fff;
    box-shadow: var(--cm-shadow);
}

.cm-owner-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--cm-navy-2) 0%, var(--cm-navy) 100%);
    color: #fff;
    font-size: 20px;
}

.cm-owner-label {
    font-size: 13.5px;
    color: var(--cm-muted);
}

.cm-owner-name {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--cm-ink);
}

/* การ์ดช่องทางติดต่อ */
.cm-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cm-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    background: #fff;
    box-shadow: var(--cm-shadow);
    color: inherit;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

a.cm-card:hover {
    transform: translateY(-4px);
    border-color: #dfe3ea;
    box-shadow: var(--cm-shadow-hover);
    color: inherit;
}

.cm-card-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #eef2f8;
    color: var(--cm-navy);
    font-size: 18px;
}

.cm-card-icon.is-red {
    background: #ffeceb;
    color: var(--cm-red);
}

.cm-card-icon.is-line {
    background: #e4f9ed;
    color: #04a445;
}

.cm-card-icon.is-blue {
    background: #e9f1ff;
    color: #1877f2;
}

.cm-card-icon.is-gold {
    background: #fff5e0;
    color: #d69100;
}

.cm-card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.cm-card-label {
    font-size: 13.5px;
    color: var(--cm-muted);
    margin-bottom: 3px;
}

.cm-card-value {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--cm-ink);
    word-break: break-word;
}

.cm-card-value small {
    display: block;
    font-size: 14.5px;
    font-weight: 400;
    color: #4a5058;
}

.cm-card-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    color: var(--cm-red);
}

a.cm-card:hover .cm-card-go {
    text-decoration: underline;
}

.cm-card-wide {
    grid-column: 1 / -1;
}

/* ---------------------------------------------------------
   คอลัมน์ขวา : QR + เวลาทำการ
   --------------------------------------------------------- */
.cm-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cm-panel {
    padding: 22px 20px;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    background: #fff;
    box-shadow: var(--cm-shadow);
}

.cm-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 17.5px;
    font-weight: 600;
    color: var(--cm-ink);
}

.cm-panel-title i {
    color: var(--cm-red);
}

.cm-qr {
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--cm-line);
    overflow: hidden;
    background: #fff;
}

.cm-qr img {
    display: block;
    width: 100%;
    height: auto;
}

.cm-qr-text {
    margin-top: 12px;
    text-align: center;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--cm-muted) !important;
}

.cm-qr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--cm-line-green);
    color: #fff !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: box-shadow .2s ease, transform .2s ease;
}

.cm-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 199, 85, .34);
}

/* เวลาทำการ */
.cm-hours {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-hours li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 15.5px;
    line-height: 1.6;
}

.cm-hours li + li {
    margin-top: 2px;
}

.cm-hours li.is-today {
    background: #f2f6ff;
    font-weight: 500;
}

.cm-hours .cm-day {
    color: #3c424b;
}

.cm-hours li.is-today .cm-day::after {
    content: " (วันนี้)";
    font-size: 12.5px;
    color: var(--cm-navy-2);
}

.cm-hours .cm-time {
    color: #1f7a3d;
    white-space: nowrap;
}

.cm-hours .cm-time.is-closed {
    color: #b0353d;
}

.cm-hours-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e3e7ee;
    font-size: 14px;
    line-height: 1.7;
    color: var(--cm-muted) !important;
}

/* ---------------------------------------------------------
   MAP
   --------------------------------------------------------- */
.cm-map-section {
    padding: 44px 0 56px;
}

.cm-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cm-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid var(--cm-line);
    border-radius: 999px;
    background: #fff;
    color: #2b3038 !important;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: var(--cm-shadow);
    transition: all .2s ease;
}

.cm-map-link:hover {
    border-color: transparent;
    background: linear-gradient(120deg, var(--cm-navy-2) 0%, var(--cm-navy) 100%);
    color: #fff !important;
}

.cm-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--cm-shadow);
    line-height: 0;
    background: #e9ecf1;
}

.cm-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* ---------------------------------------------------------
   ADMIN BAR
   --------------------------------------------------------- */
.cm-adminbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px 0;
}

.cm-adminbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cm-line);
    color: #2b3038 !important;
    font-size: 14.5px;
    text-decoration: none !important;
    box-shadow: var(--cm-shadow);
}

.cm-adminbar a:hover {
    border-color: var(--cm-red);
    color: var(--cm-red) !important;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .cm-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cm-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cm-side > .cm-panel {
        flex: 1 1 300px;
    }
}

@media (max-width: 767px) {
    .cm-hero {
        min-height: 320px;
        padding: 44px 0 40px;
    }

    .cm-actions {
        gap: 10px;
    }

    .cm-btn {
        height: 46px;
        padding: 0 20px;
        font-size: 15.5px;
    }

    .cm-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .cm-card {
        padding: 16px;
        gap: 12px;
    }

    .cm-main {
        padding: 32px 0 6px;
    }

    .cm-side {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm * {
        transition: none !important;
        animation: none !important;
    }
}
