/* Contact us page: one white card with the form, on the gray background. */
.contact { min-height: calc(100vh - 60px); padding-top: 72px; }
.contact .section-head { margin-bottom: 36px; }
.contact-title { font-size: 48px; letter-spacing: -1.2px; }

.contact-card {
  max-width: 620px; margin: 0 auto; background: var(--card);
  border-radius: var(--radius-card); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: #FFFFFF; border: 1px solid #D1D1D6; border-radius: 12px; padding: 12px 14px;
  width: 100%; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field input::placeholder { color: #AEAEB2; }

/* Problems with a box show in red under it */
.field.has-error input, .field.has-error textarea { border-color: #FF3B30; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px #FFE5E3; }
.field-error { color: #FF3B30; font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-count { color: var(--muted); font-size: 14px; margin-left: auto; white-space: nowrap; }
.field-count.ok { color: #34C759; }
.field.has-error .field-count { display: none; } /* the red message already says the minimum */

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-legal { color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-legal a { color: var(--blue); }
.contact-send { width: 100%; border: none; cursor: pointer; font-family: inherit; }
.contact-send:disabled { opacity: 0.6; cursor: default; }
.form-error { color: #FF3B30; font-size: 15px; text-align: center; }
.form-error:empty { display: none; }

/* After sending */
.contact-done { align-items: center; text-align: center; padding: 48px 32px; gap: 6px; }
.contact-card[hidden] { display: none; } /* the form after sending, and "Message sent" before */
.done-check {
  width: 56px; height: 56px; border-radius: 50%; background: #34C759; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; margin-bottom: 10px;
}
.done-title { font-size: 28px; letter-spacing: -0.5px; }
.contact-done .sub { margin-top: 4px; }


@media (max-width: 640px) {
  .contact { padding-top: 40px; }
  .contact-title { font-size: 34px; }
  .contact-card { padding: 22px 18px; }
  .contact-row { grid-template-columns: 1fr; gap: 18px; }
}
