/* ---------- Contact page base ---------- */
.contact-page {
  background-color: #1B3D6D;
  color: #f2f0ea;

  font-family: 'Inter', Arial, sans-serif;

  display: block;
  padding: 0;
  overflow: visible;
  height: auto;
  min-height: 100vh;
}

/* ---------- Back link ---------- */
.back-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 10;

  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #f4f1ea;

  transition: color 0.25s ease;
}

.back-link:hover {
  color: #e31f26;
}

/* ---------- Single-column container ---------- */
.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;

  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ---------- Headline ---------- */
.contact-headline {
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-align: center;
}

/* ---------- Form ---------- */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-block,
.form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.55;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: #f4f1ea;

  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.25);

  padding: 0.5rem 0;
  outline: none;

  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f4f1ea;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Submit button ---------- */
.submit-btn {
  align-self: center;

  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #0a0a0a;
  background: #f4f1ea;

  border: none;
  padding: 0.9rem 2.5rem;
  margin-top: 0.5rem;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.submit-btn:hover {
  background: #e31f26;
  color: #f4f1ea;
}

/* ---------- Contact icons (bottom) ---------- */
.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;

  color: #f4f1ea;
  text-decoration: none;

  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 50%;

  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-item:hover {
  color: #e31f26;
  border-color: #e31f26;
}

.contact-item .icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.contact-item .icon svg {
  width: 100%;
  height: 100%;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .contact {
    padding: 6rem 1.5rem 4rem;
    gap: 3rem;
  }

  .back-link {
    top: 1.25rem;
    left: 1.25rem;
  }

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

  .submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
  }

  .contact-item {
    width: 64px;
    height: 64px;
  }

  .contact-item .icon {
    width: 26px;
    height: 26px;
  }
}
