.contact-page {
  font-family: var(--font-display, "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, sans-serif);
  color: #000;
}

.contact-page-main {
  padding: clamp(54px, 5.5vw, 80px) clamp(24px, 4vw, 56px) 150px;
  max-width: 1450px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.38fr) minmax(0, 1fr);
  gap: clamp(48px, 5vw, 96px);
  align-items: start;
  width: 100%;
  margin: 0 auto;
}

.contact-layout__primary {
  width: 100%;
  text-align: left;
}

.contact-layout__title {
  font-family: var(--font-heading, var(--font-display));
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 10px;
}

.contact-intro__lead {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.25px;
  color: rgba(0, 0, 0, 0.72);
  margin: 0 0 18px;
  max-width: 42ch;
}

.contact-info {
  display: grid;
  gap: 12px;
  padding-top: 0;
}

.contact-info__row {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.25px;
  color: #000;
}

.contact-info__row strong {
  display: block;
  font-family: var(--font-heading, var(--font-display));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 5px;
}

.contact-info__row a {
  color: #000;
  text-decoration: none;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 0.5px;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--underline-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.contact-info__row a:hover,
.contact-info__row a:focus-visible {
  background-size: 100% 0.5px;
}

.contact-layout__form {
  width: 100%;
}

.contact-form {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  --contact-control-min-h: 44px;
  --contact-control-font: 16px;
  --contact-control-pad-y: 12px;
  --contact-control-pad-x: 14px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.contact-form__row--selects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-field {
  display: block;
  width: 100%;
}

.contact-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-field-kicker {
  display: block;
  font-family: var(--font-heading, var(--font-display));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 7px;
}

.contact-field-kicker__note {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.38);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #000;
  background: #fff;
  min-height: var(--contact-control-min-h);
  padding: var(--contact-control-pad-y) var(--contact-control-pad-x);
  font-family: var(--font-display);
  font-size: var(--contact-control-font);
  font-weight: 500;
  letter-spacing: -0.25px;
  color: #000;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.62);
  font-size: var(--contact-control-font);
  font-weight: 500;
  letter-spacing: -0.25px;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #000;
}

.contact-form__attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 0;
}

.contact-form__attach {
  margin: 0 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.contact-custom-select {
  position: relative;
  width: 100%;
}

.contact-custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-custom-select__trigger {
  width: 100%;
  min-height: var(--contact-control-min-h);
  border: 1px solid #000;
  background: #fff;
  padding: 0 calc(var(--contact-control-pad-x) + 22px) 0 var(--contact-control-pad-x);
  font-family: var(--font-display);
  font-size: var(--contact-control-font);
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 1.25;
  color: #000;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.contact-custom-select__label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.contact-custom-select__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

.contact-custom-select.is-open .contact-custom-select__trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.contact-custom-select__trigger:focus-visible,
.contact-custom-select.is-open .contact-custom-select__trigger {
  outline: none;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #000;
}

.contact-custom-select__trigger.is-placeholder,
.contact-custom-select__trigger.is-placeholder .contact-custom-select__label {
  color: rgba(0, 0, 0, 0.62);
}

.contact-custom-select__menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #000;
  border-top: 0;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: none;
}

.contact-custom-select__menu::-webkit-scrollbar {
  display: none;
}

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

.contact-custom-select__option {
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: var(--contact-control-font);
  font-weight: 500;
  letter-spacing: -0.25px;
  color: #000;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-custom-select__option:hover,
.contact-custom-select__option.is-focused {
  background: #f2f2f2;
}

.contact-custom-select__option.is-selected {
  background: #000;
  color: #fff;
}

.contact-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}

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

.contact-file-list__item {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-file-list__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #000;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-file-list__remove {
  flex-shrink: 0;
  border: 0;
  background: none;
  color: #000;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-file-list__remove:hover,
.contact-file-list__remove:focus-visible {
  color: #000;
  outline: none;
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.25px;
  color: #000;
  cursor: pointer;
}

.contact-checkbox input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #000;
  border: 1px solid #000;
  cursor: pointer;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding-top: 0;
}

.contact-btn-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 2px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.80px;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-btn-attach.has-files {
  background: #000;
  color: #fff;
}

.contact-btn-attach.has-files:hover,
.contact-btn-attach.has-files:focus-visible {
  background: #000;
  color: #fff;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 168px;
  padding: 0 24px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  background: #fff;
  color: #000;
}

.contact-btn--outline {
  background: #fff;
  color: #000;
}

.contact-btn--outline:hover,
.contact-btn--outline:focus-visible {
  background: #000;
  color: #fff;
}

.contact-btn.is-sending {
  pointer-events: none;
  cursor: wait;
}

.contact-sending-dots {
  display: inline-flex;
  margin-left: 2px;
}

.contact-sending-dots span {
  width: 0.35em;
  text-align: center;
  animation: contact-sending-dot-bounce 1.1s ease-in-out infinite;
  opacity: 0.25;
}

.contact-sending-dots span::before {
  content: '.';
}

.contact-sending-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.contact-sending-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes contact-sending-dot-bounce {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.contact-form__success {
  margin: 8px 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: rgba(0, 0, 0, 0.62);
  max-width: 42ch;
}

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

.contact-form__error {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.2px;
  color: #b00020;
  margin: 0;
}

.contact-form.is-submitting .contact-btn-attach {
  pointer-events: none;
  opacity: 0.45;
}

.contact-form.is-submitting .contact-btn.is-sending {
  opacity: 1;
}

@media (max-width: 1280px) {
  .contact-form__row--selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-page-main {
    padding: 36px 16px 56px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-layout__title {
    margin-bottom: 6px;
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: -1.5px;
  }

  .contact-intro__lead {
    margin-bottom: 12px;
    max-width: none;
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.5;
  }

  .contact-info__row {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .contact-info__row strong {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .contact-form {
    max-width: 100%;
    gap: 7px;
    --contact-control-min-h: 40px;
    --contact-control-font: 16px;
    --contact-control-pad-y: 10px;
    --contact-control-pad-x: 12px;
  }

  .contact-form__row {
    gap: 7px;
  }

  .contact-field textarea {
    min-height: 112px;
  }

  .contact-info__row,
  .contact-checkbox,
  .contact-custom-select__trigger,
  .contact-custom-select__option {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .contact-field input,
  .contact-field textarea {
    font-size: 16px;
  }

  .contact-checkbox {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.4;
  }

  .contact-form__attach-row {
    align-items: flex-start;
    gap: 10px;
  }

  .contact-form__attach {
    margin-left: auto;
  }

  .contact-field input::placeholder,
  .contact-field textarea::placeholder {
    font-size: 16px;
  }

  .contact-form__error,
  .contact-form__success {
    font-size: clamp(11px, 3vw, 13px);
  }

  .contact-btn {
    font-size: clamp(14px, 3.6vw, 16px);
    min-height: 42px;
    padding: 0 18px;
    min-width: 0;
  }

  .contact-btn-attach {
    font-size: clamp(12px, 3.2vw, 14px);
    min-height: 38px;
    padding: 0 14px;
    width: auto;
  }

  .contact-file-list__remove {
    font-size: clamp(11px, 3vw, 13px);
  }
}

@media (max-width: 600px) {
  .contact-page-main {
    padding: 14px 14px 48px;
  }

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

  .contact-form__row--selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .contact-form__actions {
    justify-content: flex-start;
    margin-top: 4px;
  }

  .contact-btn {
    width: 100%;
  }
}
