/* Dedicated contact page */
.contact-page {
  --contact-purple: #42169a;
  --contact-lilac: #e9e2f5;
  color: var(--ink);
  background: #fff;
}

.contact-page h1,
.contact-page h2,
.contact-page p {
  margin: 0;
}

.contact-label-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-hero {
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1vw, 0.5rem) var(--pad) clamp(3rem, 5vw, 5rem);
}

.contact-hero h1 {
  max-width: 12ch;
  margin: auto 0 clamp(1.5rem, 1vw, 5rem);
  font-size: clamp(7rem, 5.6vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 0.94 !important;
}

.contact-hero-answer {
  align-self: flex-end;
  width: min(48%, 700px);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-size: clamp(2.2rem, 4.8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.contact-hero-answer span,
.contact-page h2 span {
  color: var(--contact-purple);
}

.contact-section-index {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-dark {
  background: #0d0d0f;
  color: #fff;
}

.contact-framing {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 9vw, 9rem) var(--pad);
}

.contact-framing .contact-section-index {
  color: #9b9ba1;
}

.contact-framing h2,
.contact-section-heading h2,
.contact-ask h2,
.contact-form-heading h2 {
  font-size: clamp(3.1rem, 7.1vw, 8rem);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.07em;
  line-height: 1.03;
}

.contact-framing h2 span {
  color: #8c65cf;
}

.contact-copy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 5vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid #454549;
}

.contact-copy-columns p {
  color: #b6b4ba;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
}

.contact-copy-columns div p + p {
  margin-top: 1.15rem;
}

.contact-copy-columns .contact-emphasis {
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.contact-emphasis strong {
  color: #a985df;
}

.contact-fit {
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
  background: #f5f3f7;
}

.contact-section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.contact-fit-list {
  width: min(78%, 1250px);
  margin: clamp(4rem, 7vw, 7rem) 0 0 auto;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.contact-fit-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: clamp(1.3rem, 2.5vw, 2.25rem) 0;
  border-bottom: 1px solid #b8b5bd;
}

.contact-fit-list li > span {
  padding-top: 0.3rem;
  color: var(--contact-purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.contact-fit-list li p {
  max-width: 42ch;
  font-size: clamp(1.35rem, 2.5vw, 2.7rem);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.contact-ask {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
}

.contact-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}

.contact-ask-grid p,
.contact-ask-grid li {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.5;
}

.contact-ask-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.contact-ask-grid .contact-small-title {
  color: var(--contact-purple);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-ask-grid strong {
  display: block;
  margin-top: 1.25rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.contact-form-section {
  padding: clamp(5rem, 9vw, 9rem) var(--pad);
  background: var(--contact-purple);
  color: #fff;
}

.contact-form-heading {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.contact-form-heading .contact-section-index {
  color: #c9b6e7;
}

.brand-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  row-gap: 1.8rem;
  width: min(100%, 1450px);
  margin-inline: auto;
}

.contact-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-field label {
  display: block;
  margin-bottom: 0.65rem;
  color: #ded2ef;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 1.05rem 1.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  caret-color: #ffffff;
  cursor: text;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(222, 210, 239, 0.45);
  font-size: 1rem;
  font-weight: 400;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.contact-field input:focus,
.contact-field input:focus-visible,
.contact-field select:focus,
.contact-field select:focus-visible,
.contact-field textarea:focus,
.contact-field textarea:focus-visible {
  outline: none !important;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.contact-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1.25rem) center;
  background-size: 14px;
}

.contact-field select option {
  background: #2b0b6e;
  color: #ffffff;
  padding: 0.5rem;
}

.contact-field textarea {
  min-height: 200px;
  resize: vertical;
}

.contact-field-full,
.contact-field-message {
  grid-column: 1 / -1;
}

.contact-field-message span {
  margin-top: 0.65rem;
  color: #c9b6e7;
  font-size: 0.72rem;
}

.contact-submit {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-width: min(100%, 320px);
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--contact-purple);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.25s var(--ease);
}

.contact-submit:hover {
  background: #0c0c10;
  color: #fff;
  transform: translateY(-2px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Realtime Field Validation States */
.contact-field input.is-invalid,
.contact-field select.is-invalid,
.contact-field textarea.is-invalid {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2) !important;
}

.contact-field input.is-valid,
.contact-field select.is-valid,
.contact-field textarea.is-valid {
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15) !important;
}

.field-error-msg {
  display: block;
  min-height: 1.15rem;
  margin-top: 0.4rem;
  color: #fca5a5;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

.field-error-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Toast Notification Container */
.udm-toast-container {
  position: fixed;
  top: 5rem;
  right: 2rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

/* Toast Card (Light Theme) */
.udm-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 16px 36px -6px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.1);
  color: #0f172a;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.udm-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.udm-toast.hide {
  opacity: 0;
  transform: translateY(-12px) scale(0.95);
}

/* Toast Variants */
.udm-toast.toast-success {
  border-left: 5px solid #16a34a;
}

.udm-toast.toast-error {
  border-left: 5px solid #dc2626;
}

.udm-toast.toast-warning {
  border-left: 5px solid #d97706;
}

/* Toast Icon */
.udm-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.udm-toast.toast-success .udm-toast-icon {
  color: #16a34a;
}

.udm-toast.toast-error .udm-toast-icon {
  color: #dc2626;
}

.udm-toast.toast-warning .udm-toast-icon {
  color: #d97706;
}

/* Toast Content */
.udm-toast-body {
  flex: 1;
  min-width: 0;
}

.udm-toast-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.udm-toast-message {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 450;
  color: #475569;
  line-height: 1.45;
}

/* Toast Close Button */
.udm-toast-close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  margin-top: -0.2rem;
  margin-right: -0.3rem;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 6px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.udm-toast-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

.contact-submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: 78svh;
  }

  .contact-hero-answer {
    width: 58%;
  }

  .contact-framing,
  .contact-section-heading,
  .contact-ask,
  .contact-form-heading {
    grid-template-columns: 1fr;
  }

  .contact-framing-content,
  .contact-section-heading h2,
  .contact-ask-content,
  .contact-form-heading h2 {
    margin-left: 18%;
  }

  .contact-fit-list {
    width: 82%;
  }
}

@media (max-width: 620px) {
  .contact-label-row span:last-child {
    display: none;
  }

  .contact-hero {
    min-height: calc(100svh - 70px);
    padding-top: 1.5rem;
  }

  .contact-hero h1 {
    margin-top: auto;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .contact-hero-answer {
    align-self: stretch;
    width: 100%;
    font-size: 2.7rem;
  }

  .contact-framing-content,
  .contact-section-heading h2,
  .contact-ask-content,
  .contact-form-heading h2 {
    margin-left: 0;
  }

  .contact-framing h2,
  .contact-section-heading h2,
  .contact-ask h2,
  .contact-form-heading h2 {
    font-size: 12vw;
  }

  .contact-copy-columns,
  .contact-ask-grid,
  .brand-contact-form {
    grid-template-columns: 1fr;
  }

  .contact-fit-list {
    width: 100%;
    margin-top: 3rem;
  }

  .contact-fit-list li {
    grid-template-columns: 2.3rem 1fr;
  }

  .contact-fit-list li p {
    font-size: 1.35rem;
  }

  .contact-field-message,
  .contact-field-full {
    grid-column: auto;
  }

  .contact-submit {
    justify-self: stretch;
    min-width: 0;
  }
}

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