/* ==========================================================================
   GARUDAFOOD BIGBANG HAPPY POIN - EXECUTIVE GLASSMORPHISM CSS (MOBILE OPTIMIZED)
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.3);
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-label: #334155;
  
  --border-light: rgba(226, 232, 240, 0.9);
  --border-focus: #3b82f6;
  --error: #ef4444;
  --success: #10b981;

  /* Glassmorphism Specs (Transparansi ~20% Kaca Murni) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 
    0 32px 64px -16px rgba(15, 23, 42, 0.28),
    0 16px 32px -12px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Menghilangkan highlight abu-abu saat di-tap di HP */
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.25) 0%, transparent 75%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.4) 100%),
    url('/garudafood.jpg') no-repeat center center / cover fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Safe area inset untuk HP ber-notch / gesture bar */
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CONTAINER & GLASS CARD
   ========================================================================== */

.container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-border);
  border-radius: clamp(20px, 4vw, 32px);
  box-shadow: var(--glass-shadow);
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4.5vw, 48px);
  position: relative;
  overflow: hidden;
  animation: cardInit 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glow Aksen Atas Card */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

@keyframes cardInit {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   HEADER & LOGO
   ========================================================================== */

.card-header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-container {
  margin-bottom: 16px;
}

.logo-container img {
  max-width: clamp(110px, 30vw, 150px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.card-header h1 {
  font-size: clamp(20px, 4.5vw, 27px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-bottom: 12px;
  word-break: break-word;
}

.card-header .period {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 100px;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  color: #475569;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.card-header .period svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   STATUS / SEAT BADGE
   ========================================================================== */

.seat-badge {
  background: rgba(241, 245, 249, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 13px 18px;
  text-align: center;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 600;
  color: #334155;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.seat-badge.sold-out .status-dot,
.seat-badge.sold-out .status-dot::after {
  background-color: var(--error);
}

.seat-badge.sold-out {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(254, 202, 202, 0.9);
  color: var(--error);
}

/* ==========================================================================
   FORM GRID LAYOUT
   ========================================================================== */

.section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title span {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group:nth-child(5) {
  grid-column: span 2;
}

.form-actions {
  grid-column: span 2;
  margin-top: 8px;
}

/* ==========================================================================
   INPUTS & LABELS
   ========================================================================== */

label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-label);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

label::after {
  content: ' *';
  color: var(--error);
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 42px;
}

select.select-custom {
  cursor: pointer;
}

input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.14),
    0 4px 12px rgba(59, 130, 246, 0.06);
  transform: translateY(-1px);
}

input.is-invalid,
select.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14) !important;
}

input.is-valid,
select.is-valid {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14) !important;
}

.error-message {
  font-size: 12px;
  font-weight: 600;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.error-message.show {
  display: block;
}

/* ==========================================================================
   GUEST SELECTION BUTTONS
   ========================================================================== */

.guest-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.guest-btn {
  height: 52px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text-label);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.guest-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(241, 245, 249, 0.6);
}

.guest-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.guest-input-wrapper {
  display: none;
  margin-top: 10px;
}

.guest-input-wrapper.show {
  display: block;
}

/* ==========================================================================
   SUBMIT BUTTON WITH SHIMMER ANIMATION
   ========================================================================== */

button[type="submit"] {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 24px -4px var(--primary-glow);
}

/* Shimmer Light Reflection */
button[type="submit"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

button[type="submit"]:hover:not(:disabled)::after {
  transform: rotate(30deg) translateX(100%);
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.4);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.hidden-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   SUCCESS CARD VIEW
   ========================================================================== */

.success-card {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.success-card.show {
  display: block;
}

.success-icon {
  width: 68px;
  height: 68px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.success-card h2 {
  font-size: clamp(20px, 4vw, 23px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-footer {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE SPECIFIC ADJUSTMENTS)
   ========================================================================== */

@media (max-width: 640px) {
  form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group:nth-child(5),
  .form-actions {
    grid-column: span 1;
  }

  /* Font-size 16px mencegah iOS Safari melakukan auto-zoom saat fokus ke input */
  input[type="text"],
  input[type="tel"],
  select {
    height: 50px;
    font-size: 16px;
  }

  .guest-btn {
    height: 48px;
    font-size: 12.5px;
  }

  button[type="submit"] {
    height: 52px;
    font-size: 15px;
  }
}

/* Penyesuaian khusus HP berlayar sangat sempit (< 380px) */
@media (max-width: 380px) {
  .guest-options {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guest-btn {
    height: 44px;
  }
}