/* Contact — D2 Figma 300:471. Values from d2-tokens.css only. */
.contact-page {
  margin: 0;
  background: var(--d2-bg);
  color: var(--d2-text);
  font-family: var(--d2-font-sans);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.d2c-hp {
  position: absolute;
  left: -9999px;
  width: var(--d2-space-1);
  height: var(--d2-space-1);
  overflow: hidden;
}

.d2c-hero {
  position: relative;
  overflow: hidden;
  padding: var(--d2-space-24) 0;
  color: var(--d2-text-on-dark);
  background: linear-gradient(
    90deg,
    var(--d2-hero-wash-from) 0%,
    var(--d2-hero-wash-mid) 60%,
    var(--d2-hero-from) 100%
  );
}

.d2c-hero.is-thanks {
  text-align: center;
}

.d2c-kicker {
  margin: 0 0 var(--d2-space-7);
  font-size: var(--d2-font-size-11);
  font-weight: var(--d2-font-weight-600);
  letter-spacing: var(--d2-tracking-kicker);
  line-height: var(--d2-line-12);
  text-transform: uppercase;
  color: var(--d2-text-hero-kicker);
}

.d2c-hero h1 {
  margin: 0 0 var(--d2-space-7);
  font-size: clamp(var(--d2-font-size-28), 4vw, var(--d2-font-size-40));
  font-weight: var(--d2-font-weight-700);
  line-height: var(--d2-line-108);
  text-transform: uppercase;
  color: var(--d2-text-on-dark);
}

.d2c-hero-lead {
  margin: 0;
  max-width: var(--d2-contact-lead-w);
  font-size: var(--d2-font-size-15);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-155);
  color: var(--d2-text-on-dark-muted);
}

.d2c-hero.is-thanks .d2c-hero-lead {
  max-width: none;
}

.contact-page .site-wrap {
  max-width: var(--d2-contact-wrap);
}

.d2c-main {
  background: var(--d2-surface-muted);
  padding: var(--d2-space-24) 0;
}

.d2c-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--d2-space-15);
}

.d2c-card {
  flex: 1 1 auto;
  min-width: 0;
  max-width: var(--d2-contact-card-w);
  background: var(--d2-surface);
  border: var(--d2-border-width) solid var(--d2-border);
  border-radius: var(--d2-radius-16);
  padding: var(--d2-space-17);
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-9);
}

#d2c-step1,
#d2c-step2 {
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-9);
}

#d2c-step1-project {
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-9);
}

#d2c-step1[hidden],
#d2c-step2[hidden],
#d2c-step1-project[hidden],
#d2c-step1-callout[hidden],
#d2c-step1-project > [hidden] {
  display: none;
}

.d2c-req[hidden] {
  display: none;
}

.d2c-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--d2-space-11);
}

.d2c-step {
  margin: 0 0 var(--d2-space-2);
  font-size: var(--d2-font-size-11);
  font-weight: var(--d2-font-weight-600);
  letter-spacing: var(--d2-tracking-kicker);
  line-height: var(--d2-line-12);
  text-transform: uppercase;
  color: var(--d2-text-kicker);
}

.d2c-card-head h2 {
  margin: 0;
  font-size: var(--d2-font-size-22);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-135);
  color: var(--d2-text-strong);
}

.d2c-req-note {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-meta);
  white-space: nowrap;
}

.d2c-req {
  color: var(--d2-accent);
  font-weight: var(--d2-font-weight-500);
}

.d2c-field {
  position: relative;
  width: 100%;
}

.d2c-field-label {
  position: absolute;
  left: var(--d2-space-6);
  top: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: flex-start;
  gap: var(--d2-space-1);
  padding: 0 var(--d2-space-1);
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-12);
  color: var(--d2-text-kicker);
  pointer-events: none;
  background: var(--d2-surface);
  z-index: 1;
  max-width: calc(100% - var(--d2-space-17));
}

.d2c-field input,
.d2c-field textarea,
.d2c-combo-btn {
  width: 100%;
  min-height: var(--d2-contact-field-min);
  margin: 0;
  border: var(--d2-border-width) solid var(--d2-border-strong);
  border-radius: var(--d2-radius-8);
  background: var(--d2-surface);
  padding: var(--d2-space-7) var(--d2-space-6) var(--d2-space-4);
  font-family: var(--d2-font-sans);
  font-size: var(--d2-font-size-14);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-14);
  color: var(--d2-text-strong);
  appearance: none;
}

.d2c-field textarea {
  min-height: var(--d2-dealer-field-h);
  resize: vertical;
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-155);
}

