/*
  Contact page sections. Depends on tokens/components in denwatech-theme.css.
  The form itself still posts to the real backend (panel/assets/mail/send.php) —
  only the presentation is redesigned here.
*/

.dw-contact-intro {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--dw-navy);
  color: var(--dw-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.dw-contact-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 45, 0.85) 0%, rgba(8, 20, 45, 0.6) 55%, rgba(8, 20, 45, 0.35) 100%);
}

.dw-contact-intro > .dw-container {
  position: relative;
  width: 100%;
}

.dw-contact-intro .dw-section__eyebrow {
  color: var(--dw-teal);
}

.dw-contact-intro .dw-section__title {
  color: var(--dw-white);
}

.dw-contact-intro__lede {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.dw-contact-intro__tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.dw-contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 88px;
  min-width: 0;
}

/* ---------- Form card ---------- */
.dw-form-card {
  background: var(--dw-white);
  border: 1px solid var(--dw-border);
  padding: 40px;
  min-width: 0;
}

/* reCAPTCHA's own script sets an inline width (~304px) on this div, which a normal
   max-width can't override. Let it scroll internally instead of blowing out the
   form card on narrow screens. */
.g-recaptcha {
  max-width: 100% !important;
  overflow-x: auto;
}

.dw-form-card h2 {
  font-family: var(--dw-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--dw-ink);
  margin: 0 0 10px;
}

.dw-form-card > p {
  font-size: 14px;
  color: var(--dw-text-muted);
  margin: 0 0 28px;
}

.dw-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  min-width: 0;
}

.dw-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dw-ink);
  margin-bottom: 8px;
}

.dw-field input,
.dw-field select,
.dw-field textarea {
  width: 100%;
  border: 1px solid var(--dw-border);
  background: var(--dw-white);
  padding: 12px 14px;
  font-family: var(--dw-font-body);
  font-size: 14px;
  color: var(--dw-ink);
}

.dw-field input:focus,
.dw-field select:focus,
.dw-field textarea:focus {
  outline: none;
  border-color: var(--dw-navy);
}

.dw-field {
  margin-bottom: 20px;
}

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

.dw-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dw-form-footer p {
  font-size: 12px;
  color: var(--dw-text-muted);
  margin: 0;
  max-width: 320px;
}

.dw-form-footer p a {
  color: var(--dw-blue);
  text-decoration: underline;
}

/* ---------- HQ card ---------- */
.dw-hq-card {
  background: var(--dw-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px;
}

.dw-hq-card h2 {
  font-family: var(--dw-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dw-white);
  margin: 0 0 24px;
}

.dw-hq-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.dw-hq-item:last-child {
  margin-bottom: 0;
}

.dw-hq-item i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dw-teal);
}

.dw-hq-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.dw-hq-item a,
.dw-hq-item p {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.dw-map-caption {
  margin-top: 24px;
}

.dw-map-caption h3 {
  font-family: var(--dw-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--dw-ink);
  margin: 0 0 6px;
}

.dw-map-caption p {
  font-size: 14px;
  color: var(--dw-text-muted);
  margin: 0;
}

.dw-map {
  margin-top: 12px;
  border: 1px solid var(--dw-border);
}

.dw-map iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
}

@media (max-width: 1000px) {
  .dw-contact-grid {
    grid-template-columns: 1fr;
  }

  .dw-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dw-form-card {
    padding: 28px 20px;
  }
}

/* ---------- Closing statement (simple, not a large CTA band) ---------- */
.dw-contact-closing {
  text-align: center;
  background: var(--dw-surface);
}

.dw-contact-closing__title {
  font-family: var(--dw-font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--dw-ink);
  max-width: 720px;
  margin: 0 auto 16px;
}

.dw-contact-closing p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--dw-text);
  font-size: 16px;
  line-height: 1.7;
}
