/* Tampilan halaman Contact (Pages/Contact.cshtml), susunan seperti dokterspkk.com/contact-us.aspx:
   1. "Our Location": judul tengah, peta, tombol Open Maps;
   2. latar lembut: kolom kiri form "Message Us", kolom kanan "Contact Us" (kartu per cabang, kontak lain, ojol,
      marketplace, "Connect With Us" ikon bulat).
   Dimuat SETELAH contact-legacy.css (hasil generate, selektornya tidak cocok dengan markup ini). Semua warna/font
   memakai token Tampilan Toko (--brand, --brand-soft, --ink, --surface, --line, --font-heading, --font-body),
   jadi ikut tema & Mode Tema (termasuk Dark). */

/* Kartu kontak sedikit lebih pekat dari latar bagian (--brand-soft). */
.responsive.default .contact {
    --contact-card: color-mix(in srgb, var(--brand) 9%, var(--brand-soft));
}

/* Judul bagian (Our Location, Message Us, Contact Us, Pesan Online, ...): warna utama, tebal. */
.responsive.default .contact .text-title,
.responsive.default .contact h2,
.responsive.default .contact h3 {
    font-family: var(--font-heading) !important;
    color: var(--brand) !important;
    font-weight: 700;
    line-height: 1.2;
}
.responsive.default .contact .maps .text-title,
.responsive.default .contact .message-header .text-title,
.responsive.default .contact .information-header .text-title {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    margin-bottom: 0;
}
.responsive.default .contact .content-ojol .text-title,
.responsive.default .contact .content-marketplace .text-title,
.responsive.default .contact .content-social-media .text-title,
.responsive.default .contact .operational-hour-header .text-title {
    font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
}
.responsive.default .contact .text-description,
.responsive.default .contact .link > span {
    color: var(--ink) !important;
    font-family: var(--font-body) !important;
}

/* ---------- 1. Our Location ---------- */
.responsive.default .contact .maps {
    margin: 0;
    padding: 3.5rem 0 4.5rem;
}
.responsive.default .contact .maps-header {
    margin-bottom: 2.25rem;
    text-align: center;
}
.responsive.default .contact .maps .iframe iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}
.responsive.default .contact .maps .content-button {
    margin-top: 1.5rem;
    text-align: center;
}
.responsive.default .contact .btn-maps {
    display: inline-block;
    width: auto;
    padding: .65rem 1.9rem;
    font-size: var(--store-btn-font-size);
    font-weight: var(--store-btn-font-weight);
    color: var(--brand-contrast) !important;
    background-color: var(--brand) !important;
    border: 0;
    border-radius: .5rem;
}
.responsive.default .contact .btn-maps::before { content: none; }
.responsive.default .contact .btn-maps:hover,
.responsive.default .contact .btn-maps:focus {
    background-color: var(--brand-dark) !important;
}

/* ---------- 2. Message Us + Contact Us ---------- */
.responsive.default .contact .section-group {
    padding: 4.5rem 0 4rem;
    background: var(--brand-soft);
    border-top: 1px solid var(--line);
}
.responsive.default .contact .message-header,
.responsive.default .contact .information-header {
    margin-bottom: 2rem;
}

/* Form: label miring kecil, kolom isian tinggi, tombol kirim di tengah. */
.responsive.default .contact .message .form-label {
    margin-bottom: .4rem;
    font-size: .875rem;
    font-style: italic;
    color: var(--muted-ink, var(--ink));
}
.responsive.default .contact .message .form-control,
.responsive.default .contact .message .form-select {
    min-height: 3.25rem;
    padding: .8rem 1rem;
    font-size: .9rem;
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: .35rem;
}
.responsive.default .contact .message textarea.form-control { min-height: 8rem; }
.responsive.default .contact .message .form-control::placeholder { color: var(--muted-ink, var(--ink)); opacity: .75; }
.responsive.default .contact .message .form-control:focus,
.responsive.default .contact .message .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .15);
}
.responsive.default .contact .message .form-group { margin-bottom: 1.5rem !important; }
.responsive.default .contact .message-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: .5rem;
}
.responsive.default .contact .btn-footer {
    padding: .7rem 1.85rem;
    font-size: var(--store-btn-font-size);
    font-weight: var(--store-btn-font-weight);
    color: var(--brand-contrast) !important;
    background-color: var(--brand) !important;
    border: 0;
    border-radius: .5rem;
}
.responsive.default .contact .btn-footer:hover,
.responsive.default .contact .btn-footer:focus {
    background-color: var(--brand-dark) !important;
}

