/* contact.css - Contact page styles
 * Owns: contact form layout, form fields, thank-you screen
 * Does NOT own: nav, footer, buttons, tokens (in styles.css)
 */

/* ── Contact page layout ─────────────────────────────────────── */
.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 24px 120px;
}

.contact-header {
  margin-bottom: 64px;
}

.contact-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.6px;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ── Form base ───────────────────────────────────────────────── */
.contact-form,
.contact-form * {
  box-sizing: border-box;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.req {
  color: var(--accent);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid rgba(0,0,0,0.14);
  border-radius: 7px;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-smooth);
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

/* Select wrapper for custom arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--fg-muted);
  pointer-events: none;
}

.select-wrap select {
  padding-right: 40px;
  cursor: pointer;
}

/* Contact submit button */
.contact-form .btn-block {
  margin-top: 8px;
  padding: 16px;
  font-size: 1rem;
}

/* ── Contact thank-you ───────────────────────────────────────── */
.contact-thanks {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.thanks-wrap {
  padding: 80px 0;
  text-align: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 32px;
}

.thanks-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.thanks-wrap h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--fg);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.thanks-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto 40px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}
