/* contact.css — M PRO9 Contact Page */

:root {
  --primary: #173f64;
  --primary-light: #319dcf;
  --secondary: #0a1f3d;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--site-nav-h-px, 80px);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -120%;
  left: 16px;
  padding: 10px 22px;
  background: var(--secondary);
  color: #f1f5fa;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--primary-light); outline-offset: 2px; }

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(0.95rem, 2vw, 1.1rem); }

a { color: var(--primary); text-decoration: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ---- Section ---- */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* ---- Section label ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--primary-light);
  color: #ffffff;
}
.btn-primary:hover {
  background: #2589ba;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49,157,207,0.32);
}

/* ===================== HERO ===================== */
.contact-hero {
  background: var(--secondary);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Text-protection overlay + crosshatch grid + radial glows */
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Dark left-side gradient: protects headline/paragraph readability */
    linear-gradient(
      to right,
      rgba(10,31,61,0.88) 0%,
      rgba(10,31,61,0.62) 36%,
      rgba(10,31,61,0.22) 60%,
      transparent 78%
    ),
    radial-gradient(ellipse 58% 90% at -2% 50%, rgba(49,157,207,0.20) 0%, transparent 56%),
    radial-gradient(ellipse 28% 42% at 36% 100%, rgba(49,157,207,0.07) 0%, transparent 50%),
    linear-gradient(rgba(49,157,207,0.020) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(49,157,207,0.020) 1px, transparent 1px) 0 0 / 24px 24px;
  pointer-events: none;
  z-index: 1;
}

/* ---- Contact Visual image layer (full-width hero background) ---- */
.ch-img-layer {
  position: absolute;
  inset: 0;
  background: url('/assets/images/common/Contact%20Visual.png') center / cover no-repeat;
  opacity: 0.50;
  z-index: 0;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.contact-hero h1 {
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 520px;
}

/* ---- Hero action buttons ---- */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-light {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.44);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.80);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: transparent;
  color: #25d366;
  border: 1.5px solid rgba(37,211,102,0.40);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-ghost-light:hover {
  background: rgba(37,211,102,0.08);
  border-color: rgba(37,211,102,0.76);
  transform: translateY(-1px);
}

/* ---- Hero contact strip ---- */
.hero-contact-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 11px 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  max-width: fit-content;
}

