/*
 * Get in Touch component styles.
 *
 * Two renderings of the same Figma popup ("Get In Touch"):
 *  - .form-preview / .form-modal   the /get-in-touch/ page (popup on a preview canvas)
 *  - .contact-dialog               the site-wide enquiry dialog opened by "Get in Touch"
 *
 * The popup card itself is shared with the job application dialog
 * (apply-now/style.css), which reuses .contact-dialog and adds
 * .apply-dialog__form to the field rules below so both dialogs stay the same
 * popup without either one owning a copy of it.
 *
 * The node is 862 x 679 at radius 11 with drop-shadow(4px 4px 8px rgba(0,0,0,.25)),
 * padding 53 / 58 / 67 / 48, title 28/600/31 #DD0B81, two 343px field columns with a
 * 70px gap and 88px row pitch, a 756x193 textarea and a 158x45 button.
 *
 * Those are the maximums: every value scales down from them so the popup stays a
 * centred, comfortable size on shorter screens (e.g. 1366x768) instead of running
 * past the viewport and needing a scroll.
 */

/* Full-page form preview (the /get-in-touch/ page) */
.form-preview { overflow: hidden; }
.form-preview__canvas { position: relative; width: min(100%, 1440px); min-height: min(100vh, 1136px); margin-inline: auto; display: grid; place-items: center; background: #302b28 url("../assets/images/home/image-02.jpg") center / cover no-repeat; }
.form-preview__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 70%); backdrop-filter: blur(2px); }

/* The popup card */
.form-modal { position: relative; }
.form-modal,
.contact-dialog {
  width: min(862px, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 680px);
  max-height: min(90dvh, 680px);
  overflow-y: auto;
  padding: clamp(20px, 2.4vw, 53px) clamp(20px, 4vw, 58px) clamp(20px, 3.6vw, 67px) clamp(20px, 3.3vw, 48px);
  border: 0;
  border-radius: 11px;
  color: #000;
  background: #fff;
  filter: drop-shadow(4px 4px 8px rgb(0 0 0 / 25%));
}

/* Close: gradient cross from the node */
.form-modal__close,
.contact-dialog__close {
  position: absolute;
  top: clamp(9px, 1.4vw, 20px);
  right: clamp(9px, 1.5vw, 21px);
  width: clamp(18px, 2vw, 28px);
  height: clamp(17px, 1.9vw, 27px);
  padding: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='27' viewBox='0 0 28 27' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='27' x2='28' y2='0' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23B04198'/%3E%3Cstop offset='.5' stop-color='%23E14C8D'/%3E%3Cstop offset='1' stop-color='%23FFDB85'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 1.5 26 25.5M26 1.5 2 25.5' stroke='url(%23g)' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

/* Heading + standfirst */
.form-modal h1,
.contact-dialog h2 { margin: 0; color: #dd0b81; font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; line-height: 1.11; }
.form-modal > p,
.contact-dialog > p { margin: clamp(4px, .6vw, 8px) 0 clamp(16px, 2.6vw, 40px); font-size: clamp(14px, 1.5vw, 18px); font-weight: 400; line-height: 1.2; }

/* Fields: two 343px columns, 70px apart, 88px row pitch */
.form-modal form { display: grid; }
.form-modal__grid,
.contact-dialog__form,
.apply-dialog__form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 31px) clamp(24px, 5.5vw, 70px); }
.form-modal label,
.contact-dialog__form label,
.apply-dialog__form label { display: grid; gap: clamp(3px, .5vw, 6px); color: #949494; font-size: clamp(12px, 1.4vw, 18px); font-weight: 400; line-height: 1.5; text-transform: uppercase; }
.form-modal input,
.contact-dialog__form input,
.apply-dialog__form input { width: 100%; height: clamp(1.2rem, 1.8vw, 1.5rem); padding: 0; border: 0; border-bottom: 1px solid #edb4ce; border-radius: 0; color: #000; font: inherit; font-size: clamp(14px, 1.5vw, 18px); background: transparent; text-transform: none; }

/* Message: the label sits inside the box, like the node */
.form-modal__message,
.contact-dialog__message,
.apply-dialog__message { display: block; position: relative; grid-column: 1 / -1; margin-top: clamp(18px, 3vw, 56px); }
.form-modal__message > span,
.contact-dialog__message > span,
.apply-dialog__message > span { position: absolute; z-index: 1; top: clamp(8px, 1.3vw, 14px); left: clamp(10px, 1.5vw, 15px); color: #949494; pointer-events: none; }
.form-modal textarea,
.contact-dialog__form textarea,
.apply-dialog__form textarea { display: block; width: 100%; min-height: clamp(90px, 16vh, 193px); padding: clamp(30px, 4vw, 48px) clamp(10px, 1.5vw, 15px) clamp(10px, 1.5vw, 15px); border: 1px solid transparent; border-radius: 6px; color: #000; font: inherit; font-size: clamp(14px, 1.5vw, 18px); text-transform: none; resize: vertical; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #dd0b81, #ffdb85) border-box; }

/* Submit */
.form-modal .button,
.contact-dialog__form .button,
.apply-dialog__form .button { grid-column: 1 / -1; justify-self: end; width: clamp(112px, 11.5vw, 158px); height: clamp(36px, 3.3vw, 45px); margin-top: clamp(12px, 1.5vw, 21px); border: 0; border-radius: 12px; color: #fff; font-size: clamp(14px, 1.5vw, 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%); }

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

/* Feedback for the shared enquiry dialog on pages that do not load the
   Contact Us form stylesheet. Kept to the same type and colours as the
   Contact Us form so the popup does not change shape. */
.contact-dialog__form .form-status { grid-column: 1 / -1; margin: clamp(10px, 1.4vw, 18px) 0 0; color: #dd0b81; font-size: clamp(13px, 1.4vw, 16px); font-weight: 500; line-height: 1.35; text-transform: none; }
.contact-dialog__form .form-status.is-error { color: #d63638; }
.contact-dialog__form .contact-form__error { margin: 0; color: #d63638; font-size: clamp(11px, 1.3vw, 14px); font-weight: 400; line-height: 1.4; text-transform: none; }

@media (max-width: 720px) {
  .form-modal__grid,
  .contact-dialog__form,
  .apply-dialog__form { grid-template-columns: 1fr; gap: 18px; }
  .form-modal__message,
  .contact-dialog__message,
  .apply-dialog__message { margin-top: 20px; }
  .form-modal textarea,
  .contact-dialog__form textarea,
  .apply-dialog__form textarea { min-height: 110px; }
}
