/* Singles to Mingle — signup
   Festive rooftop / dinner-party editorial. Mobile-first. */

:root {
  --coral: #ff5a2d;
  --coral-deep: #e8451a;
  --mango: #ffb703;
  --mango-soft: #ffe8a3;
  --emerald: #0b9b6b;
  --rose: #e63946;
  --ink: #1a1410;
  --ink-2: #3d322b;
  --muted: #6f5e53;
  --line: #e7d5c3;
  --cream: #fff3e6;
  --paper: #fffaf3;
  --night: #2b211c;
  --ok: #0b9b6b;
  --err: #c62828;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --tap: 48px;
  --gutter: clamp(16px, 4vw, 28px);
  --max: 560px;
  --header-h: 58px;
  --sticky-h: 88px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(255, 90, 45, 0.16), transparent 55%),
    radial-gradient(90% 60% at -10% 30%, rgba(255, 183, 3, 0.18), transparent 50%),
    radial-gradient(70% 50% at 110% 85%, rgba(11, 155, 107, 0.12), transparent 45%),
    linear-gradient(180deg, #ffe8d2 0%, var(--cream) 28%, #fff6ec 100%);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + var(--safe-b) + 24px);
}

/* Kill iOS zoom on focus: 16px+ controls */
input,
select,
textarea,
button {
  font: inherit;
  font-size: 16px;
  color: inherit;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: calc(10px + var(--safe-t)) var(--gutter) 10px;
  background: rgba(255, 246, 236, 0.92);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(26, 20, 16, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.logo:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(62vw, 200px);
  object-fit: contain;
  object-position: left center;
  /* no box / plate behind mark — pure transparent PNG */
  background: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

@media (min-width: 480px) {
  .site-header {
    min-height: 72px;
    padding-top: calc(12px + var(--safe-t));
    padding-bottom: 12px;
  }
  .logo-img {
    height: 52px;
    max-width: 240px;
  }
}

@media (min-width: 720px) {
  .logo-img {
    height: 56px;
    max-width: 260px;
  }
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1;
  flex-shrink: 0;
}

.pill-pune {
  color: #065f46;
  background: rgba(11, 155, 107, 0.12);
  border: 1px solid rgba(11, 155, 107, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

/* ── Page ── */
.page {
  width: min(100%, calc(var(--max) + var(--gutter) * 2));
  margin: 0 auto;
  padding: 18px var(--gutter) 0;
}

.intro {
  margin-bottom: 14px;
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ── Form sheet ── */
.sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.step {
  background: var(--paper);
  border: 1px solid rgba(26, 20, 16, 0.08);
  border-radius: calc(var(--radius) + 4px);
  padding: 16px 16px 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

@media (min-width: 480px) {
  .step {
    padding: 18px 18px 8px;
  }
}

.step-head {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.step-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.lbl {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.lbl i {
  color: var(--coral);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f5e53' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 45, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a89280;
}

/* native date on iOS */
.field input[type="date"] {
  min-height: var(--tap);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}

@media (min-width: 520px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.with-prefix {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  min-height: var(--tap);
}

.with-prefix > span {
  display: grid;
  place-items: center;
  padding: 0 4px 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.with-prefix.phone-prefix > span.cc {
  padding: 0 10px 0 14px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-right: 1px solid var(--line);
  background: #fff8f0;
  min-width: 3.4rem;
}

.with-prefix input {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  border-radius: 0;
  min-height: calc(var(--tap) - 4px);
}

.with-prefix:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 45, 0.16);
}

.action-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .action-row {
    flex-direction: row;
  }
  .action-row .btn {
    width: auto;
    min-width: 132px;
  }
}

/* Single ticket */
.ticket {
  display: block;
  cursor: pointer;
  position: relative;
}

.ticket input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.ticket-ui {
  display: block;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 183, 3, 0.14), transparent 42%),
    #fff;
  padding: 14px 14px 14px 16px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ticket-ui::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--mango);
}

.ticket input:focus-visible + .ticket-ui {
  box-shadow: 0 0 0 3px rgba(255, 90, 45, 0.16);
}

.ticket input:checked + .ticket-ui {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(11, 155, 107, 0.12);
}

.ticket input:checked + .ticket-ui::before {
  background: var(--emerald);
}

.ticket-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 6px;
}

.ticket-top strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.ticket-note {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.ticket-note b {
  color: var(--rose);
  font-weight: 700;
}

/* OTP */
.otp-box {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.spam-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 155, 107, 0.12);
  color: #066847;
  font-size: 0.84rem;
  font-weight: 700;
}

.verified .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(11, 155, 107, 0.2);
}

/* Photo */
.photo-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 10px;
  justify-items: start;
}

@media (min-width: 420px) {
  .photo-panel {
    grid-template-columns: 132px 1fr;
    align-items: center;
  }
}

.photo-frame {
  width: min(160px, 42vw);
  aspect-ratio: 1;
  border-radius: 22px;
  border: 2px dashed #d8c0a8;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 8px,
      rgba(255, 183, 3, 0.08) 8px,
      rgba(255, 183, 3, 0.08) 16px
    ),
    #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.photo-frame:hover,
.photo-frame:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 45, 0.12);
  outline: none;
}

