/* ============================================
   contact.css — Contact Us Page
   ============================================ */

/* ── DESIGN TOKENS (Bridging to Global Light Theme) ── */
:root {
  --text-primary:   #0f172a;
  --text-body:      #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  
  --bg-white:       #ffffff;
  --bg-soft:        #f8fafc;
  --bg-tint:        #eff6ff;
  
  --brand:          #2563eb;
  --brand-hover:    #1d4ed8;
  --brand-light:    #3b82f6;
  --brand-pale:     #dbeafe;
  
  --orange:         #f97316;
  --orange-h:       #ea6c0a;
  
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  
  --shadow-sm:      0 1px 2px rgba(15,23,42,0.06);
  --shadow:         0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg:      0 16px 40px rgba(15,23,42,0.10);

  /* Legacy mappings */
  --navy:           var(--text-primary);
  --navy2:          var(--text-body);
  --gold:           var(--brand);
  --gold-lt:        var(--brand-light);
  --white:          var(--bg-white);
  --offwhite:       var(--bg-soft);
}

/* ── PAGE HERO (Isolated Dark Theme) ── */
.contact-hero {
  /* Scoped tokens for Hero only */
  --hero-bg:          #0d2f4e;                  /* Deep navy matching homepage */
  --hero-text:        rgba(255,255,255,0.95);   /* White text */
  --hero-text-soft:   rgba(255,255,255,0.70);   /* Sub text */
  --hero-accent:      #f99a57;                  /* Warm orange accent */
  --hero-badge-bg:    rgba(255,255,255,0.10);
  --hero-badge-bd:    rgba(255,255,255,0.22);
  --hero-badge-text:  rgba(255,255,255,0.92);

  background: var(--hero-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(37,99,235,0.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(13,47,78,0.95) 0%, rgba(22,61,97,0.85) 100%);
  padding: 52px 5% 48px;
  /* Dark bottom border to transition smoothly to light body */
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles for dark background */
.contact-hero::before {
  content: ''; position: absolute; top: -50%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.contact-hero::after {
  content: ''; position: absolute; bottom: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text-block { position: relative; z-index: 1; }

/* Dark mode eyebrow badge */
.contact-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hero-badge-text); border: 1px solid var(--hero-badge-bd);
  background: var(--hero-badge-bg);
  padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

/* Main headline: White text, orange accent */
.contact-hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--hero-text); line-height: 1.15; margin-bottom: 10px;
}
.contact-hero h1 em { font-style: normal; color: var(--hero-accent); }

/* Subtitle */
.contact-hero-sub {
  color: var(--hero-text-soft); font-size: 0.97rem; max-width: 520px; line-height: 1.6;
}

/* Dark mode response badge */
.hero-response-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(15,23,42,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 14px 20px;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hrb-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(74,222,128,0.15);
  border: 1.5px solid rgba(74,222,128,0.4);
  display: flex; align-items: center; justify-content: center;
}
.hrb-icon .material-symbols-outlined {
  font-size: 1.3rem; color: #4ade80; /* Bright green on dark bg */
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.hrb-text {
  display: flex; flex-direction: column;
}
.hrb-val {
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--hero-text); display: block;
}
.hrb-lbl { font-size: 0.76rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ── MAIN LAYOUT ── */
.contact-layout {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 40px; padding: 56px 5% 80px;
  max-width: 1280px; margin: 0 auto; width: 100%;
}

/* ── LEFT COLUMN ── */
.contact-left { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 28px; }

/* Company info & Channels cards */
.info-card, .channels-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Light theme card headers: Pale blue */
.info-card-header {
  background: var(--brand-pale); padding: 16px 24px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.info-card-header .material-symbols-outlined {
  font-size: 1.1rem; color: var(--brand);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.info-card-header h3 {
  font-family: 'Sora', sans-serif; font-size: 0.82rem;
  font-weight: 700; color: var(--text-primary);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.info-card-body { padding: 24px; }

/* Company details */
.company-name {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1rem; color: var(--text-primary); margin-bottom: 6px;
}
.company-reg {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 10px;
  font-size: 0.76rem; color: var(--text-muted); margin-bottom: 18px;
}
.company-reg .material-symbols-outlined {
  font-size: 0.95rem; color: var(--brand);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.company-address {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--border-light);
}
.company-address .material-symbols-outlined {
  font-size: 1.2rem; color: var(--brand); flex-shrink: 0; margin-top: 1px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.addr-label {
  font-family: 'Sora', sans-serif; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.addr-line { font-size: 0.9rem; color: var(--text-primary); line-height: 1.6; font-weight: 500;}
.addr-cn   { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

/* Map */
.map-wrap {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.map-wrap iframe {
  width: 100%; height: 280px; display: block; border: none;
}
.map-overlay-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-white); color: var(--text-primary);
  font-family: 'Sora', sans-serif; font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 4px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 6px;
}
.map-overlay-badge .material-symbols-outlined {
  font-size: 0.95rem; color: var(--brand);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Contact channels list */
.channel-list { list-style: none; padding: 0; }
.channel-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.channel-item:last-child { border-bottom: none; }
.channel-item:hover { background: var(--bg-soft); }

.channel-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.channel-icon .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.channel-icon.email   .material-symbols-outlined { color: var(--orange); }
.channel-icon.phone   .material-symbols-outlined { color: #2563eb; }
.channel-icon.wa      .material-symbols-outlined { color: #16a34a; }
.channel-icon.wechat  .material-symbols-outlined { color: #059669; }

.channel-meta {}
.channel-label {
  font-family: 'Sora', sans-serif; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.channel-value {
  font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
  text-decoration: none; display: block;
  transition: color 0.2s;
}
a.channel-value:hover { color: var(--brand); }
.channel-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

/* Wechat Copy Style */
.copy-wrap {
  display: flex; align-items: center; gap: 6px;
}
.copy-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: inline-flex; align-items: center;
  padding: 4px; border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.copy-btn:hover { color: var(--brand); background: var(--border-light); }
.copy-btn .material-symbols-outlined { font-size: 0.95rem; }

/* Business hours card */
.hours-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.hours-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hours-icon .material-symbols-outlined {
  font-size: 1.4rem; color: var(--brand);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.hours-text {}
.hours-title {
  font-family: 'Sora', sans-serif; font-size: 0.78rem;
  font-weight: 700; color: var(--text-primary); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 4px;
}
.hours-detail { font-size: 0.88rem; color: var(--text-body); line-height: 1.6; }
.hours-24-badge {
  margin-left: auto; flex-shrink: 0;
  background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.3);
  border-radius: 4px; padding: 4px 10px;
  font-family: 'Sora', sans-serif; font-size: 0.7rem; font-weight: 700;
  color: #16a34a; letter-spacing: 0.06em;
}

/* ── RIGHT COLUMN: FORM ── */
.contact-right { flex: 0 0 400px; position: sticky; top: 88px; }

.contact-form-card {
  background: var(--bg-white); border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
}

/* Form Header: Brand Blue for strong CTA focus */
.cfc-header {
  background: var(--brand); padding: 22px 28px 20px;
  border-bottom: 3px solid var(--orange);
}
.cfc-header h2 {
  font-family: 'Sora', sans-serif; font-size: 1.1rem;
  font-weight: 700; color: #fff; margin-bottom: 4px;
}
.cfc-header p {
  color: rgba(255,255,255,0.85); font-size: 0.8rem;
  display: flex; align-items: center; gap: 6px;
}
.cfc-header p::before { content: '⚡'; font-size: 0.85em; }

.cfc-body { padding: 24px 28px 28px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-family: 'Sora', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 5px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.93rem; color: var(--text-primary); background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 80px; }

.form-submit {
  width: 100%; padding: 14px;
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.form-submit:hover {
  background: var(--orange-h); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249,115,22,0.4);
}
.form-assurance {
  text-align: center; margin-top: 12px; font-size: 0.76rem; color: var(--text-light);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.form-assurance::before { content: '🔒'; font-size: 0.8em; }

/* ── QUICK CONTACT STRIP (Priority 2 & 3) ── */
.quick-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; text-decoration: none;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.qc-btn .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Priority 2: Email */
.qc-btn.email {
  background: var(--orange);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.qc-btn.email:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249,115,22,0.4);
}

/* Priority 3: WhatsApp */
.qc-btn.wa {
  background: var(--bg-white);
  color: #16a34a;
  border: 1.5px solid rgba(22,163,74,0.4);
  box-shadow: var(--shadow-sm);
}
.qc-btn.wa:hover {
  background: rgba(22,163,74,0.05);
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}


/* ── ANIMATE ── */
.aos {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.aos.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .contact-right { flex: none; width: 100%; position: static; }
}
@media (max-width: 820px) {
  .contact-layout { padding: 40px 5% 60px; gap: 28px; }
  .contact-hero { padding: 40px 5% 36px; }
  .hero-response-badge { display: none; }
}
@media (max-width: 480px) {
  .contact-form-card { border-radius: 10px; }
  .cfc-body { padding: 20px 20px 24px; }
}