/**
 * Contact page - page-unique styles. v2 adaptation of v1 contact.css.
 *
 * @package HID_VP_Solution_V2
 */

/* ── Hero ── */
.contact-hero {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 56px 0 48px; position: relative; overflow: hidden;
}
.contact-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(28,104,188,.07) 0%, transparent 70%);
}
.contact-hero-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px);
  font-weight: 800; letter-spacing: -1px; color: var(--text-1); margin-bottom: 12px;
  position: relative; z-index: 1;
}
.contact-hero-sub { font-size: 16px; color: var(--text-2); max-width: 480px; line-height: 1.7; position: relative; z-index: 1; }

/* ── Channel cards ── */
.contact-channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.contact-channel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; text-align: center;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.contact-channel:hover { border-color: var(--cobalt-700); box-shadow: 0 4px 16px rgba(28,104,188,.08); }
.contact-channel-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 22px;
}
.contact-channel-name { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-1); margin-bottom: 4px; }
.contact-channel-detail { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.contact-channel-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: var(--fast) var(--ease);
  text-decoration: none;
}
.contact-channel-cta.primary { background: var(--cobalt-700); color: #fff; border: none; }
.contact-channel-cta.primary:hover { background: var(--cobalt-600); }
.contact-channel-cta.wa { background: #25D366; color: #fff; border: none; }
.contact-channel-cta.wa:hover { opacity: .9; }
.contact-channel-cta.outline { border: 1px solid var(--border); color: var(--text-1); background: transparent; }
.contact-channel-cta.outline:hover { border-color: var(--cobalt-700); color: var(--cobalt-700); }

/* ── Main layout ── */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

/* ── Contact form card ── */
.contact-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.contact-form-header { padding: 24px 28px 0; }
.contact-form-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-1); margin-bottom: 6px; }
.contact-form-sub { font-size: 13.5px; color: var(--text-2); margin-bottom: 0; }
.contact-form-body { padding: 20px 28px 28px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.cf-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cf-input, .cf-select, .cf-textarea {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-1);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  width: 100%;
}
.cf-input, .cf-select { height: 46px; padding: 0 14px; }
.cf-textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-color: var(--cobalt-700); box-shadow: 0 0 0 3px rgba(28,104,188,.12); }
.cf-submit {
  width: 100%; height: 50px; border-radius: var(--r-md);
  background: var(--cobalt-700); color: #fff; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background var(--fast) var(--ease);
}
.cf-submit:hover { background: var(--cobalt-600); }
.cf-honeypot { display: none; }

/* ── Contact info card (sidebar) ── */
.cic {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px; margin-bottom: 16px;
}
.cic-title { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text-1); margin-bottom: 16px; }
.cic-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cic-row:last-child { margin-bottom: 0; }
.cic-icon {
  width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0;
  background: rgba(28,104,188,.1); color: var(--cobalt-700);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.cic-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.cic-value { font-size: 13.5px; color: var(--text-1); line-height: 1.5; }
.cic-value a { color: var(--link); text-decoration: none; }
.cic-value a:hover { text-decoration: underline; }
.cic-quick-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.cic-quick-link:last-child { border-bottom: none; }
.cic-quick-link:hover { color: var(--cobalt-700); }
.cic-quick-link i { color: var(--cobalt-700); width: 16px; text-align: center; }

/* ── Map block ── */
.contact-map { margin-top: 32px; }
.contact-map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-map iframe { width: 100%; height: 240px; border: none; border-radius: var(--r-lg); display: block; }
.contact-map-pin { display: flex; align-items: center; gap: 8px; }
.contact-map-pin i { color: var(--cobalt-700); }
.contact-map-label { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-channels-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cf-row { grid-template-columns: 1fr; }
  .contact-form-header, .contact-form-body { padding-left: 20px; padding-right: 20px; }
}

/* v2: the hero heading wraps onto a second line; the channel icons sit in tinted circles. */
.contact-hero-title { line-height: 1.08; }
.contact-hero-title em { font-style: italic; color: var(--cobalt-700); }
.contact-channel-icon { background: var(--cobalt-100); color: var(--cobalt-700); }
.contact-channel-icon.is-wa { background: rgba(37, 211, 102, .12); color: #128C7E; }
