/* ============================================================
   Call Back Form — TOK
   Editorial / luxury aesthetic: cream card on dark navy,
   serif headline, gold accents, OTP verification.
   ============================================================ */

/* Scoped to shortcode wrapper only — does NOT style page body/html */
.tok-callback-form-wrap {
  --navy: #0a1a2f;
  --navy-2: #0d2240;
  --cream: #fbf6ec;
  --cream-deep: #f5ecdc;
  --cream-input: #faf2e3;
  --line: #e6dcc7;
  --line-strong: #d8cbb0;
  --ink: #0a1a2f;
  --ink-soft: #586273;
  --ink-mute: #8a8676;
  --gold: #c89b3c;
  --gold-deep: #b0852b;
  --gold-soft: #e7c97a;
  --mint: #cfe7e3;
  --mint-ink: #1f5e57;
  --green: #2ea36b;
  --red: #c2412c;
  --radius-card: 22px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.55),
                 0 8px 22px -8px rgba(0, 0, 0, 0.35);

  background: transparent !important;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tok-callback-form-wrap,
.tok-callback-form-wrap *,
.tok-callback-form-wrap *::before,
.tok-callback-form-wrap *::after {
  box-sizing: border-box;
}

.tok-callback-form-wrap.zf-backgroundBg {
  display: block;
  background: transparent !important;
}

.zf-templateWidth {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Card ---------- */
.tok-callback-form-wrap form.tok-zoho-api-form,
.tok-callback-form-wrap #tok-callback-form,
.tok-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 18px 22px 10px;
  box-shadow: var(--shadow-card);
  overflow: visible;
}

/* "FREE CONSULT" gold tab */
.tok-callback-form-wrap form.tok-zoho-api-form::before,
.tok-callback-form-wrap #tok-callback-form::before,
.tok-card::before {
  content: "FREE CONSULT";
  position: absolute;
  top: -18px;
  right: 22px;
  background: linear-gradient(180deg, #d6a647 0%, #b0852b 100%);
  color: #1a1408;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.35);
}

.zf-templateWrapper { width: 100%; }

/* ---------- Header ---------- */
.zf-tempHeadBdr,
.zf-tempHeadContBdr {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tok-callback-form-wrap .zf-tempHeadContBdr { margin-bottom: 12px; }
.zf-clearBoth { clear: both; }

.tok-pill {
  display: inline-block;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.tok-headline {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.18;
  color: #0f1b3d;
  letter-spacing: -0.01em;
}

.tok-headline-italic {
  font-style: italic;
  font-weight: 500;
  color: #c9a24b;
  white-space: nowrap;
}

.tok-subline {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.tok-subline strong {
  color: var(--ink);
  font-weight: 700;
}

.tok-form-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--cream-deep);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  line-height: 1.5;
}

.tok-form-note strong {
  color: var(--ink);
}

.tok-zoho-embed {
  width: 100%;
  text-align: center;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}

#zf_div_vaZJC3ol-DRaw1Jalg7C9goyVgk8ZRfm2ceVgBGP4C4 {
  width: 100%;
}

#zf_div_vaZJC3ol-DRaw1Jalg7C9goyVgk8ZRfm2ceVgBGP4C4 iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  background: var(--cream);
}

/* ---------- Form body (legacy custom fields — unused when iframe-only) ---------- */
.zf-subContWrap { padding: 0; }
.zf-subContWrap > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zf-tempFrmWrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.zf-labelName {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 1px;
  letter-spacing: 0.005em;
}

.zf-important {
  color: var(--red);
  font-style: normal;
  margin-left: 2px;
}

.zf-tempContDiv { width: 100%; }

/* ---------- Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #fdfbf4;
  border: 1px solid #e6e2d6;
  border-radius: var(--radius-input);
  padding: 8px 12px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #0f1b3d;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
 color: #0f1b3d;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.18);
  background: #fff;
}

.tok-callback-form-wrap textarea {
  min-height: 55px;
  resize: vertical;
  font-family: "Manrope", sans-serif;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230a1a2f' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  padding-right: 36px;
  cursor: pointer;
}

/* Name row: First/Last side by side */
.tok-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tok-name-grid > div { min-width: 0; }

