/* Shared form styles (contact + demo) */
.enquiry { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 55%, #fff 100%); padding: 80px 0 50px; }
.pin { position: absolute; width: 110px; height: auto; pointer-events: none; }
.pin--red { left: 95px; top: 97px; transform: rotate(-12deg); }
.pin--teal { right: 104px; top: 167px; transform: rotate(10deg); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 20px 50px rgba(23, 101, 216, 0.08); padding: 40px; }
.form-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; min-height: 46px; }
.form-card__head h2 { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 36px; letter-spacing: -0.5px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--sky); color: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip img { width: 16px; height: 16px; }

.form-card__form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; }
.field label { font-weight: 600; font-size: 14px; line-height: 22px; color: var(--navy); }
.input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; font-family: var(--font-body); font-size: 15px; color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:hover { border-color: #b9d3ee; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 101, 216, .15); }
.input--area { height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 17px; width: 18px; height: 18px; background: url("../assets/icons/contact-chevron-down.svg") center / contain no-repeat; pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--muted); }
.select select option { color: var(--navy); }

.phone { display: flex; align-items: center; height: 52px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.phone:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 101, 216, .15); }
.phone__code { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 24px; flex: none; background: none; border: 0; font: inherit; color: var(--navy); cursor: pointer; }
.phone__code::after { content: ""; width: 1px; height: 24px; background: var(--border); margin-left: 8px; }
.phone__code img:first-child { width: 18px; height: 18px; }
.phone__code img:last-child { width: 14px; height: 14px; }
.phone .input { border: 0; height: 100%; padding-left: 14px; box-shadow: none; border-radius: 0 12px 12px 0; }

.consent__row { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.consent__row input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--blue); cursor: pointer; }
.consent__row label { font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--navy); cursor: pointer; }
.consent__row a { color: var(--blue); text-decoration: underline; }

.form-submit { width: 100%; height: 52px; margin-top: 4px; font-size: 15px; }
.form-submit img { width: 18px; height: 18px; }

.field.has-error .input, .field.has-error .phone { border-color: #d92d4a; }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(217, 45, 74, .15); }
.field__error { display: none; margin: 0; font-size: 13px; line-height: 1.4; color: #d92d4a; }
.field.has-error .field__error { display: block; }

.form-success { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-success[hidden] { display: none; }
.form-success img { width: 56px; height: 56px; }
.form-success h3 { font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1.3; }
.form-success p { color: var(--muted); font-size: 16px; max-width: 360px; }
.form-success:focus { outline: none; }
.form-card.is-sent .form-card__form { display: none; }

/* Between laptop and desktop widths there is no side margin left for the big pins: shrink them into the top padding band so they never sit on the text or form */
@media (min-width: 1101px) and (max-width: 1699px) {
  .enquiry .pin { width: 56px; top: 10px; }
  .enquiry .pin--red { left: max(24px, calc(50% - 620px)); }
  .enquiry .pin--teal { right: max(24px, calc(50% - 620px)); }
}
@media (max-width: 1100px) {
  .pin { display: none; }
}
@media (max-width: 900px) {
  .enquiry { padding: 56px 0; }
}
@media (max-width: 560px) {
  .form-card { padding: 24px 18px; border-radius: 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form-card__head { flex-wrap: wrap; }
}

/* Phone country-code picker (js/countries.js) */
.phone { position: relative; }
.phone__flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(6,42,89,.12); }
.phone__dial { font-size: 14px; font-weight: 600; color: var(--navy); }
.phone .phone__chev { width: 14px; height: 14px; }
.phone__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(6,42,89,.16); overflow: hidden; }
.phone__panel[hidden] { display: none; }
.phone .phone__search { width: 100%; height: 44px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 14px; font: inherit; font-size: 14px; outline: 0; }
.phone__list { max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.phone__list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--navy); }
.phone__list li:hover, .phone__list li[aria-selected="true"] { background: var(--sky); }
.phone__list img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; flex: none; }
.phone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone__num { color: var(--muted); font-size: 13px; }

/* Submit button loader */
.form-submit { position: relative; }
.form-submit:disabled { cursor: not-allowed; opacity: .85; transform: none; }
.form-submit:disabled:not(.is-loading) { opacity: .5; box-shadow: none; }
.form-submit.is-loading img { display: none; }
.form-submit.is-loading::after { content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: ff-spin .7s linear infinite; }
@keyframes ff-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-submit.is-loading::after { animation-duration: 1.6s; } }

/* Required-field marker */
.req { margin-left: 3px; color: #d92d4a; font-weight: 700; }
