/* ==========================================================================
   CONTACT PAGE STYLES : KINGSWELL LAW CLONE
   Strictly adheres to Design System Tokens in tokens.css
   Container max-width: var(--container-max, 1840px)
   Colors: Pearl (#f5f4f0), Sand (#efebdf), Midnight Navy (#212e4e), Symbol (#bdc4d4)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION & ARCHITECTURAL GRID LINES
   -------------------------------------------------------------------------- */
.contact-hero-section {
  position: relative;
  width: 100%;
  background-color: var(--color-brand-pearl, #f5f4f0);
  color: var(--_colors---swatch--black, #0c0f17);
  padding: 170px 0 70px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle Architectural Vertical Column Guides (from Kingswell) */
.contact-grid-lines {
  display: none !important;
}

.contact-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max, 1840px);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: flex-end;
  gap: 48px 64px;
}

.contact-hero-left {
  display: flex;
  flex-direction: column;
}

.contact-hero-title {
  font-family: var(--_fonts---fonts--alt-heading, "ivypresto-headline", Georgia, serif);
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-brand-navy, #212e4e);
  margin: 0;
}

.contact-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 8px;
}

/* Badge strictly following 4px token rule */
.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(33, 46, 78, 0.05);
  border: 1px solid rgba(33, 46, 78, 0.12);
  border-radius: var(--radius-tag, 4px);
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-navy, #212e4e);
}

.contact-tag-icon {
  font-size: 8px;
  color: var(--color-brand-navy, #212e4e);
}

.contact-hero-lead {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: clamp(16px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-brand-blue-slate, #52667e);
  margin: 0;
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   2. MAIN INTERACTIVE CONTACT SECTION (2 COLUMNS)
   -------------------------------------------------------------------------- */
.contact-main-section {
  position: relative;
  width: 100%;
  background-color: var(--color-brand-pearl, #f5f4f0);
  padding: 20px 0 60px;
  box-sizing: border-box;
}

.contact-main-section + .faq-section {
  padding-top: 48px;
}

.contact-main-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max, 1840px);
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 56px 72px;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. LEFT COLUMN: MAP & CONTACT INFO CARD
   -------------------------------------------------------------------------- */
.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-subtag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(33, 46, 78, 0.05);
  border: 1px solid rgba(33, 46, 78, 0.12);
  border-radius: var(--radius-tag, 4px);
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-navy, #212e4e);
  width: fit-content;
}

/* Interactive Map Card */
.contact-map-card {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-card-lg, 12px);
  overflow: hidden;
  border: 1px solid rgba(33, 46, 78, 0.12);
  box-shadow: 0 8px 30px rgba(12, 15, 23, 0.04);
  background-color: var(--color-brand-sand, #efebdf);
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(15%) contrast(102%);
}

.contact-map-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(33, 46, 78, 0.12);
  border-radius: 6px;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-navy, #212e4e);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 5;
}

.contact-map-badge:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* Dark Navy Contact Information Card */
.contact-info-card {
  background-color: var(--color-brand-navy, #212e4e);
  border: 1px solid rgba(189, 196, 212, 0.2);
  border-radius: var(--radius-card-lg, 12px);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 16px 40px rgba(12, 15, 23, 0.12);
  color: #ffffff;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-label {
  font-family: var(--_fonts---fonts--geist-mono, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-symbol, #bdc4d4);
  opacity: 0.9;
}

.contact-info-val {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

a.contact-info-val:hover {
  color: var(--color-brand-symbol, #bdc4d4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(189, 196, 212, 0.15);
}

.contact-info-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-status-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. RIGHT COLUMN: THE CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-right-col {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(33, 46, 78, 0.1);
  border-radius: var(--radius-card-lg, 12px);
  padding: 48px 52px;
  box-shadow: 0 12px 40px rgba(12, 15, 23, 0.04);
}

.contact-form-header {
  margin-bottom: 36px;
}

.contact-form-title {
  font-family: var(--_fonts---fonts--alt-heading, "ivypresto-headline", Georgia, serif);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-brand-navy, #212e4e);
  margin: 0 0 14px;
}

.contact-form-desc {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-brand-blue-slate, #52667e);
  margin: 0;
}

/* Form Layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.contact-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field-label {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-navy, #212e4e);
}

.contact-field-label .req {
  color: #e53e3e;
  margin-left: 2px;
}

/* Input & Textarea Elements */
.contact-input,
.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background-color: var(--color-brand-pearl, #f5f4f0);
  border: 1px solid rgba(33, 46, 78, 0.16);
  border-radius: 8px;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 15px;
  color: var(--_colors---swatch--black, #0c0f17);
  transition: all 0.25s ease;
  outline: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.contact-input:focus,
.contact-textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-brand-navy, #212e4e);
  box-shadow: 0 0 0 3px rgba(33, 46, 78, 0.1);
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Action Button Bar */
.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.contact-form-privacy {
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 12px;
  color: var(--color-brand-blue-slate, #52667e);
  line-height: 1.4;
  margin: 0;
  max-width: 340px;
}

.contact-form-privacy a {
  color: var(--color-brand-navy, #212e4e);
  text-decoration: underline;
}

/* Success notification message */
.contact-form-feedback {
  display: none;
  padding: 16px 20px;
  border-radius: 8px;
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  font-family: var(--_fonts---fonts--paragraph, -apple-system, sans-serif);
  font-size: 14px;
  margin-top: 16px;
}

.contact-form-feedback.is-visible {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .contact-hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  .contact-main-container {
    padding: 0 24px;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-right-col {
    padding: 36px 32px;
  }
}

@media screen and (max-width: 768px) {
  .contact-hero-section {
    padding: 112px 0 44px;
  }

  .contact-hero-container {
    padding: 0 20px;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-hero-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.08;
  }

  .contact-hero-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .contact-main-section {
    padding: 16px 0 28px;
  }

  .contact-main-section + .faq-section {
    padding-top: 32px;
  }

  .contact-main-container {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-layout-grid {
    gap: 32px;
  }

  .contact-form-row-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form-actions button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    justify-content: center;
  }

  .contact-info-card {
    padding: 28px 20px;
  }

  .contact-right-col {
    padding: 32px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}