@media (min-width: 420px) {
  .photo-frame {
    margin: 0;
    width: 132px;
  }
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  pointer-events: none;
}

.photo-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 45, 0.12);
  color: var(--coral);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Messages */
.msg {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.msg[hidden] {
  display: none !important;
}

.msg.error,
.msg:not(.ok):not(.success):not(.info) {
  color: var(--err);
}

.msg.ok,
.msg.success {
  color: #066847;
}

.msg.info {
  color: var(--muted);
  font-weight: 500;
}

.form-status {
  min-height: 0;
}

.form-status .msg {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 8px;
}

.form-status .msg.error {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.form-status .msg.success {
  background: rgba(11, 155, 107, 0.1);
  border: 1px solid rgba(11, 155, 107, 0.22);
}

.counter {
  align-self: flex-end;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  width: 100%;
  text-align: center;
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-coral {
  background: linear-gradient(180deg, #ff6a3d 0%, var(--coral) 55%, var(--coral-deep) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 24px rgba(255, 90, 45, 0.28);
}

.btn-ink {
  background: var(--night);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

/* Sticky submit — mobile-first */
.sticky-spacer {
  height: 8px;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: linear-gradient(180deg, rgba(255, 243, 230, 0) 0%, rgba(255, 243, 230, 0.92) 28%, rgba(255, 243, 230, 0.98) 100%);
  pointer-events: none;
}

.sticky-inner {
  pointer-events: auto;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(26, 20, 16, 0.1);
  box-shadow: 0 -8px 32px rgba(43, 33, 28, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky-inner-solo {
  padding: 10px;
}

.sticky-inner-solo .btn {
  width: 100%;
}

@media (min-width: 560px) {
  .sticky-inner-solo {
    padding: 12px;
  }
}

.site-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px var(--gutter) 12px;
}

/* Modal — full sheet on phones */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 20, 16, 0.58);
  display: grid;
  align-items: end;
  padding: 0;
}

@media (min-width: 560px) {
  .modal {
    place-items: center;
    padding: 16px;
    align-items: center;
  }
}

.modal[hidden] {
  display: none !important;
}

.modal-sheet {
  width: min(560px, 100%);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 16px 16px calc(16px + var(--safe-b));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  max-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .modal-sheet {
    border-radius: 24px;
    padding: 18px;
    max-height: min(88dvh, 860px);
  }
}

.modal-head h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
}

.crop-stage {
  flex: 1 1 auto;
  min-height: 280px;
  height: min(52dvh, 440px);
  background: #120e0c;
  border-radius: 16px;
  overflow: hidden;
}

.crop-stage img {
  display: block;
  max-width: 100%;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

/* Cropper */
.cropper-view-box,
.cropper-face {
  border-radius: 10px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* v2 mobile redesign */

/* phone +91 prefix */

/* photo upload */
