/* Enquiry drawer: form, email verification and thank-you steps */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form .form-control.is-invalid { border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(242, 29, 53, .16); }
.enquiry-alert { margin: 0 0 14px; padding: 12px 14px; color: #ffd5da; font-size: .9375rem; line-height: 1.5; border: 1px solid rgba(242, 29, 53, .4); border-radius: 12px; background: rgba(242, 29, 53, .1); }
.otp-setup-notice { display: grid; gap: 6px; margin: 0 0 14px; padding: 14px; color: #f2c9ce; font-size: .9375rem; line-height: 1.55; border: 1px solid rgba(242, 29, 53, .28); border-radius: 12px; background: rgba(242, 29, 53, .09); }
.otp-setup-notice strong { color: #fff; font-weight: 600; }
.otp-email-fallback { justify-self: start; padding: 0; color: #fff; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; background: transparent; border: 0; }
.drawer-submit .spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: enqSpin .7s linear infinite; }
.btn-red.drawer-submit:disabled { color: #fff; border-color: var(--red); background: var(--red); opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Step shell */
.otp-step, .done-step { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 10px 0 20px; text-align: center; animation: enqStepIn .6s var(--ease) both; }
.otp-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(34px); pointer-events: none; }
.otp-blob--1 { top: 30px; left: -30px; width: 190px; height: 190px; background: rgba(242, 29, 53, .45); animation: enqBlob 9s ease-in-out infinite; }
.otp-blob--2 { left: calc(50% - 90px); bottom: 6px; width: 180px; height: 120px; background: rgba(255, 255, 255, .34); animation: enqBlob 11s ease-in-out infinite reverse; }
.otp-sent { margin: 0 0 18px; color: var(--text-dim); font-size: 1rem; line-height: 1.5; }
.otp-sent strong { display: block; color: #fff; font-weight: 600; overflow-wrap: anywhere; }

/* OTP motion graphic */
.otp-art { width: min(100%, 250px); margin: 4px auto 6px; }
.otp-art__svg { width: 100%; height: auto; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.oa-ring { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 9; transform-origin: 120px 100px; animation: enqSpin 40s linear infinite; }
.oa-ring--2 { animation-direction: reverse; animation-duration: 28s; }
.oa-pulse { fill: rgba(242, 29, 53, .18); transform-origin: 120px 100px; animation: enqPulse 2.8s ease-out infinite; }
.oa-float { animation: enqFloat 4.2s ease-in-out infinite; }
.oa-letter rect:first-child { fill: #f4f4f6; }
.oa-dot { fill: var(--red); animation: enqBlink 1.6s ease-in-out infinite; }
.oa-dot--2 { animation-delay: .2s; }
.oa-dot--3 { animation-delay: .4s; }
.oa-line { fill: #c9c9cf; }
.oa-letter { animation: enqLetter 4.2s ease-in-out infinite; }
.oa-body { fill: #1b1b20; stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.oa-front { stroke: rgba(255, 255, 255, .5); stroke-width: 2; }
.oa-flap { fill: var(--red); stroke: #ff5c6f; stroke-width: 2; transform-box: fill-box; transform-origin: top; animation: enqFlap 4.2s ease-in-out infinite; }
.oa-shield { transform-box: fill-box; transform-origin: center; animation: enqShield 4.2s ease-in-out infinite; }
.oa-shield__body { fill: #fff; stroke: rgba(242, 29, 53, .5); stroke-width: 2; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.oa-shield__check { stroke: var(--red); stroke-width: 5; stroke-dasharray: 40; animation: enqCheck 4.2s ease-in-out infinite; }
.oa-spark { stroke: #fff; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: enqTwinkle 2.6s ease-in-out infinite; }
.oa-spark--2 { animation-delay: .8s; }
.oa-spark--3 { animation-delay: 1.6s; }

/* OTP input boxes */
.otp-test { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 14px; color: #ffe4a8; font-size: .8125rem; border: 1px dashed rgba(255, 196, 80, .6); border-radius: 999px; background: rgba(255, 196, 80, .08); }
.otp-test strong { color: #fff; font-weight: 600; letter-spacing: .18em; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: 100%; }
.otp-box {
  width: 100%; aspect-ratio: 1 / 1.14; min-width: 0; padding: 0; color: #fff; font-family: var(--font-head); font-size: 1.65rem; font-weight: 600; text-align: center; caret-color: var(--red);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; outline: 0; background: var(--ink-3); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background .2s;
}
.otp-box:focus { border-color: var(--red); background: #1b1b20; box-shadow: 0 0 0 4px rgba(242, 29, 53, .2); transform: translateY(-3px) scale(1.05); }
.otp-box.is-filled { border-color: rgba(255, 255, 255, .5); animation: enqPop .3s var(--ease); }
.otp-box:disabled { opacity: .45; cursor: not-allowed; }
.otp-boxes.is-error { animation: enqShake .5s ease; }
.otp-boxes.is-error .otp-box { border-color: var(--red); }
.otp-error { width: 100%; margin-top: 12px; color: #ff9aa6; font-size: .9375rem; line-height: 1.45; }
.otp-step .drawer-submit { width: 100%; margin-top: 18px; }

/* Timer */
.otp-timer { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 16px; overflow: hidden; color: var(--text-dim); font-size: .9375rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.otp-timer i { color: var(--red); }
.otp-timer strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.otp-timer__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); transform: scaleX(var(--p, 1)); transform-origin: left; transition: transform 1s linear; }
.otp-expired { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; color: var(--text-dim); font-size: .9375rem; animation: enqStepIn .4s var(--ease) both; }
.otp-resend { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; color: #fff; font: inherit; font-weight: 600; border: 1px solid rgba(242, 29, 53, .6); border-radius: 999px; background: rgba(242, 29, 53, .16); transition: background .25s, transform .25s var(--ease); }
.otp-resend:hover { background: var(--red); transform: translateY(-2px); }
.otp-resend i { transition: transform .5s var(--ease); }
.otp-resend:hover i { transform: rotate(180deg); }

/* Liquid glass back button */
.glass-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 26px; overflow: hidden; color: #fff; font: inherit; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .14));
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.12); backdrop-filter: blur(16px) saturate(1.8) brightness(1.12);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -10px 18px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 14px 34px -10px rgba(0, 0, 0, .6), 0 4px 10px rgba(242, 29, 53, .12);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s, background .4s;
}
.glass-btn::before { content: ""; position: absolute; left: 8%; right: 8%; top: 3px; height: 46%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }
.glass-btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.glass-btn:hover { transform: translateY(-3px) scale(1.04); background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .2)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .85), inset 0 -10px 18px rgba(255, 255, 255, .1), 0 20px 40px -10px rgba(0, 0, 0, .65), 0 6px 18px rgba(242, 29, 53, .28); }
.glass-btn:hover::after { animation: enqSheen .9s ease; }
.glass-btn:active { transform: scale(.96); }
.glass-btn i { position: relative; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.glass-btn span { position: relative; }
.glass-btn:hover i { transform: translateX(-5px); }

/* Thank-you */
.ty-stage { position: relative; width: 240px; height: 240px; margin: 0 auto 6px; }
.ty-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ty-trail__path { stroke: rgba(255, 255, 255, .45); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 9; animation: tyTrail 1.5s cubic-bezier(.5, 0, .3, 1) both, tyTrailFade .8s 1.6s ease forwards; }
.ty-plane { position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; font-size: 1.5rem; offset-path: path("M12 206C16 70 190 30 120 112"); offset-rotate: auto 45deg; offset-distance: 100%; opacity: 0; animation: tyFly 1.5s cubic-bezier(.5, 0, .3, 1) both; filter: drop-shadow(0 6px 10px rgba(242, 29, 53, .6)); }
.ty-badge { position: absolute; left: 84px; top: 76px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(242, 29, 53, .16), 0 20px 44px -8px rgba(242, 29, 53, .7); animation: tyBadge .7s cubic-bezier(.34, 1.56, .64, 1) 1.35s both; }
.ty-badge svg { width: 52px; height: 52px; }
.ty-badge__ring { stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-dasharray: 145; animation: tyDraw .6s ease 1.5s both; }
.ty-badge__check { stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; animation: tyDrawShort .45s ease 1.75s both; }
.ty-ripple { position: absolute; left: 84px; top: 76px; width: 72px; height: 72px; border: 2px solid var(--red); border-radius: 50%; opacity: 0; animation: tyRipple 1.4s ease-out 1.4s forwards; }
.ty-ripple--2 { animation-delay: 1.65s; }
.ty-confetti { position: absolute; left: 120px; top: 112px; }
.ty-confetti i { position: absolute; width: 8px; height: 14px; border-radius: 2px; background: var(--c, #f21d35); opacity: 0; animation: tyBurst 1.5s cubic-bezier(.1, .7, .2, 1) 1.45s forwards; }
.ty-confetti i:nth-child(1) { --x: -96px; --y: -92px; --r: 220deg; }
.ty-confetti i:nth-child(2) { --x: -52px; --y: -118px; --r: -160deg; --c: #fff; }
.ty-confetti i:nth-child(3) { --x: 0px; --y: -128px; --r: 180deg; --c: #ff6677; }
.ty-confetti i:nth-child(4) { --x: 54px; --y: -116px; --r: 260deg; }
.ty-confetti i:nth-child(5) { --x: 100px; --y: -86px; --r: -200deg; --c: #fff; }
.ty-confetti i:nth-child(6) { --x: 120px; --y: -36px; --r: 300deg; --c: #ff6677; }
.ty-confetti i:nth-child(7) { --x: 118px; --y: 26px; --r: -240deg; }
.ty-confetti i:nth-child(8) { --x: 86px; --y: 76px; --r: 200deg; --c: #fff; }
.ty-confetti i:nth-child(9) { --x: 34px; --y: 104px; --r: -180deg; --c: #ff6677; }
.ty-confetti i:nth-child(10) { --x: -30px; --y: 98px; --r: 240deg; }
.ty-confetti i:nth-child(11) { --x: -88px; --y: 70px; --r: -260deg; --c: #fff; }
.ty-confetti i:nth-child(12) { --x: -112px; --y: 18px; --r: 160deg; --c: #ff6677; }
.ty-confetti i:nth-child(13) { --x: -118px; --y: -42px; --r: -300deg; }
.ty-confetti i:nth-child(14) { --x: -70px; --y: -70px; --r: 120deg; --c: #fff; }
.ty-title { margin: 0 0 12px; font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.ty-word { display: inline-block; animation: tyWord .7s var(--ease) both; }
.ty-title .ty-word:nth-child(1) { animation-delay: 1.9s; }
.ty-title .ty-word:nth-child(2) { animation-delay: 2s; }
.ty-title .ty-word:nth-child(3) { animation-delay: 2.1s; }
.ty-title .ty-word:nth-child(4) { animation-delay: 2.2s; }
.ty-word--name { color: var(--red); overflow-wrap: anywhere; }
.ty-copy, .ty-test { max-width: 360px; margin: 0 0 18px; color: var(--text-dim); line-height: 1.65; animation: tyWord .7s var(--ease) 2.4s both; }
.ty-copy strong { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.ty-test { padding: 10px 14px; color: #ffe4a8; font-size: .875rem; border: 1px dashed rgba(255, 196, 80, .6); border-radius: 12px; background: rgba(255, 196, 80, .08); animation-delay: 2.5s; }
.ty-close { animation: tyWord .7s var(--ease) 2.6s both; }
.done-step:not(.is-playing) .ty-stage *, .done-step:not(.is-playing) .ty-word, .done-step:not(.is-playing) .ty-copy, .done-step:not(.is-playing) .ty-close { animation: none; }

@keyframes enqSpin { to { transform: rotate(360deg); } }
@keyframes enqStepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes enqBlob { 50% { transform: translate(34px, -26px) scale(1.18); } }
@keyframes enqPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes enqFloat { 50% { transform: translateY(-7px); } }
@keyframes enqLetter { 0%, 18% { transform: translateY(8px); } 42%, 72% { transform: translateY(-20px); } 100% { transform: translateY(8px); } }
@keyframes enqFlap { 0%, 12% { transform: scaleY(1); } 30%, 78% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
@keyframes enqShield { 0%, 40% { transform: scale(.82); opacity: .6; } 56%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(.82); opacity: .6; } }
@keyframes enqCheck { 0%, 44% { stroke-dashoffset: 40; } 62%, 100% { stroke-dashoffset: 0; } }
@keyframes enqBlink { 50% { opacity: .25; } }
@keyframes enqTwinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .3; } }
@keyframes enqPop { 50% { transform: scale(1.12); } }
@keyframes enqShake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes enqSheen { from { left: -60%; opacity: 1; } to { left: 130%; opacity: 1; } }
@keyframes tyFly { 0% { offset-distance: 0%; opacity: 0; transform: scale(.7); } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; transform: scale(.5); } }
@keyframes tyTrail { from { stroke-dashoffset: 300; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes tyTrailFade { to { opacity: 0; } }
@keyframes tyBadge { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tyDraw { from { stroke-dashoffset: 145; } to { stroke-dashoffset: 0; } }
@keyframes tyDrawShort { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes tyRipple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tyBurst { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 46px)) rotate(var(--r)) scale(1); } }
@keyframes tyWord { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (max-width: 420px) { .otp-boxes { gap: 7px; } .otp-box { font-size: 1.4rem; border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .otp-step *, .done-step *, .otp-step, .done-step, .glass-btn::after { animation: none !important; }
  .ty-plane, .ty-confetti, .ty-ripple { display: none; }
}
