:root {
  --contact-bg: #ffffff;
  --contact-text: #0a0a0a;
  --contact-muted: #6b6f76;
  --contact-mint: #29b6f6;
  --contact-line: rgba(10, 10, 11, .08);
  --contact-font-display: 'Instrument Sans', 'Inter', sans-serif;
  --contact-font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--contact-bg);
  color: var(--contact-text);
  font-family: var(--contact-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.contact-page {
  min-height: 100vh;
  background: #fff;
}

.contact-container {
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
}

.contact-hero {
  background: #070707;
  padding: 148px 0 120px;
  text-align: center;
}

.contact-eyebrow {
  margin: 0 0 18px;
  color: var(--contact-mint);
  font-family: 'Caveat', cursive;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  transform: rotate(-3deg);
  display: inline-block;
}

.contact-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--contact-font-display);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 760;
  font-stretch: 85%;
  line-height: .92;
  color: #fff;
}

.mobile-break {
  display: none;
}

.contact-hero__copy > p:last-child {
  max-width: 650px;
  margin: 28px auto 0;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  line-height: 1.65;
}

.contact-section {
  position: relative;
  z-index: 1;
  margin-top: -88px;
  padding: 0 0 110px;
  color: #101113;
}

.contact-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--contact-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.04);
  overflow: visible;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-table {
  display: flex;
  flex-direction: column;
}

.contact-row {
  position: relative;
  overflow: visible;
  border-bottom: 1px solid var(--contact-line);
}

.contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-row--split .contact-cell:first-child {
  border-right: 1px solid var(--contact-line);
}

.contact-cell {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  padding: 16px 28px;
  transition: background .2s ease;
}

.contact-cell:focus-within {
  background: rgba(41, 182, 246, .05);
}

.contact-cell label {
  padding-top: 11px;
  color: #5c6168;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

.contact-cell input,
.contact-cell textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101113;
  outline: none;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
}

.contact-cell textarea {
  min-height: 128px;
}

.contact-cell input::placeholder,
.contact-cell textarea::placeholder {
  color: #b4b8be;
}

.contact-cell input:focus,
.contact-cell textarea:focus {
  box-shadow: none;
}

.contact-cell.is-invalid input,
.contact-cell.is-invalid textarea,
.contact-cell.is-invalid .phone-field {
  color: #101113;
}

.contact-error {
  grid-column: 2;
  margin: -4px 0 4px;
  color: #c2410c;
  font-size: 12px;
  line-height: 1.4;
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.phone-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
  margin: 0;
  padding: 0 8px 0 2px;
  border: 0;
  border-right: 1px solid var(--contact-line);
  border-radius: 0;
  background: transparent;
  color: #101113;
  cursor: pointer;
}

.phone-country:hover,
.phone-country[aria-expanded="true"] {
  color: #000;
}

.phone-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.phone-dial {
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.phone-caret {
  color: #8b9098;
}

.phone-field input {
  flex: 1;
  min-width: 0;
}

.country-popover {
  position: absolute;
  left: 148px;
  right: 16px;
  top: calc(100% - 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  background: #fff;
  border: 1px solid var(--contact-line);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0,0,0,.16);
  overflow: hidden;
}

.country-popover[hidden] { display: none; }

.country-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--contact-line);
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.country-list {
  overflow-y: auto;
  padding: 6px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option.is-active {
  background: rgba(10, 10, 11, .05);
}

.country-option img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.country-option__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-option__dial {
  color: var(--contact-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.contact-card__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px 22px;
  text-align: center;
}

.contact-status {
  margin: 0;
  color: #c2410c;
  font-size: 13px;
}

.contact-status.is-success {
  color: #0567a0;
}

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 72px 32px 76px;
  animation: contact-success-in .4s ease both;
}

.contact-success[hidden] {
  display: none;
}

.contact-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--contact-mint);
}

.contact-success__title {
  margin: 0;
  font-family: var(--contact-font-display);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.contact-success__text {
  margin: 0;
  color: var(--contact-muted);
  font-size: 15px;
}

.contact-success__reset {
  margin-top: 22px;
  border: 0;
  background: none;
  padding: 4px 0;
  color: #101113;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-success__reset:hover {
  color: #22262b;
}

@keyframes contact-success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #101113;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.contact-submit:hover {
  background: #22262b;
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

@media (max-width: 860px) {
  .contact-container {
    width: min(100% - 40px, 760px);
  }

  .contact-hero {
    padding: 112px 0 96px;
  }
}

@media (max-width: 640px) {
  .mobile-break {
    display: inline;
  }

  .contact-row--split {
    grid-template-columns: 1fr;
  }

  .contact-row--split .contact-cell:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--contact-line);
  }

  .contact-cell {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }

  .contact-cell label {
    padding-top: 0;
    font-size: 12px;
  }

  .contact-error {
    grid-column: 1;
  }

  .contact-card__foot {
    padding: 16px 18px 18px;
  }

  .contact-submit {
    width: 100%;
  }

  .country-popover {
    left: 12px;
    right: 12px;
    top: calc(100% - 6px);
  }
}

@media (max-width: 520px) {
  .contact-container {
    width: min(100% - 24px, 760px);
  }

  .contact-hero h1 {
    font-size: 42px;
  }

  .contact-hero__copy > p:last-child {
    font-size: 16px;
  }

  .contact-section {
    margin-top: -72px;
    padding: 0 0 72px;
  }
}
