/* ==========================================================================
   Entries Grow — Book a Demo + Thank You pages
   Class names mirror the EntriesEquity pages so the shared form JS works as-is.
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(800px 420px at 85% -10%, rgba(225, 87, 30, .09), transparent 65%),
    radial-gradient(700px 420px at 0% 0%, rgba(38, 47, 99, .06), transparent 60%),
    linear-gradient(180deg, #FBFBFD 0%, #FFFFFF 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 28, 58, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 28, 58, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 25%, transparent 75%);
}
.page-hero > .container-wide { position: relative; }
.page-title { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.03em; margin: .25rem 0 0; }
.page-lede { font-size: 1.125rem; line-height: 1.7; color: var(--eg-body); margin-top: 1.25rem; max-width: 620px; }
.page-sub { font-size: 1rem; line-height: 1.7; color: var(--eg-muted); max-width: 620px; }

.demo-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .8rem; }
.demo-points li { display: flex; gap: .75rem; align-items: flex-start; font-size: .975rem; color: var(--eg-ink); }
.demo-points .tick { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--eg-orange-50); color: var(--eg-orange); font-size: .85rem; margin-top: .05rem; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
.stat-pill { background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-md); padding: .9rem 1rem; box-shadow: var(--eg-shadow); }
.stat-pill .num { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--eg-orange); line-height: 1.25; }
.stat-pill .lbl { font-size: .78rem; color: var(--eg-muted); margin-top: .2rem; }

/* ---------- Form card ---------- */
.form-card {
  background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius);
  box-shadow: var(--eg-shadow-lg); padding: clamp(1.5rem, 3vw, 2.4rem); position: relative;
  scroll-margin-top: calc(var(--eg-header-h) + 24px);
}
.form-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--eg-orange), var(--eg-orange-400));
}
.form-card-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: .4rem; }
.form-card-sub, .fc-sub { font-size: .9375rem; color: var(--eg-body); margin-bottom: 1.5rem; }

