/* ══════════════════════════════════════════
   KC-04 XV FLORAL INFERNO — KC-RSVP SYSTEM
   RSVP Inputs & "Pase Real" VIP Ticket Layout
   Khal Calloway Studio © 2026
   ══════════════════════════════════════════ */

#rsvp-section {
  position: relative;
  background-color: var(--bg-obsidian);
  padding: 6rem 0;
}

#rsvp-title {
  font-family: var(--ff-hero);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

#rsvp-subtitle {
  text-align: center;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

#rsvp-form-wrap {
  max-width: 460px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--border-gold);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.rsvp-field label {
  font-family: var(--ff-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-kc);
}

.rsvp-field input {
  background: rgba(15, 7, 7, 0.6);
  border: var(--border-crimson);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--color-champagne);
  font-family: var(--ff-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.rsvp-field input:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.rsvp-field input:focus {
  border-color: var(--gold-kc);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  background: rgba(15, 7, 7, 0.85);
}

/* Custom Pass Counter Controls */
#rsvp-pases-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--border-crimson);
  border-radius: 4px;
  background: rgba(15, 7, 7, 0.6);
  padding: 4px;
  width: 140px;
}

#rsvp-pases-wrap button {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--gold-kc);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

#rsvp-pases-wrap button:hover {
  background: rgba(161, 29, 42, 0.15);
}

#pases-count {
  font-family: var(--ff-hero);
  font-size: 1.15rem;
  color: var(--color-champagne);
  min-width: 20px;
  text-align: center;
}

#pases-limit-note {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Submission states */
#rsvp-submit-btn {
  width: 100%;
  margin-top: 10px;
}

.rsvp-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(212,175,55,0.25);
  border-top-color: var(--gold-kc);
  border-radius: 50%;
  animation: rsvpSpin 0.8s linear infinite;
}

@keyframes rsvpSpin {
  to { transform: rotate(360deg); }
}

.rsvp-error {
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--rose-celestial);
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}


/* ── THE VIP TICKET: "PASE REAL" ── */
#form-exito {
  max-width: 420px;
  margin: 0 auto;
}

.kc-ticket {
  background: #0b0505;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  padding: 30px;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* Fine Gold Floral / Damask corners overlay */
.kc-ticket::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.1);
  margin: 4px;
  border-radius: 8px;
  pointer-events: none;
}

.kc-ticket-header {
  text-align: center;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.kc-ticket-brand {
  display: block;
  font-family: var(--ff-label);
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-blush);
}

.kc-ticket-event {
  display: block;
  font-family: var(--ff-hero);
  font-size: 1.1rem;
  color: var(--gold-kc);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
}

.kc-ticket-body {
  text-align: center;
}

.kc-ticket-label {
  font-family: var(--ff-label);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.kc-ticket-name {
  font-family: var(--ff-hero);
  font-size: 1.38rem;
  font-weight: 700;
  margin: 6px 0 10px;
  line-height: 1.2;
}

.kc-ticket-pases {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--color-champagne);
  font-style: italic;
  margin-bottom: 24px;
}

.kc-ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  margin-bottom: 24px;
}

.kc-tm-item {
  text-align: center;
}

.kc-tm-label {
  display: block;
  font-family: var(--ff-label);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.kc-tm-val {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-champagne);
  line-height: 1.3;
}

/* Tear Notches representing concert tickets */
.kc-ticket-notch {
  position: relative;
  height: 20px;
  margin: 0 -30px 20px;
  display: flex;
  align-items: center;
}

.kc-ticket-notch::before,
.kc-ticket-notch::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  position: absolute;
  top: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8) inset;
  z-index: 10;
}

.kc-ticket-notch::before { left: -10px; }
.kc-ticket-notch::after { right: -10px; }

.kc-ticket-notch-line {
  flex-grow: 1;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.35);
  height: 1px;
}

/* QR Code Section */
.kc-ticket-qr-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.kc-ticket-qr-label {
  display: none !important;
}

.kc-ticket-qr-wrap img {
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(255, 179, 71, 0.15), 0 5px 15px rgba(0,0,0,0.4);
  width: 180px;
  height: 180px;
  display: block;
  margin: 12px auto;
}

.kc-ticket-qr-hint {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.kc-ticket-footer {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.kc-ticket-footer-brand {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--text-dim);
  opacity: 0.75;
}

/* Save ticket / download options */
.kc-ticket-share {
  text-align: center;
  margin-top: 20px;
}

.kc-ticket-share-btn {
  width: 100%;
}


/* ── STAND-ALONE QR SCAN VIEW ── */
#kc-fs-ticket {
  position: fixed;
  inset: 0;
  background: var(--bg-obsidian);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

#kc-fs-ticket-card {
  width: 100%;
  max-width: 380px;
}
