/* Contact uses the storefront's typography, gold accent and shared spacing. */
.driivo-contact {
  color: var(--white);
  background: var(--black);
}

.contact-container {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: var(--page-gutter, 40px);
}

.contact-hero {
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 85% 20%, #c9a84c16, transparent 65%), var(--black);
}

.contact-hero h1 {
  font-family: var(--font-title-major);
  font-size: clamp(46px, 7vw, 88px);
  line-height: 1.08;
  margin: 18px 0 24px;
}

.contact-hero h1 span {
  color: var(--gold);
}

.contact-lead {
  max-width: 640px;
  font-size: 16px;
  color: #bcbcbc;
  line-height: 1.85;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: var(--section-space, 64px);
  align-items: start;
}

.driivo-contact h2 {
  font-family: var(--font-title-major);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  margin: 12px 0 20px;
}

.contact-details>p:not(.section-eyebrow),
.contact-message>p:not(.section-eyebrow),
.contact-detail p,
.contact-help-card p,
.contact-email-panel p {
  color: #bcbcbc;
  font-size: 14px;
  line-height: 1.85;
}

.contact-detail {
  display: flex;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid #292929;
}

.contact-detail>div {
  min-width: 0;
}

.contact-detail-number {
  color: var(--gold);
  font-size: 12px;
  padding-top: 3px;
}

.contact-detail h3 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-detail a {
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

.contact-email {
  font-size: clamp(18px, 2vw, 23px);
}

.contact-detail address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
}

.contact-detail p {
  margin-top: 10px;
  font-size: 12px;
}

.contact-message {
  border: 1px solid #343023;
  background: var(--dark);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 8px;
  min-width: 0;
}

.contact-email-panel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #303030;
}

.contact-email-panel>.driivo-icon {
  color: var(--gold);
  margin-bottom: 18px;
  width: 32px;
  height: 32px;
}

.contact-email-panel h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.contact-button {
  margin-top: 24px;
  max-width: 100%;
  white-space: normal;
}

.contact-message .contact-privacy {
  font-size: 12px;
  margin-top: 24px;
}

.contact-privacy a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-help {
  padding-bottom: var(--section-space, 64px);
}

.contact-help-heading {
  margin-bottom: 28px;
}

.contact-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #303030;
  border-radius: 6px;
  background: #101010;
  transition: border-color .2s;
}

.contact-help-card:hover {
  border-color: var(--gold);
}

.contact-help-card>.driivo-icon {
  color: var(--gold);
  margin-bottom: 22px;
}

.contact-help-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-help-card p {
  margin-bottom: 24px;
}

.contact-help-card>span {
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-help-card>span .driivo-icon {
  width: 16px;
  height: 16px;
}

.driivo-contact a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

/* Preserve SureForms validation and submission; replace its obsolete Astra colors. */
.driivo-contact .srfm-form-container {
  --ast-global-color-0: #c9a84c;
  --ast-global-color-1: #c9a84c;
  --ast-global-color-2: #fff;
  --ast-global-color-3: #bcbcbc;
  --ast-global-color-4: #111;
  --ast-global-color-5: #0a0a0a;
  --srfm-color-scheme-primary: #c9a84c;
  --srfm-color-scheme-text: #fff;
  --srfm-color-scheme-text-on-primary: #0a0a0a;
  --srfm-color-input-label: #fff;
  --srfm-color-input-text: #fff;
  --srfm-color-input-description: #bcbcbc;
  --srfm-color-input-placeholder: #aaa;
  --srfm-color-input-background: #0a0a0a;
  --srfm-color-input-border: #555;
  background: transparent;
  color: var(--white);
  padding: 0;
  margin: 28px 0 0;
  border: 0;
  max-width: 100%;
}

.contact-form .srfm-form {
  padding: 0;
  margin: 0;
}

.contact-form .srfm-block {
  min-width: 0;
}

.contact-form .srfm-block-label {
  color: var(--white);
  font-family: inherit;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 16px;
  color: var(--white);
  background-color: var(--black);
  border: 1px solid #555;
  border-radius: 4px;
  max-width: 100%;
  min-height: 48px;
}

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

.contact-form .srfm-submit-button {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  min-height: 48px;
  font-family: inherit;
  font-weight: 700;
}

.contact-form .srfm-submit-button:hover {
  background: var(--gold-light);
}

.contact-form :is(input, textarea, select, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-form .srfm-error-message {
  color: #ffb4b4;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .contact-hero {
    padding: 120px 0 40px;
  }

  .contact-layout {
    gap: 32px;
  }

  .contact-message {
    padding: 24px 20px;
  }

  .contact-button {
    width: 100%;
    justify-content: center;
  }

  .contact-detail {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-help-card {
    transition: none;
  }
}