.contact {
  background-color: var(--medium-navy);
  padding: 120px 0 100px;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.contact__heading {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}

.contact__subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  color: var(--white);
  text-align: center;
  margin-top: -24px;
}

.contact__form-wrap {
  width: 100%;
  max-width: 540px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__row {
  display: flex;
  gap: 16px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.contact__field label {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}

.contact__field input,
.contact__field textarea {
  background: var(--white);
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  padding: 12px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: #858585;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--gold);
}

.contact__field input.is-error,
.contact__field textarea.is-error {
  border-color: #e74c3c;
}

.contact__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact__checkbox.is-error {
  outline: 2px solid #e74c3c;
  border-radius: 4px;
  padding: 4px;
}

.contact__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin-top: 2px;
  cursor: pointer;
}

.contact__checkbox label {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: var(--white);
  cursor: pointer;
  line-height: 1.5;
}

.contact__link {
  text-decoration: underline;
  color: var(--gold);
}

.contact__form .btn--primary {
  padding: 16px;
  font-size: 22px;
}

.contact__success {
  text-align: center;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact__success h3 {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--gold);
}

.contact__success p {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  color: var(--white);
  line-height: 1.6;
}

@media (max-width: 540px) {
  .contact__row {
    flex-direction: column;
  }

  .contact {
    padding: 80px 0 70px;
  }

  .contact__heading {
    font-size: clamp(24px, 5vw, 32px);
  }
}
