/* Eterno multi-step enquiry form. Everything is scoped under .eq */
.eq {
  --eq-teal: #00796B;
  --eq-teal-bright: #009688;
  --eq-teal-dark: #00695C;
  --eq-tint: #E8F4F2;
  --eq-tint-strong: #CFE9E4;
  --eq-ink: #171717;
  --eq-muted: #596070;
  --eq-line: #D7DDE8;
  --eq-line-strong: #B9C1CF;
  --eq-card: #FFFFFF;
  --eq-error: #B3261E;
  --eq-error-tint: #FCEEEE;
  --eq-radius: 12px;
  --eq-ease: cubic-bezier(.2, .7, .2, 1);

  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--eq-ink);
  max-width: 780px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
.eq *, .eq *::before, .eq *::after { box-sizing: border-box; }
.eq [hidden] { display: none !important; }
:where(.eq) :where(button, input, textarea) { font: inherit; color: inherit; }

/* Theme-proofing: the site theme styles bare form, ul, li, input, textarea, p and h2 tags.
   These rules put the form back to its own design wherever the theme reaches in. */
.eq form { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.eq button, .eq input, .eq textarea { font-family: inherit; letter-spacing: normal; text-transform: none; }
.eq ul, .eq ol { margin: 0; padding: 0; list-style: none; }
.eq li { margin: 0; list-style: none; }
.eq p { line-height: 1.55; }
.eq label { margin: 0; }
.eq .eq-opt, .eq .eq-drop { font-weight: 400; }
.eq a { font-weight: inherit; display: inline; }
.eq :focus-visible { outline: 3px solid var(--eq-teal-bright); outline-offset: 2px; }
.eq h2:focus { outline: none; }

.eq-card {
  background: var(--eq-card);
  border-radius: 20px;
  padding: 36px 44px 40px;
  box-shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 18px 48px -12px rgba(30, 50, 90, .18);
  animation: eq-rise .6s var(--eq-ease) both;
}

/* ---------- Progress ---------- */
.eq .eq-steps { list-style: none; margin: 0 0 30px; padding: 0; display: flex; }
.eq-step { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eq-step::before, .eq-step::after {
  content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; border-radius: 2px;
  background: var(--eq-line);
}
.eq-step::after { background: var(--eq-teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--eq-ease); }
.eq-step:first-child::before, .eq-step:first-child::after { display: none; }
.eq-step.is-done::after, .eq-step.is-current::after { transform: scaleX(1); }
.eq-step-dot {
  position: relative; z-index: 1; width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: var(--eq-card); border: 2px solid var(--eq-line); color: var(--eq-muted);
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s, transform .3s var(--eq-ease);
}
.eq-step.is-current .eq-step-dot { border-color: var(--eq-teal); color: var(--eq-teal-dark); box-shadow: 0 0 0 5px var(--eq-tint); transform: scale(1.06); }
.eq-step.is-done .eq-step-dot { background: var(--eq-teal); border-color: var(--eq-teal); color: #fff; }
button.eq-step-dot { cursor: pointer; }
button.eq-step-dot:hover { background: var(--eq-teal-dark); border-color: var(--eq-teal-dark); }
.eq-step-dot svg { width: 16px; height: 16px; }
.eq-step-label { font-size: 14px; font-weight: 600; color: var(--eq-muted); transition: color .3s; }
.eq-step.is-current .eq-step-label, .eq-step.is-done .eq-step-label { color: var(--eq-ink); }

/* ---------- Role chip ---------- */
.eq-chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 5px 6px 5px 14px;
  background: var(--eq-tint); border-radius: 999px; font-size: 15px;
  animation: eq-fade .35s both;
}
.eq-chip strong { font-weight: 700; color: var(--eq-teal-dark); }
.eq-chip button {
  border: 0; background: #fff; color: var(--eq-teal-dark); font-size: 14px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.eq-chip button:hover { background: var(--eq-teal); color: #fff; }

/* ---------- Panel and transitions ---------- */
.eq-panel { transition: opacity .14s ease, transform .14s ease; }
.eq-panel.eq-out { opacity: 0; transform: translateY(4px); }
.eq-panel.eq-in-fwd { animation: eq-in-fwd .38s var(--eq-ease) both; }
.eq-panel.eq-in-back { animation: eq-in-back .38s var(--eq-ease) both; }
@keyframes eq-in-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes eq-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes eq-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes eq-fade { from { opacity: 0; } to { opacity: 1; } }

.eq .eq-heading { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--eq-ink); }
.eq .eq-intro { margin: 0 0 26px; color: var(--eq-muted); font-size: 17px; }

/* ---------- Role cards ---------- */
.eq-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eq-role {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  padding: 18px 18px 20px; min-height: 148px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--eq-line); border-radius: var(--eq-radius);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--eq-ease), background .2s;
  animation: eq-rise .5s var(--eq-ease) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms);
}
.eq-role:hover { border-color: var(--eq-teal); transform: translateY(-3px); box-shadow: 0 12px 26px -12px rgba(0, 121, 107, .45); }
.eq-role:active { transform: translateY(-1px) scale(.99); }
.eq-role-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--eq-tint); color: var(--eq-teal); transition: background .2s, color .2s;
}
.eq-role-icon svg { width: 25px; height: 25px; }
.eq-role:hover .eq-role-icon { background: var(--eq-tint-strong); }
.eq-role-name { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.eq-role-hint { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: var(--eq-muted); }
.eq-role-tick {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--eq-teal); color: #fff;
  transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.eq-role-tick svg { width: 14px; height: 14px; }
.eq-role[aria-pressed="true"] { border-color: var(--eq-teal); background: #F5FBFA; box-shadow: 0 0 0 1.5px var(--eq-teal); }
.eq-role[aria-pressed="true"] .eq-role-icon { background: var(--eq-teal); color: #fff; }
.eq-role[aria-pressed="true"] .eq-role-tick { transform: scale(1); }

/* ---------- Fields ---------- */
.eq-fields { display: flex; flex-direction: column; gap: 26px; }
.eq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.eq-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.eq .eq-label { display: block; font-size: 17px; font-weight: 700; line-height: 1.4; padding: 0; margin: 0; color: var(--eq-ink); }
.eq-label small { font-size: 14.5px; font-weight: 500; color: var(--eq-muted); }
.eq-help { font-size: 14.5px; color: var(--eq-muted); margin: -4px 0 2px; }
.eq .eq-input, .eq .eq-textarea {
  display: block; margin: 0; color: var(--eq-ink); box-shadow: none; font-weight: 400;
  width: 100%; border: 1.5px solid var(--eq-line); border-radius: 10px; background: #fff;
  padding: 12px 14px; font-size: 17px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.eq .eq-input { height: 50px; }
.eq .eq-textarea { min-height: 150px; resize: vertical; }
.eq .eq-input::placeholder, .eq .eq-textarea::placeholder { color: #98A0AE; }
.eq .eq-input:hover, .eq .eq-textarea:hover { border-color: var(--eq-line-strong); }
.eq .eq-input:focus, .eq .eq-textarea:focus { outline: none; border-color: var(--eq-teal); box-shadow: 0 0 0 4px var(--eq-tint); }
.eq .eq-field.has-error .eq-input, .eq .eq-field.has-error .eq-textarea { border-color: var(--eq-error); box-shadow: 0 0 0 4px var(--eq-error-tint); }
.eq-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--eq-muted); }
.eq-error { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--eq-error); animation: eq-shake .35s both; }
.eq-error::before { content: '!'; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--eq-error); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
@keyframes eq-shake { 0% { transform: translateX(0); } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } 100% { transform: none; } }

/* Option tiles (radio / checkbox) */
.eq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eq-opt { position: relative; display: block; cursor: pointer; }
.eq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.eq-opt-box {
  display: flex; align-items: center; gap: 12px; min-height: 52px; height: 100%; padding: 10px 14px;
  border: 1.5px solid var(--eq-line); border-radius: 10px; background: #fff; font-size: 16.5px; line-height: 1.3;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--eq-ease);
}
.eq-opt:hover .eq-opt-box { border-color: var(--eq-teal); }
.eq-opt:active .eq-opt-box { transform: scale(.985); }
.eq-opt-mark {
  flex: none; width: 22px; height: 22px; border: 1.5px solid var(--eq-line-strong); background: #fff;
  display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s;
}
.eq-opt input[type="radio"] + .eq-opt-box .eq-opt-mark { border-radius: 50%; }
.eq-opt input[type="checkbox"] + .eq-opt-box .eq-opt-mark { border-radius: 6px; }
.eq-opt-mark svg { width: 13px; height: 13px; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.eq-opt input:checked + .eq-opt-box { border-color: var(--eq-teal); background: #F5FBFA; box-shadow: 0 0 0 1.5px var(--eq-teal); font-weight: 600; }
.eq-opt input:checked + .eq-opt-box .eq-opt-mark { background: var(--eq-teal); border-color: var(--eq-teal); }
.eq-opt input:checked + .eq-opt-box .eq-opt-mark svg { transform: scale(1); }
.eq-opt input:focus-visible + .eq-opt-box { outline: 3px solid var(--eq-teal-bright); outline-offset: 2px; }

/* Grouped options: titled panels side by side */
.eq-optgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.eq-optgroup { padding: 14px; border: 1.5px solid var(--eq-line); border-radius: var(--eq-radius); background: #F8FAFE; transition: border-color .2s, background .2s; }
.eq-optgroup:has(input:checked) { border-color: var(--eq-teal); background: #F1F9F7; }
.eq-optgroup-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.eq-optgroup-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--eq-tint); color: var(--eq-teal); transition: background .2s, color .2s; }
.eq-optgroup-icon svg { width: 19px; height: 19px; }
.eq-optgroup:has(input:checked) .eq-optgroup-icon { background: var(--eq-teal); color: #fff; }
.eq-opts-stack { grid-template-columns: 1fr; gap: 8px; }
.eq-opts-stack .eq-opt-box { min-height: 46px; }
@media (max-width: 720px) { .eq-optgroups { grid-template-columns: 1fr; } }

/* File drop zone */
.eq-drop {
  display: flex; align-items: center; gap: 16px; padding: 18px; cursor: pointer;
  border: 1.5px dashed var(--eq-line-strong); border-radius: var(--eq-radius); background: #FAFBFE;
  transition: border-color .2s, background .2s;
}
.eq-drop:hover, .eq-drop.is-over { border-color: var(--eq-teal); background: var(--eq-tint); }
.eq-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eq-drop:focus-within { outline: 3px solid var(--eq-teal-bright); outline-offset: 2px; }
.eq-drop-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--eq-tint); color: var(--eq-teal); display: grid; place-items: center; }
.eq-drop-icon svg { width: 24px; height: 24px; }
.eq-drop.is-over .eq-drop-icon { background: #fff; }
.eq-drop-text { font-size: 16px; font-weight: 400; }
.eq-drop-text b { color: var(--eq-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.eq-drop-text span { display: block; font-size: 14px; color: var(--eq-muted); }
.eq-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eq-file { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; background: var(--eq-tint); border-radius: 10px; font-size: 15px; animation: eq-rise .3s var(--eq-ease) both; }
.eq-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.eq-file-size { flex: none; color: var(--eq-muted); font-size: 14px; }
.eq-file button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--eq-muted); }
.eq-file button:hover { background: #fff; color: var(--eq-error); }
.eq-file button svg { width: 14px; height: 14px; }

/* ---------- Summary ---------- */
.eq-summary { margin: 0 0 26px; border: 1.5px solid var(--eq-line); border-radius: var(--eq-radius); overflow: hidden; }
.eq-summary summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-weight: 700; font-size: 16px; background: #FAFBFE; }
.eq-summary summary::-webkit-details-marker { display: none; }
.eq-summary summary svg { width: 18px; height: 18px; color: var(--eq-muted); transition: transform .25s; }
.eq-summary[open] summary svg { transform: rotate(180deg); }
.eq .eq-summary dl { margin: 0; padding: 4px 16px 10px; }
.eq-summary-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid #EDF0F5; font-size: 15.5px; }
.eq-summary-row dt { color: var(--eq-muted); }
.eq .eq-summary-row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.eq-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--eq-teal-dark); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.eq-link:hover { color: var(--eq-teal-bright); }

/* ---------- Navigation ---------- */
.eq-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 32px; }
.eq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px;
  border-radius: 999px; border: 1.5px solid transparent; font-size: 17px; font-weight: 700; cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .25s, transform .2s var(--eq-ease);
}
.eq-btn svg { width: 18px; height: 18px; transition: transform .25s var(--eq-ease); }
.eq-btn-primary { background: var(--eq-teal); color: #fff; margin-left: auto; min-width: 190px; box-shadow: 0 8px 20px -8px rgba(0, 121, 107, .6); }
.eq-btn-primary:hover { background: var(--eq-teal-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(0, 121, 107, .65); }
.eq-btn-primary:hover svg { transform: translateX(4px); }
.eq-btn-primary:active { transform: none; }
.eq-btn-ghost { background: transparent; color: var(--eq-ink); border-color: var(--eq-line); padding: 0 22px; }
.eq-btn-ghost:hover { border-color: var(--eq-ink); }
.eq-btn-ghost:hover svg { transform: translateX(-3px); }
.eq-btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.eq-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: eq-spin .7s linear infinite; }
@keyframes eq-spin { to { transform: rotate(360deg); } }
.eq .eq-note { margin: 18px 0 0; font-size: 14px; color: var(--eq-muted); }
.eq-note a { color: var(--eq-teal-dark); }
.eq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eq-progress { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.eq-progress-bar { height: 8px; border-radius: 999px; background: var(--eq-tint); overflow: hidden; }
.eq-progress-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--eq-teal); transition: width .25s ease; }
.eq-progress-text { font-size: 14.5px; font-weight: 600; color: var(--eq-teal-dark); }
.eq-turnstile iframe { margin-top: 20px; }
/* Kept in the page but out of sight until the last step, so the check can run early */
.eq-ts-away { position: absolute; left: -9999px; }
.eq-alert { margin: 22px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--eq-error-tint); color: #7A1A14; font-size: 15.5px; }
.eq-alert a { color: inherit; font-weight: 700; }

/* ---------- Success ---------- */
.eq-done { text-align: center; padding: 12px 0 4px; animation: eq-rise .5s var(--eq-ease) both; }
.eq-done-badge { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--eq-tint); display: grid; place-items: center; animation: eq-pop .6s cubic-bezier(.3, 1.5, .5, 1) both; box-shadow: 0 0 0 10px rgba(232, 244, 242, .5); }
.eq-done-badge svg { width: 42px; height: 42px; color: var(--eq-teal); }
.eq-done-badge path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: eq-draw .5s .35s ease-out forwards; }
@keyframes eq-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eq-draw { to { stroke-dashoffset: 0; } }
.eq-done .eq-intro { max-width: 520px; margin-left: auto; margin-right: auto; }
.eq-done .eq-summary { text-align: left; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .eq-card { padding: 26px 20px 28px; border-radius: 16px; }
  .eq-heading { font-size: 25px; }
  .eq-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eq-role { min-height: 0; padding: 14px; }
  .eq-row { grid-template-columns: 1fr; gap: 26px; }
  .eq-summary-row { grid-template-columns: 1fr auto; }
  .eq-summary-row dt { grid-column: 1 / -1; margin-bottom: -8px; font-size: 14px; }
}
@media (max-width: 480px) {
  .eq { font-size: 16px; }
  .eq-opts { grid-template-columns: 1fr; }
  .eq-role { flex-direction: row; align-items: center; }
  .eq-roles { grid-template-columns: 1fr; }
  .eq-role-icon { flex: none; }
  .eq-step-label { font-size: 12.5px; }
  .eq-nav { flex-wrap: wrap; }
  .eq-btn-primary { flex: 1 1 auto; min-width: 0; }
  .eq-btn-ghost { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .eq *, .eq *::before, .eq *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
