/* ============================================================
   prefill-sheet.css — bottom-sheet modal for collecting
   name/email/phone. Currently inert in this build (Razorpay
   collects directly), kept for re-enablement.
   ============================================================ */

/* ============================================ */
/* PREFILL BOTTOM-SHEET MODAL                   */
/* ============================================ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d1113;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--border);
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom));
  z-index: 501;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
}
.sheet.show { transform: translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 2px auto 18px;
}

.sheet h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.sheet h2 .italic {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}
.sheet .sub {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-weight: 600;
}
.field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder { color: var(--text-dimmer); }
.field input:focus {
  border-color: var(--green);
  background: rgba(47, 208, 124, 0.06);
}
.field.invalid input {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.05);
}
.field .err {
  color: #ff7a7c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
.field.invalid .err { display: block; }

.sheet-cta {
  width: 100%;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--green) 100%);
  color: #003a1f;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  margin-top: 8px;
  transition: transform 0.15s, opacity 0.2s;
}
.sheet-cta:active { transform: scale(0.98); }
.sheet-cta:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.sheet-fine {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.5;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
