/* ==========================================================================
   Website message form (js/contact.js)
   ========================================================================== */
.cta { align-items: start; }
.cta__side { position: relative; display: grid; gap: 28px; }
.cta__copy > p:not(.kicker) { margin-bottom: 0; }

.msg-card { position: relative; padding: 28px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.msg-card h3 { margin-bottom: 18px; font-size: 1.375rem; }
.msg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.msg-field { display: grid; gap: 6px; min-width: 0; }
.msg-field--full { grid-column: 1 / -1; }
.msg-field label { font-size: .875rem; font-weight: 500; color: var(--navy); }
.msg-field label small { font-weight: 400; color: var(--muted); }
.msg-field input, .msg-field select, .msg-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9D4E0; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.msg-field textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
.msg-field input:focus, .msg-field select:focus, .msg-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 168, 143, .18); }
.msg-field [aria-invalid="true"] { border-color: #BE123C; }
.msg-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-form__status { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; font-size: .9375rem; background: #FDECEF; color: #9F1239; }
.msg-form__fallback { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.msg-form__fallback .btn { flex: 1; min-height: 46px; white-space: nowrap; }
.msg-form__send { grid-column: 1 / -1; width: 100%; min-height: 52px; }
.msg-form__send:disabled { opacity: .7; cursor: progress; }
.msg-form__note { grid-column: 1 / -1; font-size: .8125rem; color: var(--muted); text-align: center; }

.msg-done { display: grid; justify-items: center; gap: 10px; padding: 36px 8px; text-align: center; }
.msg-done:focus { outline: none; }
.msg-done[hidden] { display: none; }
.msg-done__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #E6F6F2; color: var(--teal-ink); animation: msg-pop .5s var(--ease-spring) both; }
.msg-done__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.msg-done h3 { margin: 6px 0 0; }
.msg-done p { color: var(--muted); max-width: 30em; }
.msg-done .btn { margin-top: 10px; }
@keyframes msg-pop { from { opacity: 0; transform: scale(.6); } }

/* phones and tablets: heading, then the form, then the other ways to reach us */
@media (max-width: 1024px) {
  .cta__side { display: contents; }
  .cta__copy { order: 0; }
  .msg-card { order: 1; }
  .contact__list { order: 2; }
}

@media (max-width: 640px) {
  .msg-card { padding: 20px 16px; }
  .msg-form { grid-template-columns: 1fr; }
  .msg-field input, .msg-field select, .msg-field textarea { font-size: 16px; } /* stops iOS zooming into fields */
}
