/* apply.css — Revalo publisher application (affiliates.revalomedia.co.uk)
   Brand colours taken from the supplied logo: #103e4c / #3fc0e8 */

:root{
  --navy:#103e4c;
  --navy-2:#0b2c37;
  --cyan:#3fc0e8;
  --cyan-dark:#2aa6cd;
  --ink:#12222a;
  --muted:#5f7480;
  --line:#dfe6ea;
  --bg:#f4f7f9;
  --card:#fff;
  --err:#c4373b;
  --ok:#12855f;
  --radius:12px;
}


/* ---------- isolation ----------
   This page is served inside a MODX template that loads the main site's
   stylesheet as well. These resets stop that stylesheet leaking into the
   form; without them list items, buttons and inputs inherit site styling. */
/* :where() has ZERO specificity, so these resets neutralise the host
   stylesheet without ever outranking the component rules further down.
   That was the bug: `.wrap ul` (two selectors) was beating `.steps-list`
   (one) and wiping its margin. */
:where(.wrap ul, .wrap ol){list-style:none;margin:0;padding:0;}
:where(.wrap li){background:none;border:0;box-shadow:none;padding:0;margin:0;}
form button{font-family:inherit;}
form input,form select,form textarea{font-family:inherit;margin:0;}
.chips label{margin:0;}
.check{margin:0 0 13px;}

*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
.wrap{max-width:820px;margin:0 auto;padding:0 20px;}

/* ---------- header ---------- */
.site-head{background:#fff;border-bottom:1px solid var(--line);}
.head-inner{display:flex;align-items:center;justify-content:space-between;height:76px;}
.brand img{height:38px;width:auto;}
.head-note{font-size:.82rem;font-weight:600;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;}

/* ---------- intro ---------- */
.intro{padding:44px 0 26px;}
.intro h1{font-size:clamp(1.7rem,4vw,2.3rem);font-weight:800;letter-spacing:-.02em;margin:0 0 10px;color:var(--navy);}
.intro p{margin:0;color:var(--muted);font-size:1.02rem;max-width:60ch;}

/* ---------- progress ---------- */
.steps-bar{margin-bottom:22px;}
.steps-track{height:4px;background:var(--line);border-radius:99px;overflow:hidden;}
.steps-track span{display:block;height:100%;width:20%;background:var(--cyan);border-radius:99px;transition:width .3s ease;}
.steps-list{display:flex;justify-content:space-between;list-style:none;margin:10px 0 0;padding:0;
  font-size:.78rem;color:var(--muted);font-weight:500;}
/* Reset aggressively: the host site's stylesheet also targets `li` and was
   turning these into white cards. Everything here is explicit so nothing
   outside this file can leak in. */
.steps-list li{
  all:unset;
  display:block;
  flex:1 1 0;
  text-align:center;
  font-size:.78rem;
  font-weight:500;
  color:var(--muted);
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  padding:0;
  margin:0;
  list-style:none;
  line-height:1.4;
  cursor:default;
}
.steps-list li::before,.steps-list li::after{content:none;}
.steps-list li.on{color:var(--navy);font-weight:700;}
.steps-list li.done{color:var(--cyan-dark);}
@media(max-width:560px){ .steps-list li:not(.on){display:none;} .steps-list{justify-content:center;} }

/* ---------- form shell ---------- */
form{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px;box-shadow:0 10px 30px -22px rgba(16,62,76,.5);}
.step{display:none;}
.step.on{display:block;}
.step-title{font-size:1.22rem;font-weight:700;margin:0 0 22px;color:var(--navy);}

.f{margin-bottom:18px;}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media(max-width:640px){ .row2{grid-template-columns:1fr;gap:0;} }

label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px;}
label em{color:var(--cyan-dark);font-style:normal;}
.hint{display:block;font-size:.8rem;color:var(--muted);margin-top:5px;}
.hint-inline{font-weight:400;color:var(--muted);font-size:.82rem;}

input[type=text],input[type=email],input[type=url],input[type=tel],select,textarea{
  width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:8px;
  font:inherit;font-size:.97rem;color:var(--ink);background:#fbfdfe;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea{resize:vertical;}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--cyan);box-shadow:0 0 0 4px rgba(63,192,232,.16);
}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:36px;}

/* invalid state */
.f.bad input,.f.bad select,.f.bad textarea{border-color:var(--err);box-shadow:0 0 0 4px rgba(196,55,59,.12);}
.err{color:var(--err);font-size:.83rem;font-weight:600;margin:6px 0 0;min-height:0;}
.err:empty{display:none;}

/* ---------- chips ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;}
.chip{position:relative;margin:0;}
.chip input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;}
.chip span{display:block;padding:8px 14px;border:1.5px solid var(--line);border-radius:99px;
  background:#fbfdfe;font-size:.88rem;font-weight:500;cursor:pointer;transition:all .15s ease;}
.chip input:checked + span{border-color:var(--cyan);background:rgba(63,192,232,.12);color:var(--navy);font-weight:600;}
.chip input:focus-visible + span{box-shadow:0 0 0 4px rgba(63,192,232,.16);}

/* ---------- optional details ---------- */
.more{margin:0 0 18px;border:1px dashed var(--line);border-radius:8px;padding:0 14px;}
.more summary{cursor:pointer;padding:11px 0;font-size:.9rem;font-weight:600;color:var(--muted);}
.more[open] summary{margin-bottom:6px;}