.d2c-field input:focus,
.d2c-field textarea:focus,
.d2c-combo-btn:focus,
.d2c-field.is-open .d2c-combo-btn {
  outline: 0;
  border-color: var(--d2-accent);
}

.d2c-field.is-invalid input,
.d2c-field.is-invalid textarea,
.d2c-field.is-invalid .d2c-combo-btn {
  border-color: var(--d2-accent);
}

.d2c-combo-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--d2-space-3);
  text-align: left;
  cursor: pointer;
}

.d2c-combo-value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--d2-text-strong);
}

.d2c-combo-value.is-placeholder {
  color: var(--d2-text-muted);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-155);
}

.d2c-combo-btn svg,
.d2c-chip-x svg {
  width: var(--d2-contact-icon);
  height: var(--d2-contact-icon);
  flex-shrink: 0;
  color: var(--d2-text-strong);
}

.d2c-chip-x svg {
  width: var(--d2-contact-chip-x);
  height: var(--d2-contact-chip-x);
}

.d2c-multi .d2c-combo-btn {
  flex-direction: column;
  align-items: stretch;
  gap: var(--d2-space-3);
  min-height: auto;
}

.d2c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--d2-space-3);
}

.d2c-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--d2-space-1);
  padding: var(--d2-space-1) var(--d2-space-2) var(--d2-space-1) var(--d2-space-4);
  border: var(--d2-border-width) solid var(--d2-border-program);
  border-radius: var(--d2-radius-pill);
  background: var(--d2-surface-lilac);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-145);
  color: var(--d2-accent);
}

.d2c-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--d2-accent);
  cursor: pointer;
}

.d2c-multi-row {
  display: flex;
  align-items: center;
  gap: var(--d2-space-3);
}

.d2c-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 4;
  margin: 0;
  padding: var(--d2-space-1) 0;
  list-style: none;
  background: var(--d2-surface);
  border: var(--d2-border-width) solid var(--d2-border);
  border-radius: var(--d2-radius-12);
  box-shadow: var(--d2-shadow-lang);
  max-height: var(--d2-contact-menu-max);
  overflow: auto;
}

.d2c-menu[hidden] {
  display: none;
}

.d2c-option {
  display: flex;
  align-items: center;
  gap: var(--d2-space-3);
  padding: var(--d2-space-5) var(--d2-space-7);
  font-size: var(--d2-font-size-14);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-14);
  color: var(--d2-text-strong);
  cursor: pointer;
}

.d2c-option:focus {
  outline: var(--d2-border-width) solid var(--d2-accent);
  outline-offset: calc(var(--d2-border-width) * -1);
}

.d2c-option.is-hint {
  color: var(--d2-text-muted);
  font-weight: var(--d2-font-weight-400);
  cursor: default;
}

.d2c-option[aria-selected="true"] {
  background: var(--d2-surface-lilac);
  color: var(--d2-text-strong);
}

.d2c-option.is-active,
.d2c-option:hover:not(.is-hint):not([aria-selected="true"]) {
  background: var(--d2-accent);
  color: var(--d2-text-on-dark);
}

.d2c-option[aria-selected="true"]:hover,
.d2c-option[aria-selected="true"].is-active {
  background: var(--d2-surface-lilac);
  color: var(--d2-text-strong);
}

.d2c-option-check {
  width: var(--d2-contact-chip-x);
  flex-shrink: 0;
}

.d2c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--d2-space-9) var(--d2-space-8);
}

.d2c-grid .d2c-field.wide,
.d2c-grid .wide {
  grid-column: 1 / -1;
}

.d2c-grid > [hidden] {
  display: none;
}

.d2c-switch {
  margin: calc(var(--d2-space-3) * -1) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--d2-space-3);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--d2-accent);
  font-family: var(--d2-font-sans);
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-12);
  cursor: pointer;
}

.d2c-text-link:hover {
  text-decoration: underline;
}

.d2c-choice {
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-3);
}

.d2c-choice-legend {
  margin: 0;
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-14);
  color: var(--d2-text-kicker);
}

.d2c-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--d2-space-3);
}

.d2c-choice-btn {
  margin: 0;
  padding: var(--d2-space-2) var(--d2-space-7);
  border: var(--d2-border-width) solid var(--d2-border);
  border-radius: var(--d2-radius-pill);
  background: var(--d2-surface);
  color: var(--d2-text);
  font-family: var(--d2-font-sans);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  cursor: pointer;
}

.d2c-choice-btn.is-on {
  background: var(--d2-surface-lilac);
  border-color: var(--d2-border-program);
  color: var(--d2-accent);
  font-weight: var(--d2-font-weight-500);
}

