.callback {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;

  width: min(1100px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
  margin-block: 8px 64px;
}

.callback-main {
  background: #0b0100;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
}
.callback-main .eyebrow { color: rgba(255, 255, 255, .7); }
.callback-main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 16px;
  color: #fff;
}
.callback-intro {
  color: rgba(255, 255, 255, .78);
  margin: 0 0 32px;
  max-width: 46ch;
}

.callback-step label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
/* The name sits on its own line above the number; the number keeps its
   button beside it. */
#callback-name {
  display: block;
  width: 100%;
  margin: 0 0 12px;
}

.callback-second-label {
  display: block;
}

.callback-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The country dropdown.

   Stockie hides every <select> on the page (`select { opacity: 0;
   visibility: hidden }` in the parent's style.css) and handleCustomSelect() in
   its main.js wraps each one in div.select and draws a fake list beside it.
   That fake list inherits the card's white text, so it opened as a blank white
   box. A real select is also the better control here: 60 countries, a native
   picker on phones, and type-to-jump. So the real one is shown and Stockie's
   copy hidden. Every rule names both shapes - .callback-row > select before
   Stockie's script runs, .callback-row > .select > select after - so it holds
   whichever way the page loads. */
.callback-row > select,
.callback-row > .select {
  /* A native select is as wide as its longest option ("United Arab Emirates
     +971"), which left the number box too narrow to type in. A fixed width
     fits the common names whole; a long one is clipped when closed, and the
     number box's placeholder shows the dial code anyway. */
  flex: 0 0 9.75rem;
  width: 9.75rem;
  max-width: 44%;
  min-width: 0;
}
.callback-row > .select {
  display: block;
  height: auto;
  line-height: normal;
  z-index: auto;
}
.callback-row .select-styled,
.callback-row .select-options {
  display: none !important;
}
.callback .callback-row select,
.callback .callback-row .select .select-hidden {
  display: block;
  position: static;
  opacity: 1;
  visibility: visible;
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 10px 0 12px;
  border: 1px solid #fff;
  border-radius: 2px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  line-height: normal;
  cursor: pointer;
}

/* Some browsers draw the open list in the select's own colours; the card's
   white text would make it white on white again. */
.callback .callback-row select option {
  color: #111;
  background-color: #fff;
}

.callback-row > input[type="tel"] { flex: 1 1 11ch; }

.callback-hint {
  margin: 10px 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}


.callback-row input,
#callback-name {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 2px;
}
.callback-row input:focus-visible,
.callback-row select:focus-visible,
#callback-name:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.callback-row > input,
.callback-row > .btn,
#callback-name { height: 54px; box-sizing: border-box; }
.callback-row > input,
#callback-name { padding-block: 0; }
.callback-row .btn {
  flex: 0 0 auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.callback-row .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.callback-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  font-size: .95rem;
}
.callback-status.is-ok    { color: var(--primary); }
.callback-status.is-error { color: #f2b8b5; }
.callback-note {
  margin: 8px 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

.callback-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.entry-content .callback-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  counter-reset: callback-step;
  padding: 0;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.entry-content .callback-steps li {
  counter-increment: callback-step;
  margin: 0;
  padding: 12px 0 0;
  border-top: 2px solid rgba(255, 255, 255, .16);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  transition: border-color .5s ease, color .5s ease;
}
.entry-content .callback-steps li::before {
  content: counter(callback-step, decimal-leading-zero) "\00a0\00a0";
}
.entry-content .callback-steps li.is-done { border-color: #e6bc56; color: rgba(255, 255, 255, .7); }
.entry-content .callback-steps li.is-current { border-color: #e6bc56; color: #fff; }

.callback-step[hidden],
.callback [data-via][hidden],
.callback [data-sms-offer][hidden],
.callback [data-sms-none][hidden] { display: none; }
.callback-step { animation: callback-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes callback-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.callback-step h2:focus { outline: none; }

.callback .callback-link {
  display: inline;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: #e6bc56;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.callback .callback-link:hover { color: #fff; }
.callback-intro strong { color: #fff; font-weight: 600; white-space: nowrap; }

.entry-content .callback-main .callback-note a:not(.btn) { color: rgba(255, 255, 255, .85); white-space: nowrap; }

.callback-otp {
  position: relative;
  max-width: 400px;
  margin-bottom: 24px;
}
.callback-otp input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: text;
}
.callback-otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 10px);
}
.callback-otp-cells span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  background: rgba(255, 255, 255, .05);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  transition: border-color .2s ease, background-color .2s ease;
}
.callback-otp-cells span.is-filled { border-color: rgba(255, 255, 255, .5); }
.callback-otp-cells span.is-active {
  border-color: #e6bc56;
  background: rgba(230, 188, 86, .08);
}
.callback-otp-cells span.is-active:empty::after {
  content: "";
  width: 2px;
  height: 28px;
  background: #e6bc56;
  animation: callback-caret 1s steps(1) infinite;
}
@keyframes callback-caret { 50% { opacity: 0; } }
.callback-otp.is-wrong .callback-otp-cells { animation: callback-shake .4s ease; }
.callback-otp.is-wrong .callback-otp-cells span { border-color: #f2b8b5; }
@keyframes callback-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.callback-code > .btn { min-width: 160px; height: 54px; margin: 0; }
.callback-code > .btn[disabled] { opacity: .6; cursor: progress; }
.callback-code .callback-status { margin-top: 16px; }

.callback-challenge { margin-top: 16px; }

.grecaptcha-badge { visibility: hidden; }

.callback-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 28px 0 32px;
  border-radius: 50%;
  background: #e6bc56;
  color: #0b0100;
}
.callback-icon svg { width: 32px; height: 32px; }
.callback-icon-phone { display: none; }
.callback-done.is-calling .callback-icon-phone { display: block; animation: callback-buzz 2.4s ease-in-out infinite; }
.callback-done.is-calling .callback-icon-check { display: none; }
.callback-done.is-calling .callback-icon::before,
.callback-done.is-calling .callback-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e6bc56;
  border-radius: 50%;
  animation: callback-ring 2.4s ease-out infinite;
}
.callback-done.is-calling .callback-icon::after { animation-delay: 1.2s; }
@keyframes callback-ring {
  from { transform: scale(1); opacity: .8; }
  to   { transform: scale(1.9); opacity: 0; }
}
@keyframes callback-buzz {
  0%, 30%, 100% { transform: rotate(0); }
  5%, 15%, 25%  { transform: rotate(-12deg); }
  10%, 20%      { transform: rotate(12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .callback-step,
  .callback-otp.is-wrong .callback-otp-cells,
  .callback-done.is-calling .callback-icon-phone { animation: none; }
  .callback-done.is-calling .callback-icon::after { display: none; }
  .callback-done.is-calling .callback-icon::before { animation: none; transform: scale(1.35); opacity: .5; }
}

.callback-details {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}
.callback-details h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 20px;
}
.callback-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.entry-content .callback-details li { margin-bottom: 18px; }
.callback-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.entry-content .callback a:not(.btn) { color: var(--ink); }
.entry-content .callback .btn { text-decoration: none; align-self: flex-start; margin-top: auto; }

@media (max-width: 800px) {
  .callback {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}
@media (max-width: 480px) {
  .callback-row { flex-direction: column; }

  /* flex-basis is a height once the row stacks, so the sizing set for the
     side-by-side layout has to come off or the number box grows to 11ch tall. */
  .callback-row > select,
  .callback-row > .select,
  .callback-row > input[type="tel"] {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

.callback-main .btn { background: #e6bc56; border-color: #e6bc56; color: #fff; }
.callback-main .btn:hover { background: #a8862c; border-color: #a8862c; }
.callback-status.is-ok { color: #e6bc56; }
