/*
 * Contact form styles.
 *
 * Matches the Figma node for the Contact Us form card (843 x 713, radius 11px):
 * 50 / 68 / 29 padding, a 28px heading, two 319.86px field columns 65px apart
 * with an 84px row pitch (34px field + 50px gap), a 705 x 193 textarea and a
 * 158 x 45 button. Loaded by contact-us/contact-us.php; the site-wide enquiry
 * dialog has its own card styles and only shares the error-state rules below,
 * where this sheet is present.
 */

.contact-form {
  --contact-line: linear-gradient(90deg, #b04198 2.71%, #e14c8d 51.38%, #ffdb85 100%);
  padding: 50px 68px 29px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #000;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(242.44deg, rgb(255 219 133 / 40%) 8.56%, rgb(245 171 136 / 40%) 23.29%, rgb(234 120 139 / 40%) 40.13%, rgb(228 88 141 / 40%) 52.76%, rgb(226 77 142 / 40%) 60.13%, rgb(222 76 142 / 40%) 74.87%, rgb(211 73 144 / 40%) 87.5%, rgb(193 69 148 / 40%) 99.08%, rgb(175 66 152 / 40%) 108.55%) border-box;
}
.contact-form h2 { margin: 0 0 8px; color: #dd0b81; font-size: 28px; font-weight: 600; line-height: 31px; }
.contact-form__intro { margin: 0 0 40px; font-size: 18px; line-height: 20px; }

/* One 34px underlined field per cell, 50px apart vertically (84px row pitch)
   and 65px apart horizontally, as measured on the Figma node. The visible text
   is the placeholder, so the real <label> is kept for assistive technology only. */
.contact-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 65px; }
.contact-form__field { position: relative; display: block; }
.contact-form__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.contact-form input { display: block; width: 100%; height: 34px; padding: 0; border: 0; border-bottom: 1px solid transparent; border-image: var(--contact-line) 1; border-radius: 0; color: #000; font: inherit; font-size: 18px; background: transparent; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #949494; opacity: 1; text-transform: uppercase; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #f8d2e4; outline-offset: 2px; }
.contact-form input:focus { border-image: none; border-bottom-color: #dd0b81; }

.contact-form__message { margin-top: 64px; }
.contact-form textarea { display: block; width: 100%; min-height: 193px; padding: 15px; border: 1px solid transparent; border-radius: 6px; color: #000; font: inherit; font-size: 18px; background: linear-gradient(#fff, #fff) padding-box, var(--contact-line) border-box; resize: vertical; }

/* Validation feedback.
   The server is the authority; these states only mirror it so a visitor sees
   what is wrong beside the field that is wrong, before or after a round trip.
   The note is appended inside the field's own <label>, referenced with
   aria-describedby, and the first invalid field is focused — so the message is
   read out with the field instead of needing a live region per field.
   `.contact-form__error` is emitted by site.js for the whole-page form and the
   shared enquiry dialogs. */
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-dialog__form input[aria-invalid="true"],
.contact-dialog__form textarea[aria-invalid="true"] { border-color: #d63638; }
/* The page form draws its border with a gradient (border-image on the fields,
   a border-box layer on the textarea), so those two need the red state spelled
   out rather than inherited from border-color. */
.contact-form input[aria-invalid="true"] { border-image: none; border-bottom-color: #d63638; }
.contact-form textarea[aria-invalid="true"] { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(#d63638, #d63638) border-box; }
.contact-form input[aria-invalid="true"]:focus,
.contact-form textarea[aria-invalid="true"]:focus,
.contact-dialog__form input[aria-invalid="true"]:focus,
.contact-dialog__form textarea[aria-invalid="true"]:focus { outline-color: #f3c2c3; }
.contact-form__error { margin: 0; color: #d63638; font-size: 14px; font-weight: 400; line-height: 1.4; text-transform: none; }

/* Honeypot: reachable by bots, hidden from people and assistive technology. */
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; margin: 0; overflow: hidden; }

/* The outcome of a submission. Kept next to the button, where the eye already
   is after pressing it. */
.form-status { margin: 24px 0 0; color: #dd0b81; font-size: 16px; font-weight: 500; line-height: 1.4; }
.form-status.is-error { color: #d63638; }

/* Google's attribution requirement, shown only when reCAPTCHA is configured. */
.contact-form__captcha { margin: 16px 0 0; color: #949494; font-size: 13px; line-height: 1.4; text-transform: none; }
.contact-form__captcha a { color: #dd0b81; }

.contact-form .button { display: flex; width: 158px; height: 45px; margin: 31px 0 0 auto; border: 0; border-radius: 12px; color: #fff; font-size: 18px; font-weight: 500; background: linear-gradient(246.56deg, #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); }

@media (max-width: 720px) {
  .contact-form { padding: 2rem 1.5rem; }
  .contact-form__fields { grid-template-columns: 1fr; gap: 32px; }
  .contact-form__message { margin-top: 32px; }
}