/* ---------- notice ---------- */
.notice{background:rgba(63,192,232,.09);border:1px solid rgba(63,192,232,.35);
  border-radius:8px;padding:14px 16px;font-size:.92rem;color:var(--navy);}
.notice strong{display:block;margin-bottom:2px;}

/* ---------- agreements ---------- */
.agree{margin-top:22px;padding-top:20px;border-top:1px solid var(--line);}
.check{display:flex;gap:11px;align-items:flex-start;font-weight:400;font-size:.93rem;margin-bottom:13px;cursor:pointer;}
.check input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:var(--cyan-dark);cursor:pointer;}

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

/* ---------- nav ---------- */
.nav{display:flex;gap:12px;align-items:center;margin-top:26px;padding-top:22px;border-top:1px solid var(--line);}
.btn{font:inherit;font-weight:700;font-size:.98rem;padding:13px 26px;border:0;border-radius:99px;
  background:var(--navy);color:#fff;cursor:pointer;transition:background .15s ease,transform .1s ease;}
.btn:hover{background:var(--navy-2);}
.btn:active{transform:scale(.99);}
.btn.ghost{background:none;color:var(--muted);padding-left:6px;padding-right:6px;font-weight:600;}
.btn.ghost:hover{color:var(--navy);background:none;}
.btn[disabled]{opacity:.55;cursor:not-allowed;}
#nextBtn,#submitBtn{margin-left:auto;}

.form-note{margin:14px 0 0;font-size:.88rem;color:var(--err);font-weight:600;}
.form-note:empty{display:none;}

/* ---------- done ---------- */
.done{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:56px 30px;text-align:center;box-shadow:0 10px 30px -22px rgba(16,62,76,.5);}
.done-mark{width:56px;height:56px;margin:0 auto 18px;border-radius:50%;
  background:rgba(63,192,232,.15);color:var(--cyan-dark);display:grid;place-items:center;
  font-size:1.7rem;font-weight:700;}
.done h2{margin:0 0 8px;color:var(--navy);font-size:1.5rem;}
.done p{margin:0 auto;color:var(--muted);max-width:46ch;}

/* ---------- footer ---------- */
.site-foot{margin-top:48px;padding:26px 0 40px;border-top:1px solid var(--line);
  font-size:.83rem;color:var(--muted);text-align:center;background:#fff;}
.site-foot p{margin:0;}

@media(max-width:560px){
  form{padding:22px 18px;}
  .intro{padding:32px 0 20px;}
  .nav{flex-wrap:wrap;}
  #nextBtn,#submitBtn{width:100%;margin-left:0;}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;}}

/* ==================================================================
   TEXT PAGES (privacy, terms, contact — anything using [[*content]])
   The form styles above don't cover plain prose, so content pasted
   into a resource renders unstyled without these.
   ================================================================== */
.text-page{ padding:44px 0 40px; }
.text-page h1{
  font-size:clamp(1.7rem,4vw,2.3rem);
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--navy);
  margin:0 0 26px;
  line-height:1.2;
}

.prose{ color:var(--ink); max-width:70ch; }
.prose p, .prose li{ font-size:1rem; line-height:1.7; }
.prose p{ margin:0 0 1.15em; }

.prose h2{
  font-size:1.28rem;
  font-weight:700;
  color:var(--navy);
  margin:2rem 0 .6rem;
  line-height:1.3;
}
.prose h3{
  font-size:1.06rem;
  font-weight:700;
  color:var(--navy);
  margin:1.5rem 0 .45rem;
}
.prose h2:first-child, .prose h3:first-child, .prose > :first-child{ margin-top:0; }

.prose ul, .prose ol{ margin:0 0 1.2em; padding-left:1.4rem; }
.prose ul{ list-style:disc; }
.prose ol{ list-style:decimal; }
.prose li{ margin-bottom:.45em; }
.prose li::marker{ color:var(--cyan-dark); }

.prose a{ color:var(--cyan-dark); text-decoration:underline; }
.prose a:hover{ text-decoration:none; }
.prose strong{ font-weight:700; color:var(--navy); }
.prose em{ color:var(--muted); }
.prose hr{ border:0; border-top:1px solid var(--line); margin:2rem 0; }

.prose blockquote{
  margin:1.4em 0;
  padding:.6em 0 .6em 1.1em;
  border-left:3px solid var(--cyan);
  color:var(--muted);
}

.prose table{ width:100%; border-collapse:collapse; margin:1.2em 0; }
.prose th, .prose td{
  border:1px solid var(--line);
  padding:.6rem .75rem;
  text-align:left;
  vertical-align:top;
  font-size:.95rem;
}
.prose th{ background:var(--bg); font-weight:700; color:var(--navy); }

.prose code{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:4px;
  padding:.1em .35em;
  font-size:.9em;
}

@media(max-width:560px){
  .text-page{ padding:30px 0 28px; }
  .prose p, .prose li{ font-size:.97rem; line-height:1.62; }
  .prose table{ display:block; overflow-x:auto; }
}