.hcs-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
}
.hcs-item i {
  color: var(--primary-light);
  font-size: 0.74rem;
}
.hcs-item--wa i { color: #25d366; }

.hcs-sep {
  color: rgba(255,255,255,0.22);
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

@media (max-width: 1024px) {
  .ch-img-layer { opacity: 0.44; }
}
@media (max-width: 768px) {
  .contact-hero { padding: 72px 0 64px; }
  .ch-img-layer { opacity: 0.34; }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-actions { margin-top: 28px; }
  .contact-hero-inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .contact-hero { padding: 64px 0 56px; }
  .ch-img-layer { opacity: 0.18; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-light,
  .hero-actions .btn-ghost-light { width: 100%; justify-content: center; }
  .hcs-sep { display: none; }
  .hero-contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
  }
}

/* ===================== CONTACT CHANNELS ===================== */
.contact-options { background: #ffffff; }
.contact-options.section { padding: 56px 0; }

.contact-channels {
  background: #ffffff;
  border: 1px solid #e2eaf2;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(23,63,100,0.06), 0 1px 3px rgba(23,63,100,0.04);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.18s ease;
}
.channel-row:last-child { border-bottom: none; }

a.channel-row:hover { background: #f8fafc; }
a.channel-row:hover .channel-arrow {
  transform: translateX(3px);
  color: var(--primary-light);
}

.channel-row--static { cursor: default; }

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(49,157,207,0.10);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.channel-icon--wa      { background: rgba(37,211,102,0.10); color: #25d366; }
.channel-icon--neutral { background: rgba(100,116,139,0.09); color: var(--text-muted); }

.channel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.channel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-row--static .channel-value {
  white-space: normal;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.90rem;
}

.channel-arrow {
  font-size: 0.74rem;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

@media (max-width: 600px) {
  .channel-row { padding: 17px 20px; gap: 14px; }
  .channel-icon { width: 38px; height: 38px; font-size: 0.88rem; border-radius: 10px; }
}

/* ===================== CONTACT BODY ===================== */
.contact-body { background: var(--bg-light); }

.body-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .body-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Card shells ---- */
.form-wrap,
.info-wrap {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e4edf5;
  box-shadow: 0 4px 24px rgba(23,63,100,0.07), 0 1px 4px rgba(23,63,100,0.04);
  padding: 40px 44px;
}
@media (max-width: 768px) {
  .form-wrap, .info-wrap { padding: 28px 24px; border-radius: 14px; }
}

/* ---- Form wrap ---- */
.form-wrap h2 {
  color: var(--primary);
  margin-top: 4px;
  margin-bottom: 10px;
}
.form-intro {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.72;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #edf2f7;
}

/* ---- PHP form error ---- */
.form-error {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.93rem;
  color: #b91c1c;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---- Form fields ---- */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 7px;
}
.field label span[aria-hidden] { color: #dc2626; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #d1dce8;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #fcfeff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fcfeff;
  padding-right: 38px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3.5px rgba(49,157,207,0.14);
  outline: none;
  background: #ffffff;
}

/* ---- JS validation states ---- */
.field--error input,
.field--error select,
.field--error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}
.field-err {
  font-size: 0.80rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 5px;
}

/* ---- Submit loading ---- */
.btn--loading {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  margin-top: -4px;
}
.form-note span[aria-hidden] { color: #dc2626; }

.actions { margin-top: 4px; }
@media (max-width: 480px) { .actions .btn { width: 100%; justify-content: center; } }

/* ---- Info wrap ---- */
.info-wrap h2 {
  color: var(--primary);
  margin-top: 4px;
  margin-bottom: 4px;
}
.info-wrap .section-label { margin-bottom: 10px; }

.info-list {
  list-style: none;
  margin-top: 22px;
}
.info-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
}
.info-row:last-child { border-bottom: none; }

.info-row i {
  font-size: 0.88rem;
  color: var(--primary-light);
  margin-top: 3px;
  justify-self: center;
}
.info-row strong {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.info-row span {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.info-row a {
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 600;
}
.info-row a:hover { color: var(--primary-light); text-decoration: underline; }

.map-wrap {
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #e2eaf2;
  box-shadow: 0 4px 16px rgba(23,63,100,0.06);
}
#map { height: 100%; width: 100%; }

/* ===================== TRUST STRIP ===================== */
.trust-section { background: #ffffff; }
.trust-section.section { padding: 60px 0; }

.trust-strip {
  display: flex;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e4edf5;
  border-radius: 18px;
  overflow: hidden;
}

.trust-point {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 28px;
}

.trust-div {
  width: 1px;
  background: #e4edf5;
  flex-shrink: 0;
}

.trust-pt-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(49,157,207,0.10);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-pt-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.trust-pt-body strong {
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.trust-pt-body span {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .trust-strip { flex-direction: column; border-radius: 14px; }
  .trust-div { width: auto; height: 1px; }
  .trust-point { padding: 22px 22px; }
}

/* ===================== FINAL CTA ===================== */
.contact-cta {
  background: var(--secondary);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(49,157,207,0.18) 0%, transparent 58%),
    radial-gradient(ellipse 40% 60% at 80% 110%, rgba(49,157,207,0.07) 0%, transparent 50%),
    linear-gradient(rgba(49,157,207,0.025) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(49,157,207,0.025) 1px, transparent 1px) 0 0 / 24px 24px;
  pointer-events: none;
}

@media (max-width: 768px) { .contact-cta { padding: 64px 0; } }

.cta-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-inner h2 { color: #ffffff; margin-bottom: 12px; }
.cta-inner > p { color: rgba(255,255,255,0.72); font-size: 1.05rem; margin-bottom: 32px; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-cta-primary {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.42);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-cta-primary:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.78);
  transform: translateY(-2px);
}

.btn-cta-wa {
  background: transparent;
  color: #25d366;
  border: 1.5px solid rgba(37,211,102,0.38);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-cta-wa:hover {
  background: rgba(37,211,102,0.08);
  border-color: rgba(37,211,102,0.72);
  transform: translateY(-2px);
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.44);
}
.cta-note i { color: var(--primary-light); }

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; }
  .btn-cta-primary, .btn-cta-wa { width: 100%; justify-content: center; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===================== TOUCH / COARSE POINTER ===================== */
/* Enforce 44px minimum tap targets on touch screens */
@media (pointer: coarse) {
  .field input,
  .field select,
  .field textarea {
    min-height: 44px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .btn,
  .btn-light,
  .btn-ghost-light,
  .btn-cta-primary,
  .btn-cta-wa {
    min-height: 44px;
  }

  /* Channel rows — explicit tap zone */
  a.channel-row {
    min-height: 52px;
    align-items: center;
  }
}

/* ===================== 430px BREAKPOINT ===================== */
@media (max-width: 430px) {
  .container { padding: 0 16px; }

  .contact-hero { padding: 56px 0 48px; }

  .form-wrap,
  .info-wrap {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .trust-point { padding: 18px 18px; gap: 14px; }

  .contact-cta { padding: 56px 0; }

  .contact-options.section { padding: 44px 0; }
}

/* ===================== 390px BREAKPOINT ===================== */
@media (max-width: 390px) {
  .contact-hero { padding: 52px 0 44px; }

  .channel-row { padding: 14px 16px; gap: 12px; }
  .channel-icon { width: 36px; height: 36px; font-size: 0.82rem; border-radius: 9px; }

  .map-wrap { height: 200px; }
}

/* ===================== 360px BREAKPOINT ===================== */
@media (max-width: 360px) {
  .form-wrap,
  .info-wrap { padding: 18px 14px; }

  .trust-point { padding: 16px 14px; gap: 12px; }

  /* Keep channel text from being clipped on very narrow phones */
  .channel-value { font-size: 0.88rem; }

  .cta-inner > p { font-size: 0.97rem; }
}

.site-footer a { color: #d4e8ff; text-decoration: none; }

/* ===================== POLISH PASS — PREMIUM DEPTH ===================== */

/* ── Form card: tightened shadow depth + hover-ready transition */
.form-wrap {
  box-shadow:
    0 4px 28px rgba(23,63,100,0.09),
    0 1px 6px  rgba(23,63,100,0.05);
  border-color: rgba(23,63,100,0.10);
  transition: box-shadow 0.3s ease;
}

/* Deepen shadow when user is actively filling the form */
.form-wrap:focus-within {
  box-shadow:
    0 6px 32px rgba(23,63,100,0.12),
    0 2px 8px  rgba(23,63,100,0.06);
}

/* ── Form card accent bar — ::before is unused on .form-wrap */
.form-wrap::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), rgba(49,157,207,0.18));
  margin-bottom: 16px;
  border-radius: 2px;
}

/* ── Input/textarea/select: secondary depth layer added to focus ring */
.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow:
    0 0 0 3px rgba(49,157,207,0.14),
    0 2px 8px rgba(23,63,100,0.08);
}

/* ── Channel rows: add transform to transition + subtle directional nudge */
a.channel-row {
  transition: background 0.18s ease, transform 0.18s ease;
}
a.channel-row:hover {
  transform: translateX(2px);
}
@media (hover: none) {
  a.channel-row:hover {
    transform: none;
  }
}

/* ── Trust strip: subtle outer shadow to lift off bg-light */
.trust-strip {
  box-shadow: 0 2px 16px rgba(23,63,100,0.06), 0 1px 3px rgba(23,63,100,0.03);
}

/* ── Mobile (≤768px): maintain form shadow on smaller viewports */
@media (max-width: 768px) {
  .form-wrap {
    box-shadow:
      0 3px 18px rgba(23,63,100,0.08),
      0 1px 4px  rgba(23,63,100,0.04);
  }
}
