.contact {
  --contact-purple: #3300c0;
  --contact-navigation-height: var(--navigation-height);
  --contact-gutter: max(24px, calc((100% - 776px) / 2));
  margin: 0;
  padding: 0 var(--contact-gutter) 24px;
  background: linear-gradient(180deg, rgb(14 3 48 / 38%), rgb(14 3 48 / 56%)), url('../media/homepage/form-image.png') center / cover no-repeat, var(--contact-purple);
  color: #fff;
  scroll-margin-top: var(--contact-navigation-height);
  isolation: isolate;
  overflow-anchor: none;
}
.contact.is-active-section { --contact-navigation-height: 0px; }

/* The native dialog keeps keyboard focus inside the confirmed-success message. */
html.has-enquiry-success { overflow: hidden; }
.enquiry-success {
  width: min(420px, calc(100% - 36px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: #29233d;
  background: #fff;
  box-shadow: 0 32px 100px rgb(20 7 58 / 30%);
}
.enquiry-success::backdrop { background: rgb(19 10 42 / 60%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.enquiry-success[open] { animation: enquiry-success-enter .24s ease-out; }
.enquiry-success-banner {
  position: relative;
  display: grid;
  place-items: center;
  height: 110px;
  background: linear-gradient(115deg, #6059ee, #955bf0);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}
.enquiry-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  color: #fff;
}
.enquiry-success-icon svg { width: 44px; height: 44px; }
.enquiry-success-content { padding: 8px 28px 28px; text-align: center; }
.enquiry-success h2 { margin: 0; color: #6351dc; font-size: clamp(23px, 5vw, 28px); letter-spacing: -.035em; line-height: 1.25; overflow-wrap: anywhere; }
.enquiry-success-subtitle { margin: 9px 0 22px; color: #696273; font-size: 14px; line-height: 1.5; }
.enquiry-success-note { padding: 20px; border-radius: 15px; background: #f4f3f8; color: #595364; font-size: 14px; line-height: 1.65; }
.enquiry-success-note p { margin: 0; }
.enquiry-success-content form { margin-top: 22px; }
.enquiry-success-continue { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px; color: #fff; background: #6757e8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.enquiry-success-continue:hover { background: #5542d3; }
.enquiry-success-continue:focus-visible { outline: 3px solid #a18df2; outline-offset: 4px; }
@keyframes enquiry-success-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enquiry-success[open] { animation: none; } }
.contact-sticky-header { background: transparent; }
.contact-sticky-header:has(.contact-toolbar.has-active-input) { display: contents; }
.contact-intro {
  margin-inline: calc(-1 * var(--contact-gutter));
  padding: 20px var(--contact-gutter) 16px;
}
.contact-toolbar { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 12px; min-height: calc(clamp(104px, 17svh, 136px) + 58px); padding: 8px 4px; background: transparent; }
.contact-toolbar.has-active-input { flex-direction: row; justify-content: space-between; min-height: 0; }
.contact.has-keyboard .contact-intro { padding-top: 8px; padding-bottom: 4px; }
.contact.has-keyboard h2 { font-size: 18px; line-height: 1.25; }
.contact.has-keyboard .contact-toolbar { min-height: 0; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.contact.has-keyboard .contact-mascot { flex-basis: var(--keyboard-mascot-size, 104px); width: var(--keyboard-mascot-size, 104px); }
.contact h2 { margin: 0; text-align: center; font-size: clamp(20px, 4.8vw, 28px); letter-spacing: -.025em; }
.contact-mascot { position: relative; flex: 0 0 clamp(104px, 17svh, 136px); width: clamp(104px, 17svh, 136px); margin: 0; }
.developer-mascot { display: block; width: 100%; overflow: visible; }
.developer-head { transform-origin: 120px 151px; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.developer-pupils { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)); transition: transform .14s ease-out; }
.developer-eyes { transform-origin: 120px 110px; animation: developer-blink 6.8s infinite; }
.developer-brows { transform-origin: 120px 96px; transition: transform .3s ease; }
.developer-smile { transition: d .3s ease; }
.contact-mascot[data-mood="curious"] .developer-head { transform: rotate(-5deg) translateY(-2px); }
.contact-mascot[data-mood="curious"] .developer-brows { transform: translateY(-3px); }
.contact-mascot[data-mood="attentive"] .developer-head { transform: rotate(5deg); }
.contact-mascot[data-mood="concerned"] .developer-brows { transform: rotate(-4deg) translateY(2px); }
.contact-mascot[data-mood="sending"] .developer-head { animation: developer-listen 1.8s ease-in-out infinite; }
.contact-mascot[data-mood="celebrate"] .developer-head { animation: developer-celebrate .7s ease-in-out 2; }
.contact-form {
  position: relative;
  margin: 16px auto 0;
  padding: 28px 20px;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 20px;
  background: linear-gradient(135deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 5%)), rgb(24 7 64 / 36%);
  box-shadow: 0 24px 64px rgb(8 0 30 / 30%), inset 0 1px 0 rgb(255 255 255 / 18%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.contact.is-editing { min-height: var(--contact-editing-height); }
html.has-contact-editor, html.has-contact-editor body { overflow: hidden; overscroll-behavior: none; }
.contact.is-editing .contact-surface {
  position: fixed;
  inset-inline: 0;
  top: var(--contact-viewport-top, 0px);
  height: var(--contact-viewport-height, 100dvh);
  padding: 0 var(--contact-gutter) 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  overscroll-behavior: none;
  background: inherit;
  z-index: 20;
}
.contact.is-editing .contact-sticky-header { display: contents; }
.contact.is-editing .contact-intro { display: none; }
.contact.is-editing .contact-toolbar {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  min-height: 0;
  z-index: 6;
}
.contact.is-editing .contact-form {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  z-index: 5;
  height: var(--contact-panel-height);
  max-height: var(--contact-panel-height);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 20px;
  scrollbar-width: thin;
  scrollbar-color: #c4b2ff rgb(255 255 255 / 8%);
}
.contact-form::-webkit-scrollbar { width: 6px; }
.contact-form::-webkit-scrollbar-track { background: rgb(255 255 255 / 8%); border-radius: 20px; }
.contact-form::-webkit-scrollbar-thumb { background: #c4b2ff; border-radius: 20px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-form { background: rgb(35 13 79 / 92%); }
}
.contact-progress { text-align: left; margin: 0; }
.contact-steps { display: flex; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; }
.contact-steps li { display: flex; align-items: center; color: #e4dbff; }
.contact-steps li + li::before { content: ""; width: 64px; height: 1px; background: #ddd5e9; margin: 0 12px; }
.contact-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ddd5e9; border-radius: 50%; font-size: 12px; font-weight: 600; }
.contact-steps li[aria-current="step"] span { color: var(--contact-purple); background: #fff; border-color: #fff; }
.contact-steps li.is-complete span { color: #49316f; background: #f0eaf7; border-color: #c9b9df; }
@media (max-width: 360px) {
  .contact-steps li + li::before { width: 40px; margin: 0 8px; }
}
.contact-stage h3 { margin: 0 0 20px; color: #fff; font-size: 18px; line-height: 1.4; letter-spacing: -.015em; font-weight: 500; scroll-margin-top: calc(var(--contact-navigation-height) + 20px); }
.contact-stage h3:focus { outline: none; }
.contact-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-actions .contact-submit { margin-top: 0; margin-left: auto; }
.contact-back { min-height: 50px; padding: 12px 18px; border: 1px solid #dcd5e5; border-radius: 8px; background: #fff; color: #49316f; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.contact-back:hover { background: #fcfbfd; border-color: #b5a6cb; }
.contact-back:focus-visible { outline: 2px solid #7658a6; outline-offset: 3px; }
.contact-stage[hidden], .contact-actions [hidden] { display: none; }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 28px; }
.contact-field { position: relative; min-width: 0; }
.contact-field label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.contact-icon { display: grid; place-items: center; width: 18px; height: 20px; flex: 0 0 18px; color: #e4dbff; }
.contact-icon svg { width: 17px; height: 17px; }
.contact-field input, .contact-field select, .contact-field textarea {
  width: 100%; min-width: 0; margin-top: 9px; border: 1px solid #dcd5e5;
  background: #fff; color: #241b3d; border-radius: 8px; padding: 13px 12px;
  font: inherit; font-size: 16px; min-height: 50px; transition: background-color .2s, border-color .2s;
  scroll-margin-top: calc(var(--contact-navigation-height) + 16px);
}
.contact-field select { cursor: pointer; }
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: #b5a6cb; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { outline: 2px solid #c4b2ff; outline-offset: 3px; border-color: #fff; background: #fff; }
.contact-field textarea { display: block; min-height: 150px; resize: vertical; line-height: 1.6; }
.contact-field [aria-invalid="true"] { border-color: #b42338; background: #fff8f8; }
.contact-field [aria-invalid="true"]:focus { border-color: #b42338; }
.contact-error { display: block; color: #ffe0e6; font-size: 12px; line-height: 1.5; }
.contact-error:not(:empty) { margin-top: 6px; }
.contact-field-wide.contact-attachment { max-width: none; }
.contact-optional { color: #e4dbff; font-size: 12px; font-weight: 400; }
.contact-attachment input[type="file"] { border-style: dashed; padding: 10px; font-size: 12px; cursor: pointer; }
.contact-attachment input::file-selector-button { margin-right: 10px; border: 1px solid #ddd4e9; border-radius: 5px; padding: 9px 10px; background: #f0eaf7; color: #49316f; font: inherit; font-weight: 600; cursor: pointer; }
.contact-attachment-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.contact-attachment-details p { margin: 0; color: #e4dbff; font-size: 12px; line-height: 1.5; }
.contact-remove-file { border: 0; padding: 5px 0; background: transparent; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.contact-remove-file[hidden] { display: none; }
.contact-remove-file:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; padding: 14px 24px; min-height: 50px; border: 1px solid transparent; border-radius: 8px; color: #250080; background: #c4b2ff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.contact-submit svg { width: 18px; height: 18px; transition: transform .2s; }
.contact-submit:hover:not(:disabled) { background: #ded3ff; }
.contact-submit:hover:not(:disabled) svg { transform: translate(2px,-2px); }
.contact-submit:focus-visible, .contact-back:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-status { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.contact-status[data-state="error"] { color: #ffe0e6; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes developer-blink { 0%, 42%, 46%, 100% { transform: scaleY(1); } 44% { transform: scaleY(.08); } }
@keyframes developer-listen { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-2deg) translateY(2px); } }
@keyframes developer-celebrate { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-7px) rotate(-5deg); } }
@media (min-width: 640px) {
  .contact { --contact-gutter: max(32px, calc((100% - 776px) / 2)); }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-field-wide { grid-column: 1 / -1; }
}
@media (min-width: 700px) {
  .contact-form { padding: 36px; }
  .contact-fields { gap: 28px 28px; }
}
@media (min-width: 1024px) {
  .contact { --contact-gutter: max(32px, calc((100% - 970px) / 2)); }
  .contact h2 { font-size: clamp(28px, 5vw, 42px); }
  .contact .contact-toolbar {
    flex-direction: row;
    justify-content: space-between;
    min-height: 160px;
    padding: 8px 4px;
  }
  .contact-field:has(#contact-service) { grid-column: auto; }
  .contact-field label[for="contact-stage"],
  .contact-field label[for="contact-service"] { font-size: 18px; flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .contact *, .contact *::before, .contact *::after { animation: none !important; transition: none !important; }
}
