/* RevCall Network — application forms (publisher wizard + advertiser form) */

.app-body { background: var(--bg-soft); }

/* ---------- Wizard layout ---------- */
.signup { padding: calc(var(--header-h) + 48px) 0 72px; min-height: 100vh; }
.signup-intro { max-width: 720px; margin-bottom: 36px; }
.signup-intro h1 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.signup-intro p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.signup-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

.step-aside { position: sticky; top: calc(var(--header-h) + 24px); isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: 28px; color: #fff; background: radial-gradient(360px 240px at 100% 0%, rgba(25, 181, 255, 0.32), transparent 65%), linear-gradient(160deg, #020a22 0%, #04123a 50%, #002068 100%); box-shadow: var(--shadow-lg); }
.step-aside::after { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; bottom: -150px; border-radius: 50%; z-index: -1; background: linear-gradient(140deg, #19b5ff, #006bfb); -webkit-mask: radial-gradient(circle closest-side, transparent 0 62%, #000 62.5%); mask: radial-gradient(circle closest-side, transparent 0 62%, #000 62.5%); opacity: 0.45; }
.step-count { display: inline-block; padding: 5px 12px; border-radius: 999px; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: #cfe4ff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.step-aside h2 { margin-top: 20px; color: #fff; font-size: 27px; font-weight: 800; line-height: 1.15; }
.step-aside p { margin-top: 12px; color: rgba(214, 228, 255, 0.78); font-size: 15px; }
.progress { margin-top: 24px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; border-radius: inherit; background: linear-gradient(90deg, #19b5ff, #2f8dff); transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.step-list { margin-top: 26px; display: grid; gap: 6px; }
.step-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14.5px; font-weight: 500; color: rgba(207, 228, 255, 0.55); }
.step-list .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, 0.22); flex: none; }
.step-list .n .icon { width: 13px; height: 13px; stroke-width: 3.2; display: none; }
.step-list li.current { color: #fff; }
.step-list li.current .n { border-color: #2f8dff; background: #006bfb; color: #fff; }
.step-list li.done { color: rgba(226, 236, 255, 0.85); }
.step-list li.done .n { border-color: transparent; background: rgba(61, 220, 151, 0.2); color: #3ddc97; }
.step-list li.done .n b { display: none; }
.step-list li.done .n .icon { display: block; }
.aside-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; gap: 10px; font-size: 13px; color: rgba(207, 228, 255, 0.7); line-height: 1.55; }
.aside-note .icon { width: 16px; height: 16px; margin-top: 2px; color: #6cc6ff; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; }
.form-step { display: none; }
.form-step.active { display: block; animation: step-in 0.3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.step-badge { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); flex: none; }
.step-head h2 { font-size: 22px; font-weight: 800; }
.step-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }

/* ---------- Fields ---------- */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.opt { font-weight: 500; color: var(--muted-2); }
.hint { margin-top: 7px; font-size: 13px; color: var(--muted-2); line-height: 1.5; }
.label-hint { margin: -2px 0 12px; font-size: 13.5px; color: var(--muted); }

.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea, .url-field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  font: inherit; font-size: 15.5px; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356627b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.field select:invalid, .field select.placeholder { color: var(--muted-2); }
.field input::placeholder, .field textarea::placeholder, .url-field input::placeholder { color: #9aa5b9; }
.field input:hover, .field select:hover, .field textarea:hover, .combo-btn:hover, .url-field input:hover { border-color: #b9c6dd; }
.field input:focus, .field select:focus, .field textarea:focus, .url-field input:focus, .combo-btn:focus-visible, .combo.open .combo-btn {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(0, 107, 251, 0.14);
}
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .combo-btn { border-color: var(--danger); }
.field.invalid input:focus, .field.invalid select:focus { box-shadow: 0 0 0 4px rgba(217, 45, 58, 0.12); }
.field.valid input:not(:focus) { border-color: #9bdcc0; }
.error { margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--danger); display: none; }
.field.invalid > .error, .group.invalid > .error { display: block; }

/* Honeypot: off-screen, never shown to people */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Phone input (intl-tel-input theme) ---------- */
:root {
  --iti-border-color: var(--line-2);
  --iti-hover-color: var(--blue-50);
  --iti-icon-color: var(--muted);
  --iti-spacer-horizontal: 12px;
  --iti-flag-width: 22px;
}
.iti { display: block; width: 100%; }
.iti__selected-country { border-radius: 10px 0 0 10px !important; }
.iti__selected-country-primary { padding-left: 14px; }
.iti__selected-dial-code { font-weight: 600; color: var(--ink); font-size: 15px; }
.iti__country-selector, .iti__dropdown-content { border-radius: 12px !important; border: 1px solid var(--line-2) !important; box-shadow: var(--shadow-lg) !important; overflow: hidden; margin-top: 6px; font-size: 14.5px; }
.iti__search-input { height: 44px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; font-size: 14.5px !important; }
.iti__country { padding-top: 9px !important; padding-bottom: 9px !important; }
.iti__country-name { color: var(--ink); }
.iti__dial-code, .iti__country .iti__dial-code { color: var(--muted-2); }
.iti__flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 22, 50, 0.12); }

/* ---------- Country combobox ---------- */
.combo { position: relative; }
.combo-btn { width: 100%; height: 48px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 15.5px; color: var(--ink); text-align: left; transition: border-color 0.15s, box-shadow 0.15s; }
.combo-btn .combo-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-btn .combo-label.placeholder { color: #9aa5b9; }
.combo-btn > .icon { color: var(--muted); width: 18px; height: 18px; transition: transform 0.2s; }
.combo.open .combo-btn > .icon { transform: rotate(180deg); }
.combo-flag { flex: none; }
.combo-flag.empty { display: none; }
.combo-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; }
.combo.open .combo-panel { display: block; }
.combo-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.combo-search .icon { width: 17px; height: 17px; color: var(--muted-2); }
.combo-search input { flex: 1; height: 44px !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; font-size: 14.5px !important; background: transparent; }
.combo-list { max-height: 248px; overflow-y: auto; padding: 6px; }
.combo-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.combo-list li:hover, .combo-list li.active { background: var(--blue-50); }
.combo-list li[aria-selected="true"] { font-weight: 600; color: var(--blue-700); }
.combo-empty { padding: 16px; text-align: center; font-size: 14px; color: var(--muted-2); }

/* ---------- Chips (multi-select) ---------- */
.group { margin-top: 26px; }
.group:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s; user-select: none; }
.chip span .icon { width: 15px; height: 15px; stroke-width: 3; display: none; }
.chip:hover span { border-color: var(--blue-400); }
.chip input:checked + span { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); font-weight: 600; box-shadow: 0 0 0 1px var(--blue-600) inset; }
.chip input:checked + span .icon { display: block; }
.chip input:focus-visible + span { outline: 3px solid rgba(0, 107, 251, 0.45); outline-offset: 2px; }
.group.invalid .chips .chip span { border-color: #f0a9ae; }
.other-input { margin-top: 12px; max-width: 420px; }

/* ---------- Promotional method URLs ---------- */
.url-groups { margin-top: 18px; display: grid; gap: 14px; }
.url-groups:empty { display: none; }
.url-group { padding: 16px 18px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); animation: step-in 0.25s ease; }
.url-group > label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.url-rows { display: grid; gap: 8px; }
.url-row { display: flex; gap: 8px; align-items: center; }
.url-field { position: relative; flex: 1; min-width: 0; }
.url-field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.url-field input { padding-left: 38px !important; }
.url-remove { width: 44px; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); display: grid; place-items: center; flex: none; transition: color 0.15s, border-color 0.15s; }
.url-remove:hover { color: var(--danger); border-color: #f0a9ae; }
.url-remove .icon { width: 17px; height: 17px; }
.add-url { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--blue-600); }
.add-url:hover { color: var(--blue-700); }
.add-url .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.url-group.invalid { border-color: #f0a9ae; }
.url-group.invalid .url-field input { border-color: var(--danger); }
.url-group .error { margin-top: 8px; }
.url-group.invalid .error { display: block; }

/* ---------- Traffic note + checkboxes ---------- */
.note-card { padding: 20px 22px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); }
.note-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.note-card h3 .icon { color: var(--blue-600); }
.note-card p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.check { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #b9c6dd; background: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; transition: background 0.15s, border-color 0.15s; }
.check .box .icon { width: 14px; height: 14px; stroke-width: 3.4; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; }
.check input:checked + .box { background: var(--blue-600); border-color: var(--blue-600); }
.check input:checked + .box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid rgba(0, 107, 251, 0.45); outline-offset: 2px; }
.check b { color: var(--ink); font-weight: 600; }
.check-field.invalid .box { border-color: var(--danger); }
.check-field .error { margin-left: 34px; }
.check-field.invalid .error { display: block; }

/* ---------- Nav buttons + status ---------- */
.form-nav { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-nav .spacer { flex: 1; }
.form-status { margin-top: 18px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #8f1d27; background: var(--danger-bg); border: 1px solid #f7c6ca; display: none; }
.form-status.show { display: block; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.secure-line { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted-2); }
.secure-line .icon { width: 14px; height: 14px; }

/* ---------- Success ---------- */
.success { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 56px 40px; animation: step-in 0.35s ease; }
.success-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #12b76a, #0a8f57); box-shadow: 0 0 0 10px rgba(18, 183, 106, 0.12); }
.success-ico .icon { width: 32px; height: 32px; stroke-width: 3; }
.success h1 { margin-top: 28px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.success > p { margin-top: 12px; font-size: 17px; color: var(--muted); }
.next-list { margin: 30px auto 0; max-width: 460px; text-align: left; display: grid; gap: 14px; }
.next-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.next-list .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); flex: none; }
.success .btn { margin-top: 34px; }

/* ---------- Advertiser page ---------- */
.adv-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-apply { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.adv-apply-copy { position: sticky; top: calc(var(--header-h) + 24px); }
.adv-apply-copy h2 { margin-top: 18px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.adv-apply-copy > p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.tick-list { margin-top: 26px; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.tick-list .icon { width: 18px; height: 18px; margin-top: 3px; color: #12b76a; stroke-width: 2.8; }

@media (max-width: 980px) {
  .signup-grid { grid-template-columns: 1fr; }
  .step-aside { position: relative; top: auto; padding: 24px; }
  .step-aside h2 { font-size: 23px; }
  .step-list, .aside-note { display: none; }
  .adv-apply { grid-template-columns: 1fr; gap: 32px; }
  .adv-apply-copy { position: static; }
  .adv-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .signup { padding-top: calc(var(--header-h) + 28px); }
  .form-card { padding: 22px 18px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-nav .btn { flex: 1; }
  .success { padding: 40px 22px; }
  .chip span { font-size: 14px; padding: 8px 13px; }
}
