/* ── Contact page ── */

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: flex-start;
}

/* "Who are you?" — matches nav-top height for visual alignment */
.contact-who {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 260px;
}

/* Form fields + button */
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* All field groups stacked */
.contact-fields {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* Checkbox/radio group */
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Option label text (h3 scale) */
.contact-option-text {
  font-weight: 500;
  font-size: var(--size-h3);
  color: var(--text-primary);
  letter-spacing: var(--ls-h3);
  line-height: var(--lh-heading);
}

/* ── Radio ── */
.radio-item,
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-item *,
.checkbox-item * {
  cursor: pointer;
}

.radio-item input,
.checkbox-item input {
  display: none;
}

.radio-custom {
  width: 16px;
  height: 16px;
  border-radius: 1000px;
  border: 1px solid var(--text-primary);
  flex-shrink: 0;
  transition: background-color 0.15s, border-color 0.15s;
}

.radio-item:hover input[type="radio"]:not(:checked) ~ .radio-custom {
  border-color: var(--text-secondary);
}

input[type="radio"]:checked + .radio-custom {
  background-color: var(--text-primary);
}

/* ── Checkbox ── */
.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--text-primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.checkbox-item:hover input[type="checkbox"]:not(:checked) ~ .checkbox-custom {
  border-color: var(--text-secondary);
}

input[type="checkbox"]:checked + .checkbox-custom {
  background-color: var(--text-primary);
}


/* ── Text inputs ── */
.text-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.text-input__field {
  font-family: 'Inter Display', sans-serif;
  font-weight: 500;
  font-size: var(--size-h3);
  color: var(--text-primary);
  letter-spacing: var(--ls-h3);
  line-height: var(--lh-heading);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-secondary);
  outline: none;
  width: 100%;
  padding-bottom: 8px;
  -webkit-font-smoothing: antialiased;
}

.text-input__field::placeholder {
  color: var(--text-secondary);
}

.text-input__field:focus {
  border-bottom-color: var(--text-primary);
}

.text-input--error .text-input__field {
  border-bottom-color: var(--status-error);
}

.text-input__error-msg {
  display: none;
  font-weight: 400;
  font-size: var(--size-label);
  color: var(--status-error);
  letter-spacing: var(--ls-label);
  line-height: var(--lh-body);
}

.text-input--error .text-input__error-msg {
  display: block;
}

/* Honeypot — скрыт от людей, виден ботам */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Success message */
.contact-success {
  font-weight: 400;
  font-size: var(--size-body);
  color: var(--text-secondary);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-body);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .contact-who {
    height: auto;
  }

  .contact-main {
    gap: 24px;
  }

  .contact-fields {
    gap: 20px;
  }
}