.d2c-choice.is-invalid .d2c-choice-btn {
  border-color: var(--d2-accent);
}

.d2c-field input:disabled,
.d2c-field input[readonly] {
  color: var(--d2-text-secondary);
}

.d2c-upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--d2-space-3);
  padding: var(--d2-space-6);
  background: var(--d2-surface);
  border-width: var(--d2-border-width);
  border-style: dashed;
  border-color: var(--d2-border-strong);
  border-radius: var(--d2-radius-8);
}

.d2c-upload.is-over {
  border-color: var(--d2-accent);
}

.d2c-upload-label {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-500);
  line-height: var(--d2-line-14);
  color: var(--d2-text-kicker);
}

.d2c-upload-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--d2-space-1);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-muted);
  text-align: right;
  white-space: nowrap;
}

.d2c-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.d2c-file-list {
  margin: 0;
  flex-basis: 100%;
  font-size: var(--d2-font-size-12);
  color: var(--d2-text-secondary);
}

.d2c-subhead {
  margin: 0;
  font-size: var(--d2-font-size-16);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-135);
  color: var(--d2-text-strong);
}

.d2c-note {
  margin: 0;
  padding: var(--d2-space-7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--d2-space-3);
  background: var(--d2-surface-lilac);
  border: var(--d2-border-width) solid var(--d2-border-program);
  border-radius: var(--d2-radius-12);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-note[hidden] {
  display: none;
}

.d2c-note-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--d2-space-3);
}

a.d2c-text-link {
  text-decoration: none;
}

.d2c-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--d2-space-5);
  padding: var(--d2-space-9);
  background: var(--d2-surface-lilac);
  border: var(--d2-border-width) solid var(--d2-border-program);
  border-radius: var(--d2-radius-12);
}

.d2c-callout h3 {
  margin: 0;
  font-size: var(--d2-font-size-16);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-135);
  color: var(--d2-text-strong);
}

.d2c-callout p {
  margin: 0;
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--d2-radius-pill);
  font-family: var(--d2-font-sans);
  text-decoration: none;
  cursor: pointer;
}

.d2c-pill-sm {
  padding: var(--d2-space-4) var(--d2-space-7);
  background: var(--d2-accent);
  color: var(--d2-text-on-dark);
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-12);
}

.d2c-pill-sm:hover {
  background: var(--d2-accent-hover);
  color: var(--d2-text-on-dark);
}

.d2c-pill-go {
  padding: var(--d2-space-5) var(--d2-space-19);
  background: linear-gradient(90deg, var(--d2-accent-mid), var(--d2-accent-deep));
  color: var(--d2-text-on-dark);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-700);
  letter-spacing: var(--d2-tracking-pill);
  text-transform: uppercase;
}

.d2c-pill-go:hover {
  color: var(--d2-text-on-dark);
}

.d2c-pill-go:disabled {
  opacity: 0.7;
  cursor: wait;
}

.d2c-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--d2-space-7);
}

.d2c-actions.is-step2 {
  justify-content: space-between;
}

.d2c-back {
  display: inline-flex;
  align-items: center;
  gap: var(--d2-space-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--d2-accent);
  font-family: var(--d2-font-sans);
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-600);
  cursor: pointer;
}

.d2c-optin {
  display: flex;
  gap: var(--d2-space-5);
  align-items: flex-start;
  margin: 0;
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-optin input {
  appearance: none;
  width: var(--d2-dealer-check);
  height: var(--d2-dealer-check);
  margin-top: var(--d2-space-1);
  flex-shrink: 0;
  border: var(--d2-border-width-thick) solid var(--d2-border-check);
  border-radius: var(--d2-radius-5);
  background: var(--d2-surface);
}

.d2c-optin input:checked {
  background: var(--d2-accent);
  border-color: var(--d2-accent);
}

.d2c-optin input:checked::after {
  content: "";
  display: block;
  width: var(--d2-space-1);
  height: var(--d2-space-3);
  margin: var(--d2-space-1) auto 0;
  border-right: var(--d2-border-width-thick) solid var(--d2-text-on-dark);
  border-bottom: var(--d2-border-width-thick) solid var(--d2-text-on-dark);
  transform: rotate(45deg);
}

.d2c-optin input:focus-visible {
  outline: var(--d2-border-width-thick) solid var(--d2-accent);
  outline-offset: var(--d2-space-1);
}

.d2c-agree {
  margin: 0;
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-agree a {
  color: var(--d2-accent);
  font-weight: var(--d2-font-weight-600);
  text-decoration: none;
}

.d2c-agree a:hover {
  text-decoration: underline;
}

.d2c-status {
  margin: 0;
  min-height: var(--d2-space-5);
  font-size: var(--d2-font-size-14);
  font-weight: var(--d2-font-weight-500);
}

.d2c-status.is-err { color: var(--d2-accent); }
.d2c-status.is-ok { color: var(--d2-ok); }

.d2c-panel {
  width: var(--d2-contact-panel-w);
  flex-shrink: 0;
  background: var(--d2-card-dark);
  border-radius: var(--d2-radius-16);
  padding: var(--d2-space-17);
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-11);
  color: var(--d2-text-on-dark);
}

.d2c-combo.is-open {
  z-index: 5;
}

.d2c-panel-row {
  display: flex;
  align-items: flex-start;
  gap: var(--d2-space-7);
}

.d2c-tile {
  width: var(--d2-contact-tile);
  height: var(--d2-contact-tile);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--d2-radius-14);
  background: var(--d2-fill-on-dark-soft);
  color: var(--d2-text-on-dark);
}

