/* AZTO.love pre-registration */

:root {
  --ink: #2B1030;        /* deep plum text */
  --ink-soft: #6B5570;
  --rose: #E5186E;       /* brand pink */
  --rose-deep: #C20F5A;
  --heart: #E2272E;      /* logo heart red */
  --blush: #FFF0F4;
  --petal: #FFD3E1;
  --line: #EEDDE4;
  --paper: #FFFCFD;
  --ok: #1F8A5B;

  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-form-invalid-color: #C0263B;
  --bs-form-invalid-border-color: #C0263B;
}

html, body { background: var(--paper); }
body { color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }

/* ---------- Layout: photo left, form right ---------- */
.page { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story { position: sticky; top: 0; height: 100vh; }
}

/* ---------- Photo story ---------- */
.story { position: relative; overflow: hidden; min-height: 440px; background: var(--ink); isolation: isolate; }
.story__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2;
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
.story__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43,16,48,0) 35%, rgba(43,16,48,.55) 65%, rgba(43,16,48,.9) 100%); }
.story__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1.25rem 2.75rem; color: #fff; max-width: 38rem; }
.story__lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .75rem; text-wrap: balance; }
.story__body { font-size: 1.02rem; color: rgba(255,255,255,.86); margin: 0; max-width: 32rem; }
.story__credit { position: absolute; right: .75rem; top: .6rem; font-size: .7rem; color: rgba(255,255,255,.75); text-decoration: none; }
.story__credit:hover { color: #fff; text-decoration: underline; }
@media (min-width: 992px) { .story__text { padding: 3rem 3.5rem 3.5rem; } }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: scale(1); opacity: 1; } }

/* ---------- Form side ---------- */
.signup { display: flex; flex-direction: column; min-height: 100%; padding: 0 1rem; }
@media (min-width: 576px) { .signup { padding: 0 2rem; } }
@media (min-width: 1200px) { .signup { padding: 0 4.5rem; } }

.brand { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand__logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; }
.brand__logo em { font-style: normal; color: var(--rose); }
.brand__heart { width: 34px; height: 34px; }
.brand__heart path:first-child { fill: var(--heart); }
.brand__pulse { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand__status { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--rose-deep);
  background: var(--blush); border: 1px solid var(--petal); padding: .3rem .75rem; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(229,24,110,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229,24,110,0); } 100% { box-shadow: 0 0 0 0 rgba(229,24,110,0); } }

.signup__inner { width: 100%; max-width: 36rem; margin: 0 auto; padding: 1rem 0 2.5rem; flex: 1; }
@media (min-width: 992px) { .signup__inner { padding-top: 2.5rem; } }

.headline { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem);
  line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 1rem; text-wrap: balance; }
.intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 33rem; margin-bottom: 2rem; }

/* ---------- Fields ---------- */
.prereg { display: grid; gap: 1.25rem; }
.prereg > .row { --bs-gutter-y: 1.25rem; margin-top: 0; }
.prereg .row > * { margin-top: 0; }
.prereg .row { row-gap: 1.25rem; }
.form-label, legend.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .85rem; margin-left: .25rem; }
.form-text { color: var(--ink-soft); font-size: .85rem; }