/* Steps */
.step-bar { display: flex; align-items: center; gap: .5rem; }
.step-item { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; border: 1.5px solid var(--eg-line); background: #fff; color: var(--eg-muted);
  transition: all .25s ease;
}
.step-dot.active { background: var(--eg-orange); border-color: var(--eg-orange); color: #fff; box-shadow: 0 0 0 4px rgba(225, 87, 30, .15); }
.step-dot.done, .step-dot.completed { background: var(--eg-success); border-color: var(--eg-success); color: #fff; }
.step-label { font-size: .8rem; font-weight: 600; color: var(--eg-muted); white-space: nowrap; }
.step-label.active { color: var(--eg-ink); }
.step-label.done, .step-label.completed { color: var(--eg-success); }
.step-line { flex: 1 1 auto; height: 2px; min-width: 16px; background: var(--eg-line); border-radius: 2px; transition: background .25s ease; }
.step-line.active, .step-line.done, .step-line.completed { background: var(--eg-orange); }

/* Panels */
.fc-panel { display: none; }
.fc-panel.is-active, .fc-panel.active { display: block; animation: fcIn .35s ease; }
@keyframes fcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fields */
.f-label { display: block; font-size: .85rem; font-weight: 600; color: var(--eg-ink); margin-bottom: .4rem; }
.f-label .req { color: var(--eg-orange); }
.f-input {
  display: block; width: 100%; height: 48px; padding: .6rem .9rem;
  font: 400 .95rem/1.4 "Inter", sans-serif; color: var(--eg-ink);
  background: #fff; border: 1.5px solid var(--eg-line); border-radius: var(--eg-radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease; appearance: none; -webkit-appearance: none;
}
.f-input::placeholder { color: #9AA2B6; }
.f-input:hover { border-color: #CFD4E0; }
.f-input:focus { outline: 0; border-color: var(--eg-orange); box-shadow: 0 0 0 4px rgba(225, 87, 30, .12); }
.f-select {
  padding-right: 2.2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234A5670' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px;
}
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #9AA2B6; font-size: .95rem; pointer-events: none; }
.input-icon .f-input { padding-left: 2.4rem; }
.phone-wrap { display: flex; gap: .5rem; }
.phone-code { flex: 0 0 118px; }
.phone-num { flex: 1 1 auto; min-width: 0; }
.field-error { display: none; font-size: .8rem; color: #D2372F; margin-top: .35rem; }
.f-group.has-error .field-error, .f-group.is-invalid .field-error, .f-group.error .field-error,
.f-input.is-invalid ~ .field-error, .f-input.error ~ .field-error { display: block; }
.f-group.has-error .f-input, .f-group.is-invalid .f-input, .f-group.error .f-input, .f-input.is-invalid, .f-input.error { border-color: #D2372F; }
#captchaWrap { margin-top: .9rem; }

.form-alert { display: none; margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--eg-radius-sm); font-size: .875rem; background: #FDECEC; color: #A42820; border: 1px solid #F6C9C6; }
.form-alert.show, .form-alert.is-visible, .form-alert.active { display: block; }
.form-alert.success { background: #E7F6F0; color: #0C6E4F; border-color: #BFE6D6; }

.btn-submit {
  width: 100%; height: 54px; border: 0; border-radius: var(--eg-radius-sm);
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem "Inter", sans-serif; color: #fff;
  background: var(--eg-orange); box-shadow: 0 8px 22px rgba(225, 87, 30, .28);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-submit:hover { background: var(--eg-orange-600); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-submit .spinner, .btn-spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-submit.loading .spinner, .btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text, .btn-submit.is-loading .btn-text { display: none !important; }
.loading > .btn-spin, .is-loading > .btn-spin { display: inline-block; }
.loading > .btn-icon, .is-loading > .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-trust { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .9rem 0 0; font-size: .8rem; color: var(--eg-muted); text-align: center; }
.form-trust i { color: var(--eg-success); }

/* OTP */
.fc-back { border: 0; background: none; padding: 0; margin-bottom: 1.25rem; font-size: .85rem; font-weight: 600; color: var(--eg-body); display: inline-flex; gap: .4rem; align-items: center; }
.fc-back:hover { color: var(--eg-orange); }
.fc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--eg-orange-50); color: var(--eg-orange); margin-bottom: 1rem; }
.fc-sub { margin-bottom: .35rem; }
.fc-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--eg-ink); margin-bottom: 1.4rem; }
.fc-phone-edit { border: 0; background: var(--eg-surface); width: 28px; height: 28px; border-radius: 8px; color: var(--eg-body); font-size: .75rem; }
.fc-phone-edit:hover { background: var(--eg-orange-50); color: var(--eg-orange); }
.otp-inputs { display: flex; gap: .75rem; }
.otp-box {
  width: 60px; height: 60px; text-align: center; font: 600 1.4rem "Poppins", sans-serif; color: var(--eg-ink);
  border: 1.5px solid var(--eg-line); border-radius: var(--eg-radius-sm); background: #fff;
}
.otp-box:focus { outline: 0; border-color: var(--eg-orange); box-shadow: 0 0 0 4px rgba(225, 87, 30, .12); }
.otp-box.filled { border-color: var(--eg-orange); background: var(--eg-orange-50); }
.otp-box.error, .otp-box.is-invalid { border-color: #D2372F; }
.otp-error { min-height: 1.2rem; margin-top: .6rem; font-size: .82rem; color: #D2372F; }
.otp-status { margin-top: .6rem; font-size: .82rem; color: var(--eg-success); }
.fc-resend { margin-top: 1rem; font-size: .85rem; color: var(--eg-muted); }
.fc-resend a { font-weight: 600; color: var(--eg-orange); }
.fc-resend a.disabled { color: var(--eg-muted); pointer-events: none; }

/* Done */
.fc-done-check { width: 76px; height: 76px; margin: .5rem auto 1.25rem; }
.fc-done-check svg { width: 100%; height: 100%; }
.fc-done-check circle { stroke: var(--eg-success); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.fc-done-check path { stroke: var(--eg-success); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fc-redirect { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .85rem; color: var(--eg-muted); }

/* ---------- Demo journey + why ---------- */
.demo-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: flow; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius);
  padding: 1.75rem 1.6rem; box-shadow: var(--eg-shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover { transform: translateY(-5px); box-shadow: var(--eg-shadow-lg); }
.flow-step::after {
  counter-increment: flow; content: "0" counter(flow);
  position: absolute; top: 1.5rem; right: 1.6rem;
  font: 700 1.9rem/1 "Poppins", sans-serif; color: transparent; -webkit-text-stroke: 1.5px #D8DCE7;
}
.flow-step h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; }
.flow-step p { font-size: .9375rem; line-height: 1.65; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.why-item {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem;
  background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-md);
  font-size: .9375rem; color: var(--eg-ink); font-weight: 500; line-height: 1.5;
}
.why-item i { color: var(--eg-orange); font-size: 1.15rem; }

/* ---------- Thank you ---------- */
#confettiCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1050; }
.ty-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ty-status {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: #E7F6F0; color: #0C6E4F; border: 1px solid #BFE6D6;
}
.ty-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--eg-success); box-shadow: 0 0 0 4px rgba(18, 147, 106, .18); animation: pulse 1.8s ease-in-out infinite; }
.ty-status.is-orange { background: var(--eg-orange-50); color: var(--eg-orange-600); border-color: var(--eg-orange-100); }
.ty-status.is-orange .ty-status-dot { background: var(--eg-orange); box-shadow: 0 0 0 4px rgba(225, 87, 30, .18); }
@keyframes pulse { 50% { transform: scale(.75); } }
.icon-ring {
  width: 76px; height: 76px; margin: 1.5rem 0 1.25rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: var(--eg-success);
  box-shadow: 0 0 0 10px rgba(18, 147, 106, .12), 0 14px 30px rgba(18, 147, 106, .25);
}
.icon-ring.is-orange { background: var(--eg-orange); box-shadow: 0 0 0 10px rgba(225, 87, 30, .12), 0 14px 30px rgba(225, 87, 30, .28); }
.ty-title { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.03em; }
.ty-title span { color: var(--eg-orange); }
.ty-sub { font-size: 1.0625rem; line-height: 1.7; color: var(--eg-body); max-width: 600px; margin-top: 1rem; }
.ty-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
#errorMessage { display: none; align-items: center; gap: .5rem; margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--eg-radius-sm); font-size: .875rem; background: #FDECEC; color: #A42820; border: 1px solid #F6C9C6; }
#errorMessage.show, #errorMessage.is-visible, #errorMessage.active { display: flex; }
.contact-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-chip {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1.1rem .75rem .75rem;
  background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-md); box-shadow: var(--eg-shadow);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-chip:hover { border-color: var(--eg-orange-100); transform: translateY(-2px); }
.chip-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--eg-orange-50); color: var(--eg-orange); font-size: 1.05rem; }
.contact-chip span:not(.chip-icon) { display: block; font-size: .75rem; color: var(--eg-muted); }
.contact-chip strong { display: block; font-size: .9375rem; color: var(--eg-ink); font-weight: 600; }
.ty-card { background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius); box-shadow: var(--eg-shadow-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.ns-title { display: flex; align-items: center; gap: .6rem; font: 600 1.125rem "Poppins", sans-serif; color: var(--eg-ink); margin-bottom: 1.25rem; }
.ns-title i { color: var(--eg-orange); }
.step-row { display: flex; gap: 1rem; position: relative; padding-bottom: 1.4rem; }
.step-row:last-child { padding-bottom: 0; }
.step-row:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--eg-line); }
.ty-card .step-num { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.ty-card .step-num.done { background: var(--eg-success); color: #fff; }
.ty-card .step-num.active { background: var(--eg-orange); color: #fff; box-shadow: 0 0 0 5px rgba(225, 87, 30, .15); }
.ty-card .step-num.pending { background: var(--eg-surface); color: var(--eg-muted); border: 1.5px solid var(--eg-line); }
.step-content h3 { font-size: 1rem; font-weight: 600; margin: .4rem 0 .25rem; }
.step-content p { font-size: .9rem; line-height: 1.6; margin-bottom: .5rem; }
.step-eta { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; }
.eta-done { background: #E7F6F0; color: #0C6E4F; }
.eta-active { background: var(--eg-orange-50); color: var(--eg-orange-600); }
.eta-muted { background: var(--eg-surface); color: var(--eg-muted); }
.email-badge { display: inline-flex; align-items: center; gap: .55rem; margin: .4rem 0 1.25rem; padding: .6rem 1rem; border-radius: var(--eg-radius-sm); background: var(--eg-orange-50); color: var(--eg-orange-600); font-weight: 600; word-break: break-all; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .65rem; font-size: .9375rem; color: var(--eg-ink); line-height: 1.5; }
.check-list i { color: var(--eg-success); margin-top: .1rem; }

/* Thank-you panel switching (panel 2 shown by thank-you.js) */
#panelSuccess { display: none; }
#panelSuccess.is-active, #panelSuccess.active, #panelSuccess.show { display: block; }
#panelThankYou.is-hidden, #panelThankYou.hidden { display: none; }
.back-home-btn { display: none; }
.back-home-btn.show, .is-success .back-home-btn { display: inline-flex; }
.is-success [data-schedule-demo] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .demo-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ty-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .demo-flow, .why-grid { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .otp-box { width: 54px; height: 54px; }
  .phone-code { flex-basis: 100px; }
  .ty-actions .btn { width: 100%; }
}
