/* Contact page — full-width layout (matches floor plans / building process) */

.contact-page .page-hero p {
  max-width: 52ch;
}

.contact-page-main {
  background: var(--page);
  padding: 2.5rem var(--layout-pad) 4.5rem;
}

.info-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .info-deck {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(var(--shadow-rgb), 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.08);
  transform: translateY(-2px);
}

.info-card h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.info-card p,
.info-card a {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.info-card a {
  color: var(--deep-mid);
  font-weight: 500;
  text-decoration: none;
}

.info-card a:hover {
  color: var(--ember);
  text-decoration: underline;
}

.form-section {
  margin-bottom: 3rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.form-section h2 {
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--deep-mid);
  margin-bottom: 0.4rem;
}

.form-section > .form-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
  max-width: 56ch;
}

.contact-form-map-section > .form-lead {
  margin-bottom: 1.25rem;
}

.contact-form-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-form-map-grid__form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 2px 12px rgba(var(--shadow-rgb), 0.04);
}

.contact-form-map-grid__form .contact-page-form {
  flex: 1;
}

.contact-map-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(var(--shadow-rgb), 0.04);
}

.contact-map-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-mid);
  padding: 0.75rem 1rem;
  margin: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-grey);
  flex-shrink: 0;
}

.contact-map-iframe {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
}

@media (max-width: 860px) {
  .contact-form-map-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap {
    min-height: 320px;
  }

  .contact-map-iframe {
    min-height: 280px;
  }
}

.vendor-form-section.form-section {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 2px 12px rgba(var(--shadow-rgb), 0.04);
}

.vendor-form-success.is-visible {
  background: var(--blue-wash);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--deep-mid);
  font-weight: 500;
}

.contact-field select {
  width: 100%;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-field select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.contact-field select:invalid {
  color: var(--text-muted);
}

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

.contact-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep-mid);
  margin-bottom: 0.35rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.contact-submit {
  margin-top: 0.35rem;
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, var(--orange-mid) 0%, var(--orange) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--orange-dark);
  transition: background 0.15s, transform 0.12s;
}

.contact-submit:hover {
  background: linear-gradient(180deg, var(--accent) 0%, var(--orange-dark) 100%);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 1rem;
  border: 1px solid var(--border-grey);
}

.form-success.is-visible {
  display: block;
}

/* Page hero (contact-specific overrides) */
.page-hero {
  margin-top: 70px;
  background: linear-gradient(160deg, var(--white) 0%, var(--page) 40%, var(--cream) 100%);
  padding: 2.75rem var(--layout-pad) 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=900&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
}

.page-hero .section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-family);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--deep-mid);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
}