.form-control, .form-select, .input-group-text {
  border-color: var(--line); border-radius: 12px; padding: .72rem .9rem; font-size: 1rem; background-color: #fff; color: var(--ink);
}
.input-group-text.prefix { background: var(--blush); color: var(--rose-deep); font-weight: 600; border-right: 0; padding-right: .2rem; }
.input-group > .form-control { border-left: 0; padding-left: .15rem; }
.input-group:focus-within .input-group-text { border-color: var(--rose); }
.form-control:focus, .form-select:focus { border-color: var(--rose); box-shadow: 0 0 0 .22rem rgba(229,24,110,.16); }
.form-control::placeholder { color: #B9A8BD; }

/* segmented gender choice */
fieldset { min-width: 0; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; gap: 4px; }
.seg { text-align: center; padding: .55rem .25rem; border-radius: 9px; font-weight: 600; cursor: pointer; color: var(--ink-soft);
  transition: background-color .15s, color .15s; user-select: none; }
.seg:hover { background: var(--blush); color: var(--ink); }
.btn-check:checked + .seg { background: var(--rose); color: #fff; }
.btn-check:focus-visible + .seg { outline: 3px solid rgba(229,24,110,.35); outline-offset: 1px; }
.is-invalid .segmented { border-color: var(--bs-form-invalid-color); }

/* honeypot */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Heart check ---------- */
.hearts { background: var(--blush); border: 1px solid var(--petal); border-radius: 16px; padding: 1rem 1rem 1.1rem; }
.hearts__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; min-height: 52px; }
@media (max-width: 340px) { .hearts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hearts__loading { grid-column: 1 / -1; color: var(--ink-soft); font-size: .9rem; align-self: center; }
.tile { aspect-ratio: 1; max-height: 64px; width: 100%; min-width: 0; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--petal);
  background: #fff; color: var(--ink-soft); cursor: pointer; padding: 0; transition: transform .12s, border-color .15s, background-color .15s, color .15s; }
.tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover { border-color: var(--rose); color: var(--ink); }
.tile:active { transform: scale(.94); }
.tile:focus-visible { outline: 3px solid rgba(229,24,110,.4); outline-offset: 2px; }
.tile[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.tile[aria-pressed="true"] svg { fill: rgba(255,255,255,.25); }
.hearts.is-complete { border-color: #BFE3D0; background: #F1FAF5; }

/* consent */
.consent { padding-left: 1.9em; }
.consent .form-check-input { width: 1.2em; height: 1.2em; margin-left: -1.9em; margin-top: .18em; border-color: #CDB8C6; }
.form-check-input:checked { background-color: var(--rose); border-color: var(--rose); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(229,24,110,.16); border-color: var(--rose); }

/* ---------- Submit ---------- */
.btn-reserve { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 1rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -12px rgba(229,24,110,.7); transition: background-color .15s, transform .12s; }
.btn-reserve:hover, .btn-reserve:focus-visible { background: var(--rose-deep); color: #fff; }
.btn-reserve:active { transform: translateY(1px); }
.btn-reserve:focus-visible { outline: 3px solid rgba(229,24,110,.4); outline-offset: 3px; }
.btn-reserve:disabled { background: var(--rose); opacity: .7; color: #fff; }
.fineprint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: -.35rem 0 0; }

.alert-danger { border-radius: 12px; font-size: .95rem; margin: 0; }

/* ---------- Success ---------- */
.done { text-align: center; padding: 1rem 0 2rem; outline: none; }
.done__heart { width: 84px; height: 84px; fill: var(--heart); margin-bottom: 1rem; animation: beat 1.2s ease-out 1 both; }
.done__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: .75rem; word-break: break-word; }
.done__pos { display: inline-block; font-weight: 700; color: var(--rose-deep); background: var(--blush); border: 1px solid var(--petal); border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1.1rem; }
.done__text { color: var(--ink-soft); font-size: 1.05rem; max-width: 28rem; margin: 0 auto 1.5rem; }
.btn-share { border: 1.5px solid var(--rose); color: var(--rose-deep); border-radius: 999px; padding: .65rem 1.4rem; font-weight: 700; }
.btn-share:hover { background: var(--blush); color: var(--rose-deep); border-color: var(--rose); }
@keyframes beat { 0% { transform: scale(.4); opacity: 0; } 45% { transform: scale(1.12); opacity: 1; } 70% { transform: scale(.96); } 100% { transform: scale(1); } }

.foot { font-size: .82rem; color: var(--ink-soft); padding: 1.25rem 0 1.5rem; text-align: center; }

@media (max-width: 991.98px) {
  .story { min-height: 58vh; }
  .brand { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.brand--mobile { padding: 1rem; background: var(--paper); }

/* username prefix follows the input's state */
.input-group:has(.is-invalid) .input-group-text { border-color: var(--bs-form-invalid-border-color); }
.input-group:has(.is-invalid) ~ .invalid-feedback { display: block; }
.input-group:has(.is-invalid) ~ .form-text { display: none; }
.input-group > .form-control:focus { box-shadow: none; }
.input-group:focus-within { box-shadow: 0 0 0 .22rem rgba(229,24,110,.16); border-radius: 12px; }
