/* =====================================================================
   Contact + Thank You — Daytime Design Co.
   Mad-lib form · Netlify Forms · what-happens-next
   ===================================================================== */

/* ---------- Nav on cream hero (same treatment as About) ---------- */
.nav--onhero { position: absolute; background: none; border: 0; }
.nav--onhero .logo__word { color: var(--c-ink); }
.nav--onhero .nav__links a { color: var(--c-ink); opacity: 0.7; }
.nav--onhero .nav__links a:hover,
.nav--onhero .nav__links a.is-active { opacity: 1; }
/* deep green squiggle — active + hover (matches About) */
.nav--onhero .nav__links a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q 3.25 0.4 6.5 3 T 13 3' fill='none' stroke='%230a5342' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.nav--onhero .nav__burger { color: var(--c-ink); }

/* ---------- Hero (cream + acid grid) ---------- */
.cthero { padding: 170px 0 64px; }
.cthero__title {
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: 1;
  letter-spacing: -2px;
  margin: 24px 0 0;
  color: var(--c-ink);
}
.cthero__title .sans { display: block; }
.cthero__title .it { display: block; letter-spacing: -1px; }
.cthero__sub { max-width: 640px; margin-top: 26px; color: #333; }

/* ---------- Form section ---------- */
.ctmain { background: var(--c-paper); padding: 90px 0 110px; }
.ctmain__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}

/* ---------- The mad-lib — stanzas: each question owns its pills ---------- */
.madlib { font-size: clamp(23px, 2.1vw, 32px); font-weight: 700; }
.madlib__line { line-height: 1.7; margin: 0; }
.madlib__group { margin-top: 44px; }
.madlib__group + .madlib__line,
.madlib__group + .madlib__group { margin-top: 44px; }
.madlib__group .madlib__line { margin-bottom: 16px; }
.madlib__group + .madlib__line { margin-top: 44px; }
.madlib__line + .madlib__line { margin-top: 18px; }

/* inline blanks — olive at rest, red when active, no background highlight */
.madlib .blank {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02em;
  font-weight: 400;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--c-olive);
  border-radius: 0;
  padding: 0 6px 2px;
  margin: 0 4px;
  outline: none;
  transition: border-color .18s ease;
}
.madlib .blank::placeholder { color: var(--c-olive); opacity: 0.6; }
.madlib .blank:focus { border-bottom-color: var(--c-red); caret-color: var(--c-red); }

/* pill choices — soft sand chips, no heavy outlines */
.madlib__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.madlib__pills input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.madlib__pills label {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.1;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(254, 199, 251, 0.40);
  color: var(--c-ink);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
  user-select: none;
}
.madlib__pills label:hover { transform: translateY(-2px); background: var(--c-pink); }
.madlib__pills input[type="radio"]:checked + label {
  background: var(--c-green);
  color: var(--c-acid);
  font-weight: 600;
}
.madlib__pills input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
}

/* ---------- The open field — tell me about your project ---------- */
.ctstory { margin-top: 60px; }
.ctstory__label {
  font-size: clamp(23px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 6px;
}
.ctstory__hint { font-size: 16px; line-height: 1.55; color: var(--c-ink-3); margin-bottom: 18px; max-width: 56ch; }
@media (max-width: 820px) {
  .ctstory__label { font-size: 21px; }
}
.ctstory textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  border: 1.5px solid var(--c-hair);
  border-radius: var(--radius);
  padding: 22px 24px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ctstory textarea::placeholder { color: var(--c-ink-3); }
.ctstory textarea:focus { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(10,83,66,0.12); }

/* ---------- Submit row ---------- */
.ctsubmit { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.ctsubmit .btn { border: 0; }
.ctsubmit__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-ink-3); max-width: 34ch; line-height: 1.7; }
.ctsubmit__error {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c-red); line-height: 1.7;
}

/* ---------- Required / error states ---------- */
.madlib .blank.is-error { border-bottom-color: var(--c-red); }
.madlib .blank.is-error::placeholder { color: var(--c-red); opacity: 0.75; }
.madlib__pills.is-error label { box-shadow: inset 0 0 0 1.5px var(--c-red); }
.ctstory textarea.is-error { border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(221,0,17,0.10); }