/* ---------- Phone field (country code + number + Get OTP, single row) ---------- */
.zf-phwrapper {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: stretch;
}

.zf-phwrapper.tok-phwrapper {
  grid-template-columns: 78px 1fr auto;
}

.tok-otp-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}


.tok-callback-form-wrap .tok-form-success {
  margin-top: 10px;
  text-align: center;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.tok-form-api-error {
  margin-top: 10px;
  text-align: center;
}

.tok-phone-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.zf-phwrapper > span { display: block; min-width: 0; }
.zf-phwrapper label {
  display: none;
}
.zf-phwrapper input { width: 100%; }

/* Inline "Get OTP" button — sits at end of phone row */
.tok-get-otp {
  background: var(--navy);
  color: var(--cream);
  border: 0;
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 14px;
  border-radius: var(--radius-input);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
}
.tok-get-otp:hover { background: var(--navy-2); }
.tok-get-otp:active { transform: translateY(1px); }
.tok-get-otp:disabled {
  background: #b9b1a0;
  cursor: not-allowed;
}
.tok-get-otp.is-sent {
  background: transparent;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
}

/* ---------- Error messages ---------- */
.zf-errorMessage {
  color: var(--red);
  font-size: 12px;
  margin: 6px 0 0;
  font-weight: 600;
}

/* ---------- OTP block ---------- */
.tok-callback-form-wrap .tok-otp-box {
  margin-top: 8px;
  padding: 10px 12px 10px;
  background: var(--cream-deep);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-input);
  display: none;
}
.tok-otp-box.is-open { display: block; }

.tok-otp-label {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tok-otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.tok-otp-inputs input {
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 10px 4px;
  background: #fff;
}

.tok-otp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.tok-otp-status {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.tok-otp-status.is-error { color: var(--red); }
.tok-otp-status.is-success { color: var(--green); }

.tok-otp-verify {
  background: var(--navy);
  color: var(--cream);
  border: 0;
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.tok-otp-verify:hover { background: var(--navy-2); }
.tok-otp-verify:active { transform: translateY(1px); }
.tok-otp-verify:disabled {
  background: #b9b1a0;
  cursor: not-allowed;
}

.tok-otp-resend {
  background: none;
  border: 0;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.tok-otp-resend:disabled {
  color: var(--ink-mute);
  cursor: not-allowed;
}

.tok-otp-verified-pill {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(46, 163, 107, 0.12);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.tok-otp-verified-pill.is-on { display: inline-flex; }
.tok-otp-verified-pill::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 6.5L5 8.5 9 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Submit button ---------- */
.tok-callback-form-wrap .zf-fmFooter {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tok-callback-form-wrap .zf-submitColor {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c9a24b;
  color: #1a1200;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow:  box-shadow: 0 10px 24px rgba(201, 162, 75, .35);
  transition: transform 0.05s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.zf-submitColor:hover { filter: brightness(1.04); }
.zf-submitColor:active { transform: translateY(1px); }
.zf-submitColor:disabled,
.zf-submitColor.is-locked {
    cursor: not-allowed;
    box-shadow: 0 10px 24px rgba(201, 162, 75, .35);
    filter: none;
}
.zf-submitColor .label-locked,
.zf-submitColor .label-unlocked { display: none; }
.zf-submitColor.is-locked .label-locked { display: inline-flex; align-items: center; gap: 8px; }
.zf-submitColor:not(.is-locked) .label-unlocked { display: inline; }
.zf-submitColor .lock-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

/* ---------- Footer note ---------- */
.tok-callback-form-wrap .tok-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tok-foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 163, 107, 0.18);
}
.tok-foot strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .tok-callback-form-wrap form.tok-zoho-api-form,
  .tok-callback-form-wrap #tok-callback-form,
  .tok-card { padding: 20px 18px 16px; }
  .tok-headline { font-size: 25px; }
  .tok-otp-inputs input { font-size: 18px; }
  .zf-phwrapper { grid-template-columns: 78px 1fr; }
}