.d2c-tile svg {
  width: var(--d2-contact-icon);
  height: var(--d2-contact-icon);
}

.d2c-panel-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--d2-space-1);
}

.d2c-panel-kicker {
  margin: 0;
  font-size: var(--d2-font-size-11);
  font-weight: var(--d2-font-weight-600);
  letter-spacing: var(--d2-tracking-kicker);
  line-height: var(--d2-line-12);
  text-transform: uppercase;
  color: var(--d2-text-on-dark-soft);
}

.d2c-panel-copy a,
.d2c-panel-copy p {
  margin: 0;
  font-size: var(--d2-font-size-16);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-135);
  color: var(--d2-text-on-dark);
  text-decoration: none;
}

.d2c-panel-copy a:hover {
  text-decoration: underline;
}

.d2c-rule {
  height: var(--d2-border-width);
  background: var(--d2-border-on-dark-line);
}

.d2c-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--d2-space-18);
}

.d2c-next-kicker {
  margin: 0;
  font-size: var(--d2-font-size-11);
  font-weight: var(--d2-font-weight-600);
  letter-spacing: var(--d2-tracking-kicker);
  line-height: var(--d2-line-12);
  text-transform: uppercase;
  color: var(--d2-text-kicker);
}

.d2c-next-grid {
  display: flex;
  gap: var(--d2-space-15);
  width: 100%;
}

.d2c-next-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--d2-space-5);
  padding: var(--d2-space-11);
  background: var(--d2-surface);
  border: var(--d2-border-width) solid var(--d2-border);
  border-radius: var(--d2-radius-16);
}

.d2c-next-icon {
  width: var(--d2-contact-tile);
  height: var(--d2-contact-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--d2-radius-14);
  background: var(--d2-surface-lilac);
  color: var(--d2-accent);
}

.d2c-next-icon svg {
  width: var(--d2-contact-icon);
  height: var(--d2-contact-icon);
}

.d2c-next-card h3 {
  margin: 0;
  font-size: var(--d2-font-size-18);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-135);
  color: var(--d2-text-strong);
}

.d2c-next-card p {
  margin: 0;
  font-size: var(--d2-font-size-13);
  font-weight: var(--d2-font-weight-400);
  line-height: var(--d2-line-145);
  color: var(--d2-text-secondary);
}

.d2c-next-card a {
  font-size: var(--d2-font-size-12);
  font-weight: var(--d2-font-weight-600);
  line-height: var(--d2-line-12);
  color: var(--d2-accent);
  text-decoration: none;
}

.d2c-next-card a:hover {
  text-decoration: underline;
}

.contact-page.is-thanks #d2c-form-view { display: none; }
.contact-page:not(.is-thanks) #d2c-thanks-view { display: none; }

@media (max-width: 1023px) {
  .d2c-hero {
    padding: var(--d2-space-17) 0;
  }

  .d2c-main {
    padding: var(--d2-space-15) 0 var(--d2-space-18);
  }

  .d2c-layout,
  .d2c-next-grid,
  .d2c-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .d2c-card,
  .d2c-panel {
    width: 100%;
    max-width: none;
  }

  .d2c-card-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--d2-space-5);
  }

  .d2c-actions,
  .d2c-actions.is-step2 {
    flex-direction: column-reverse;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--d2-space-7);
  }

  .d2c-pill-go {
    width: 100%;
  }

  .d2c-back {
    align-self: center;
  }

  .d2c-upload-hint {
    white-space: normal;
  }
}
