/* ==========================================
   PAGE SPECIFIC CSS: CONTACT.CSS
   Below-the-fold elements (Mobile First)

   Reused from global.css (no re-declaration):
   - .btn-primary / .btn-secondary
   - .location-badge / .gradient-text
   - .faq-list / .faq-item / .faq-question / .faq-answer
   - .footer / .social-links / .container
   ========================================== */

/* ==========================================
   1. CONTACT MAIN SPLIT
   ========================================== */
.section-contact-main {
  background: var(--bg-section);
  padding: 80px 0;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

/* ==========================================
   2. LEFT - INFO PANEL
   ========================================== */
.contact-info-panel .overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.contact-info-panel h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.contact-info-panel .lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

/* Detail rows */
.contact-details {
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.contact-detail-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left 0.2s ease;
}

a.contact-detail-row:hover {
  padding-left: 6px;
}

a.contact-detail-row:hover .detail-icon {
  background: var(--primary);
}

a.contact-detail-row:hover .detail-icon i {
  color: #ffffff;
}

.detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary-section);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.detail-icon i {
  font-size: 1rem;
  color: var(--primary);
  transition: color 0.2s ease;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

.detail-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Office hours */
.contact-hours {
  margin-bottom: 2.5rem;
}

.hours-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.hours-grid {
  border-top: 1px solid var(--border);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.hours-day {
  font-weight: 700;
  color: var(--text-dark);
}

.hours-time {
  color: var(--text-secondary);
}

.hours-time.is-closed {
  color: #b94040;
  font-weight: 700;
}

.hours-time.is-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.hours-time.is-open::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27ae60;
  flex-shrink: 0;
}

/* CTA strip under info */
.contact-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================
   3. RIGHT - FORM PANEL
   ========================================== */
.contact-form-panel {
  background: var(--primary-dark);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.contact-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.012) 20px,
    rgba(255, 255, 255, 0.012) 21px
  );
  pointer-events: none;
}

.form-inner {
  position: relative;
  z-index: 1;
}

.form-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-light);
  margin-bottom: 0.8rem;
}

.contact-form-panel h3 {
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.contact-form-panel .form-sub {
  font-size: 0.875rem;
  color: rgba(242, 247, 246, 0.5);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 247, 246, 0.5);
}

.form-group label .req {
  color: var(--primary-light);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(242, 247, 246, 0.22);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238bc4b9' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--primary-dark);
  color: #ffffff;
}

.form-disclaimer {
  font-size: 0.74rem;
  color: rgba(242, 247, 246, 0.3);
  line-height: 1.6;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.btn-form-submit:hover {
  background: #a8d4cb;
}

.form-or-call {
  font-size: 0.78rem;
  color: rgba(242, 247, 246, 0.38);
}

.form-or-call a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 700;
}

.form-or-call a:hover {
  color: #a8d4cb;
}

/* Form success message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.form-success.visible {
  display: flex;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 196, 185, 0.15);
  border: 1.5px solid var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-icon i {
  font-size: 1.4rem;
  color: var(--primary-light);
}

.form-success h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.form-success p {
  font-size: 0.875rem;
  color: rgba(242, 247, 246, 0.5);
  line-height: 1.7;
  margin: 0;
  max-width: 300px;
}

/* ==========================================
   4. MAP SECTION
   ========================================== */
.section-map {
  background: var(--bg-section);
}

.map-header {
  padding: 60px 0 2.5rem;
}

.map-header h2 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

.map-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.map-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* Directions sidebar */
.directions-card {
  background: var(--primary-dark);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.directions-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
}

.landmark-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.landmark-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.landmark-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-top: 5px;
}

.landmark-text {
  font-size: 0.875rem;
  color: rgba(242, 247, 246, 0.65);
  line-height: 1.5;
}

.landmark-text strong {
  color: #ffffff;
  font-weight: 700;
  display: block;
  margin-bottom: 0.1rem;
}

.directions-address {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.directions-address p {
  font-size: 0.85rem;
  color: rgba(242, 247, 246, 0.6);
  line-height: 1.8;
  margin: 0 0 1.2rem;
}

.directions-address a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.directions-address a:hover {
  color: #a8d4cb;
}

/* Map iframe */
.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.map-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================
   5. CONTACT FAQ
   ========================================== */
.section-contact-faq {
  padding: 80px 0;
  background: var(--bg-secondary-section);
}

.contact-faq-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-faq-left h2 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.contact-faq-left p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 2rem;
}

/* ==========================================
   DESKTOP OVERRIDES (min-width: 992px)
   ========================================== */
@media (min-width: 992px) {
  .section-contact-main {
    padding: 100px 0;
  }

  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }

  .contact-info-panel h2 {
    font-size: 2.6rem;
  }

  .contact-form-panel {
    padding: 3rem;
  }

  .contact-form-panel h3 {
    font-size: 1.8rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }

  .map-split {
    grid-template-columns: 360px 1fr;
  }

  .map-frame-wrap {
    height: 460px;
  }

  .contact-faq-inner {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 6rem;
  }

  .contact-faq-left h2 {
    font-size: 2.2rem;
  }
}