/* Kartu kontak per cabang (dan "Kontak Lain"). */
.responsive.default .contact .info-wrapper > .wrapper-inner {
    margin-bottom: 1rem;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--contact-card);
    border-radius: .75rem;
}
.responsive.default .contact .info-wrapper .info-header .text-title {
    margin-bottom: .85rem;
    font-size: 1.125rem;
}
.responsive.default .contact .content-link .link {
    margin-bottom: .35rem;
    font-size: .875rem;
    line-height: 1.6;
}
.responsive.default .contact .link-address,
.responsive.default .contact .link-phone,
.responsive.default .contact .link-email {
    color: var(--ink) !important;
    font-family: var(--font-body) !important;
    text-decoration: none;
}
.responsive.default .contact .link-content i { width: 1.1em; margin-right: .2rem; text-align: center; }
.responsive.default .contact .link-address:hover,
.responsive.default .contact .link-address:focus,
.responsive.default .contact .link-phone:hover,
.responsive.default .contact .link-phone:focus,
.responsive.default .contact .link-email:hover,
.responsive.default .contact .link-email:focus {
    color: var(--brand) !important;
}

/* Jam operasional, Pesan Online, marketplace, sosial media: jarak antar blok. */
.responsive.default .contact .content-operational-hour,
.responsive.default .contact .content-ojol,
.responsive.default .contact .content-marketplace,
.responsive.default .contact .content-social-media {
    margin-top: 2.25rem;
}
.responsive.default .contact .operational-hour-header,
.responsive.default .contact .ojol-header,
.responsive.default .contact .marketplace-header,
.responsive.default .contact .social-media-header {
    margin-bottom: 1rem;
}
.responsive.default .contact .operational-hour-content .wrapper-inner {
    margin-bottom: .75rem;
    padding: 1.25rem 1.5rem;
    background: var(--contact-card);
    border-radius: .75rem;
}

/* Tombol ojol & marketplace: kartu putih berbingkai (warna merek pihak ketiga tidak dipakai). */
.responsive.default .contact .content-ojol .content-button,
.responsive.default .contact .content-marketplace .content-button {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: .65rem;
}
.responsive.default .contact .content-ojol .btn-content,
.responsive.default .contact .content-marketplace .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    padding: .7rem 1rem;
    font-size: var(--store-btn-font-size);
    font-weight: var(--store-btn-font-weight);
    color: var(--ink) !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: .5rem;
}
/* Ikon tombol (sama dengan footer Katalog); ikon bawaan CSS lama (::before) dimatikan agar tidak dobel. */
.responsive.default .contact .btn-content::before { content: none !important; }
.responsive.default .contact .btn-content .btn-icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; object-fit: contain; }
.responsive.default .contact .btn-content i.btn-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.responsive.default .contact .btn-content img.icon-grab { padding: .2rem; background: #00b14f; border-radius: .35rem; }
.responsive.default .contact .content-ojol .btn-content:hover,
.responsive.default .contact .content-marketplace .btn-content:hover {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

/* Connect With Us: ikon bulat warna utama. */
.responsive.default .contact .social-media-content .content-icon {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.responsive.default .contact .social-media-content .icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.15rem;
    color: var(--brand-contrast) !important;
    background: var(--brand) !important;
    border-radius: 50%;
}
.responsive.default .contact .social-media-content .icon a:hover,
.responsive.default .contact .social-media-content .icon a:focus {
    background: var(--brand-dark) !important;
}

/* Hover halus semua tombol & tautan halaman kontak. */
.responsive.default .contact a,
.responsive.default .contact .btn {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* HP & tablet: kolom bertumpuk, jarak lebih rapat. */
@media (max-width: 991.98px) {
    .responsive.default .contact .maps { padding: 2.5rem 0 3rem; }
    .responsive.default .contact .maps .iframe iframe { height: 300px; }
    .responsive.default .contact .section-group { padding: 3rem 0; }
    .responsive.default .contact .info-wrapper > .wrapper-inner { padding: 1.25rem 1.25rem 1rem; }

    /* Urutan di HP & tablet: informasi kontak, peta, form pesan, lalu ulasan & widget. Form dan info ada di satu baris
       (.section-group) di markup, jadi pembungkusnya dilebur (display: contents) supaya keduanya bisa diurutkan terhadap peta. */
    .responsive.default .contact { display: flex; flex-direction: column; }
    .responsive.default .contact .section-group,
    .responsive.default .contact .section-group > .container,
    .responsive.default .contact .section-group .row,
    .responsive.default .contact .col-section-outer { display: contents; }
    .responsive.default .contact .col-section-inner { padding-top: 3rem; padding-bottom: 3rem; background: var(--brand-soft); border-top: 1px solid var(--line); }
    .responsive.default .contact .col-section-inner:has(.information) { order: 1; }
    .responsive.default .contact .maps { order: 2; }
    .responsive.default .contact .col-section-inner:has(.message) { order: 3; }
    .responsive.default .contact .review { order: 4; }
    .responsive.default .contact .social-widget { order: 5; }

    /* Judul "Contact Us", "Message Us", "Connect With Us" dan ikon media sosial rata tengah. */
    .responsive.default .contact .information-header,
    .responsive.default .contact .message-header,
    .responsive.default .contact .social-media-header { text-align: center; }
    .responsive.default .contact .social-media-content .content-icon { justify-content: center; }
}
