/* ==========================================================================
   RCCG FIRST TIMERS — the pop-up
   Every class starts with rft, so nothing here can touch the site's own CSS
   or a WordPress theme. Brand: indigo #190A6A · green #0E7C3A · cream #F6F2EA.
   ========================================================================== */

.rft{
  --rft-indigo:#190A6A;
  --rft-deep:#0C0526;
  --rft-green:#0E7C3A;
  --rft-cream:#FCFAF6;
  --rft-line:#E4E0D6;
  --rft-ink:#12103A;
  --rft-body:#4A4763;
  --rft-muted:#8B88A0;
  position:fixed!important;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px,4vw,40px);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Inter,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  color:var(--rft-ink);
  line-height:1.5;
}
.rft[hidden]{display:none!important}
.rft *{box-sizing:border-box}

.rft__veil{
  position:absolute;
  inset:0;
  background:rgba(12,5,38,.72);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  animation:rftFade .3s ease both;
}

.rft__box{
  position:relative;
  width:100%;
  max-width:520px;
  max-height:min(92vh,820px);
  overflow:auto;
  background:var(--rft-cream);
  border-radius:18px;
  box-shadow:0 40px 90px -30px rgba(6,2,20,.75), 0 2px 0 rgba(255,255,255,.5) inset;
  padding:clamp(22px,3.4vw,34px);
  animation:rftUp .38s cubic-bezier(.22,.61,.36,1) both;
  overscroll-behavior:contain;
}
.rft__box:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;height:3px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg,#190A6A,#0E7C3A 48%,#C0182C);
}

.rft__x{
  position:absolute;
  top:12px;right:12px;
  width:38px;height:38px;
  display:grid;place-items:center;
  border:1px solid var(--rft-line);
  background:#fff;
  color:var(--rft-body);
  border-radius:50%;
  cursor:pointer;
  transition:background .2s,color .2s,border-color .2s;
}
.rft__x svg{width:17px;height:17px}
.rft__x:hover{background:var(--rft-indigo);border-color:var(--rft-indigo);color:#fff}
.rft__x:focus-visible{outline:2px solid var(--rft-green);outline-offset:2px}

.rft__eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-size:.62rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;
  color:var(--rft-green);
}
.rft__eyebrow:before{content:"";width:16px;height:1px;background:currentColor;opacity:.7}

.rft__title{
  margin:10px 0 0;
  font-family:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  font-size:clamp(1.5rem,3.6vw,2rem);
  font-weight:400;
  letter-spacing:-.02em;
  line-height:1.1;
  color:var(--rft-indigo);
}
.rft__intro{
  margin:10px 0 0;
  font-size:.92rem;
  color:var(--rft-body);
  max-width:44ch;
}

/* ---------- the form ---------- */
.rft__form{margin:18px 0 0}
.rft__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rft__f{display:block;margin:0 0 12px}
.rft__lab{
  display:block;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.03em;
  color:var(--rft-ink);
  margin:0 0 5px;
}
.rft__lab i{color:#C0182C;font-style:normal;margin-left:3px}
.rft__lab em{font-style:normal;font-weight:500;color:var(--rft-muted);letter-spacing:0}

.rft__f input[type=text],
.rft__f input[type=tel],
.rft__f input[type=email],
.rft__f input[type=date],
.rft__f select,
.rft__f textarea{
  width:100%;
  font:inherit;
  font-size:.92rem;
  color:var(--rft-ink);
  background:#fff;
  border:1px solid var(--rft-line);
  border-radius:10px;
  padding:11px 12px;
  transition:border-color .2s,box-shadow .2s;
  -webkit-appearance:none;
  appearance:none;
}
.rft__f select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4763' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:16px;
  padding-right:34px;
}
.rft__f textarea{resize:vertical;min-height:74px}
.rft__f input[type=date]{min-height:44px}
.rft__f input[type=date]::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer}
.rft__f input:focus,
.rft__f select:focus,
.rft__f textarea:focus{
  outline:none;
  border-color:var(--rft-indigo);
  box-shadow:0 0 0 3px rgba(25,10,106,.12);
}
.rft__f input[aria-invalid=true],
.rft__f select[aria-invalid=true]{
  border-color:#C0182C;
  box-shadow:0 0 0 3px rgba(192,24,44,.1);
}

.rft__group{
  border:0;
  padding:0;
  margin:0 0 12px;
}
.rft__group legend{padding:0}
.rft__radio{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:.88rem;
  color:var(--rft-body);
  margin:6px 16px 0 0;
  cursor:pointer;
}
.rft__radio input{accent-color:var(--rft-green);width:16px;height:16px;margin:0}

/* the honeypot: invisible to a person, tempting to a bot */
.rft__hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px;height:1px;
  opacity:0;
  pointer-events:none;
}

.rft__err{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:9px;
  background:#FDEDEF;
  border:1px solid #F3C7CD;
  color:#8E1120;
  font-size:.84rem;
}
.rft__err[hidden]{display:none}