/* ---------- Right rail — the details, in a cute lilac box ---------- */
.ctrail {
  position: sticky; top: 40px;
  display: grid; gap: 30px;
  background: var(--c-lilac);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.ctrail__block h4 { margin-bottom: 10px; color: var(--c-ink); opacity: 0.55; }
.ctrail__block a,
.ctrail__block p {
  font-size: 17px; font-weight: 600; color: var(--c-ink); line-height: 1.5;
}
.ctrail__block a:hover { text-decoration: underline; text-decoration-color: var(--c-green); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ctrail__social li { margin-bottom: 12px; }
.ctrail__social li:last-child { margin-bottom: 0; }
.ctrail__social a { display: inline-flex; align-items: center; gap: 11px; }
.ctrail__social svg {
  width: 21px; height: 21px; flex: 0 0 auto;
  stroke: var(--c-ink); stroke-width: 1.9; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ctrail__social svg .dot { fill: var(--c-ink); stroke: none; }
.ctrail__social a:hover svg { stroke: var(--c-green); }
.ctrail__social a:hover svg .dot { fill: var(--c-green); }
.ctrail__badge { width: 118px; height: 118px; }
.ctrail__hair { height: 1px; background: rgba(39,39,39,0.14); }

/* =====================================================================
   THANK YOU PAGE
   ===================================================================== */
.tyhero {
  padding: 190px 0 120px;
  background-color: var(--c-lilac);
  background-image: url("../02_Site-Wide%20Assets/backgrounds/bg-purple.png");
  background-size: auto; /* natural scale — scaling blurs the 1px lines */
  background-position: center top;
  background-repeat: repeat;
}
.tyhero__inner { text-align: center; }
.tyhero__title {
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 24px auto 0;
  color: var(--c-ink);
  max-width: 13em;
}
.tyhero__title .it { letter-spacing: -1px; }

/* what happens next — three cards riding the pattern */
.tysteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 64px;
}
.tystep {
  background: var(--c-off-white);
  border-radius: var(--radius);
  padding: 34px 30px 32px;
  box-shadow: 0 18px 44px rgba(39,39,39,0.14);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: left;
}
.tystep:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(39,39,39,0.18); }
.tystep__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--c-ink-3);
  margin: 22px 0 10px;
}
.tystep__title { font-size: clamp(21px, 1.7vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.tystep__title .it { letter-spacing: -0.03em; }

/* ---------- animated hand-drawn icons ---------- */
.ic { width: 66px; height: 66px; display: block; overflow: visible; }
.ic .ic-draw {
  stroke: var(--c-ink);
  stroke-width: 3.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--l, 120);
  stroke-dashoffset: var(--l, 120);
}
.ic .ic-pop, .ic .ic-spark {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
/* draw in when the card reveals (anim.js adds .is-in) */
.tystep.is-in .ic-pop { animation: icPop .55s cubic-bezier(0.34, 1.5, 0.55, 1) .15s forwards; }
.tystep.is-in .ic-draw { animation: icDraw 1s ease .35s forwards; }
.tystep.is-in .ic-spark { animation: icPop .5s cubic-bezier(0.34, 1.5, 0.55, 1) 1.15s forwards; }
@keyframes icDraw { to { stroke-dashoffset: 0; } }
@keyframes icPop { to { transform: scale(1); } }
/* a little life on hover */
@media (prefers-reduced-motion: no-preference) {
  .tystep:hover .ic { animation: icWiggle .6s ease; }
  @keyframes icWiggle {
    0%, 100% { transform: rotate(0); }
    30% { transform: rotate(-5deg); }
    65% { transform: rotate(4deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ic .ic-draw { stroke-dashoffset: 0; }
  .ic .ic-pop, .ic .ic-spark { transform: scale(1); }
}

/* while you wait — centered under the step cards */
.tyfollow { margin-top: 90px; }
.tyfollow__title { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -1px; margin: 18px auto 0; max-width: 18ch; }
.tyfollow__sub { margin: 16px auto 0; max-width: 44ch; opacity: 0.85; }
.tyfollow__cta { margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ctmain__grid { grid-template-columns: 1fr; }
  .ctrail { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ctrail__badge, .ctrail__hair { display: none; }
}
@media (max-width: 1020px) {
  .tysteps { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 820px) {
  .cthero { padding: 140px 0 64px; }
  .madlib { font-size: 21px; }
  .madlib .blank { max-width: 100%; }
  .madlib__group, .madlib > .madlib__line:last-child { margin-top: 34px; }
  .ctrail { grid-template-columns: 1fr; padding: 32px 28px; }
  .tyhero { padding: 150px 0 80px; }
  .tysteps { margin-top: 44px; }
}