.rft__acts{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:6px}
.rft__send{
  flex:1 1 auto;
  min-width:150px;
  font:inherit;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.04em;
  color:#fff;
  background:var(--rft-green);
  border:0;
  border-radius:999px;
  padding:14px 22px;
  cursor:pointer;
  transition:background .22s,transform .22s;
}
.rft__send:hover{background:#0A5F2C}
.rft__send:active{transform:translateY(1px)}
.rft__send[disabled]{opacity:.65;cursor:progress}
.rft__send:focus-visible{outline:2px solid var(--rft-indigo);outline-offset:2px}

.rft__later{
  font:inherit;
  font-size:.8rem;
  color:var(--rft-muted);
  background:none;
  border:0;
  padding:8px 2px;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
.rft__later:hover{color:var(--rft-ink)}

.rft__fine{
  margin:12px 0 0;
  font-size:.7rem;
  color:var(--rft-muted);
  line-height:1.5;
}

/* ---------- the thank you ---------- */
.rft__step--done{text-align:center;padding:6px 0 0}
/* the letter block below reads left to right, like the e-mail */
.rft__step--done .rft__letter{text-align:left}
.rft__dupnote{
  margin:6px 0 0;
  padding:12px 14px;
  background:#FCFAF6;
  border-left:3px solid var(--rft-green);
  border-radius:0 6px 6px 0;
  font-size:.88rem;
  line-height:1.55;
  color:var(--rft-body);
}
.rft__tick{
  width:54px;height:54px;
  margin:0 auto 14px;
  border-radius:50%;
  display:grid;place-items:center;
  background:rgba(14,124,58,.1);
  color:var(--rft-green);
}
.rft__tick svg{width:26px;height:26px}
.rft__step--done .rft__intro{margin-left:auto;margin-right:auto}
/* the thank-you is a letter, so it reads left to right — even though the form's
   own intro is centred */
.rft__step--done .rft__intro--left{margin-left:0;margin-right:0;text-align:left}
.rft__times-lab{
  margin:18px 0 3px;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--rft-green);
}
.rft__times{
  margin:0 0 18px;
  font-size:.88rem;
  color:var(--rft-body);
}

/* ---- the thank-you letter ------------------------------------------------ */
.rft__intro--left{text-align:left;margin-left:0;margin-right:0}
.rft__intro--bold{font-weight:600;color:var(--rft-ink)}
.rft__letter{
  margin:16px 0 4px;
  padding-top:4px;
  border-top:1px solid var(--rft-line);
}
.rft__letter .rft__times-lab{margin-top:2px}
.rft__svc{margin:0 0 12px}
.rft__svc-place{
  margin:0;
  font-family:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  font-size:.98rem;
  color:var(--rft-indigo);
}
.rft__svc-when{margin:1px 0 0;font-size:.86rem;color:var(--rft-body)}
.rft__svc-when strong{font-size:1.02rem;color:var(--rft-ink);letter-spacing:-.01em}
.rft__merid{font-size:.7rem;font-weight:700;letter-spacing:.04em}
.rft__svc-sub{margin:2px 0 0;font-size:.78rem;font-style:italic;color:var(--rft-muted)}
.rft__times-lab--place{margin-top:16px}
.rft__address{
  margin:2px 0 0;
  font-size:.86rem;
  line-height:1.55;
  color:var(--rft-body);
}
.rft__welcome-line{
  margin:18px 0 0;
  font-family:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  font-size:1.02rem;
  font-style:italic;
  line-height:1.45;
  color:var(--rft-indigo);
}
.rft__sign{
  margin:16px 0 0;
  font-family:Georgia,"Iowan Old Style","Palatino Linotype",serif;
  font-size:.92rem;
  color:var(--rft-ink);
}
.rft__sign-verse{
  margin:3px 0 0;
  font-size:.76rem;
  font-style:italic;
  color:var(--rft-muted);
}
.rft__wa{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:#0E7C3A;
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  padding:12px 20px;
  font-size:.84rem;
  font-weight:700;
  transition:background .22s;
}
.rft__wa svg{width:18px;height:18px}
.rft__wa:hover{background:#0A5F2C;color:#fff}
.rft__later--done{display:block;margin:14px auto 0}

/* ---------- the animation ---------- */
@keyframes rftFade{from{opacity:0}to{opacity:1}}
@keyframes rftUp{from{opacity:0;transform:translateY(14px) scale(.99)}to{opacity:1;transform:none}}

/* ---------- the phone ---------- */
@media (max-width:620px){
  .rft{padding:0;align-items:flex-end}
  .rft__box{
    max-width:none;
    max-height:94vh;
    border-radius:18px 18px 0 0;
    padding:22px 18px calc(20px + env(safe-area-inset-bottom));
    animation:rftUpSmall .34s cubic-bezier(.22,.61,.36,1) both;
  }
  .rft__box:before{border-radius:18px 18px 0 0}
  .rft__row{grid-template-columns:1fr;gap:0}
  .rft__send{width:100%}
  .rft__acts{gap:8px}
  .rft__later{width:100%;text-align:center;padding:6px 0}
  .rft__f input[type=text],
  .rft__f input[type=tel],
  .rft__f input[type=email],
  .rft__f input[type=date],
  .rft__f select,
  .rft__f textarea{font-size:16px}   /* stops iOS zooming the page on focus */
}
@keyframes rftUpSmall{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}

/* ---------- a body that is not scrolled behind the form ---------- */
body.rft-open{overflow:hidden!important}

@media (prefers-reduced-motion:reduce){
  .rft__veil,.rft__box{animation:none}
}
