/* Dream Forest Langkawi — High Conversion Checkout Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #060B12;
  --bg-surface: #0A1628;
  --bg-card: rgba(13, 31, 60, 0.65);
  --bg-card-hover: rgba(20, 45, 85, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.35);
  --border-gold: rgba(200, 160, 74, 0.4);
  
  --neon-cyan: #00D4FF;
  --neon-cyan-glow: rgba(0, 212, 255, 0.4);
  --neon-magenta: #FF00AA;
  --neon-green: #39FF4A;
  --warm-gold: #C8A04A;
  --gold-glow: rgba(200, 160, 74, 0.35);
  
  --text-main: #F4F6F9;
  --text-muted: #8E9BAE;
  --text-dim: #5C6A80;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.25);
  --shadow-gold: 0 0 24px rgba(200, 160, 74, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(26, 74, 92, 0.4) 0%, transparent 70%),
    radial-gradient(circle at 10% 40%, rgba(255, 0, 170, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 120px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

.header-badges {
  display: flex;
  gap: 8px;
}

.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Hero Value Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(200, 160, 74, 0.15) 0%, rgba(13, 31, 60, 0.6) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-gold);
}

.hero-banner-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--warm-gold);
  margin-bottom: 2px;
}

.hero-banner-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-discount-pill {
  background: var(--warm-gold);
  color: #060B12;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Layout Columns */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Sections */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.section-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Category Segmented Control */
.category-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(6, 11, 18, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(13, 31, 60, 0.9) 100%);
  border: 1px solid var(--neon-cyan);
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.cat-note {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Date Selection Chips */
.date-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.date-chip {
  background: rgba(6, 11, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-chip:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(13, 31, 60, 0.5);
}

.date-chip.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}

.date-chip-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.date-chip-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.custom-date-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 11, 18, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  margin-top: 10px;
}

.custom-date-wrap label {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.custom-date-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.custom-date-input:focus {
  border-color: var(--neon-cyan);
}

.opening-hours-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--warm-gold);
  margin-top: 10px;
}

/* Ticket Items */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 11, 18, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.ticket-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(13, 31, 60, 0.4);
}

.ticket-item.bundle {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(200, 160, 74, 0.08) 0%, rgba(6, 11, 18, 0.7) 100%);
}

.ticket-item-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.ticket-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.curr-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.ticket-item.bundle .curr-price {
  color: var(--warm-gold);
}

.gate-price {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.save-pill {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(57, 255, 74, 0.15);
  color: var(--neon-green);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Quantity Stepper */
.stepper {
  display: flex;
  align-items: center;
  background: rgba(6, 11, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--neon-cyan);
  color: #060B12;
}

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

.stepper-val {
  min-width: 32px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Add-ons Chips Carousel */
.addons-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.addon-card {
  background: rgba(6, 11, 18, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.addon-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.addon-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--neon-magenta);
}

.addon-card h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 4px 0 8px;
}

.addon-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.addon-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* Guest Details Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: rgba(6, 11, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Modern Accessible User Validation */
.form-input:user-invalid {
  border-color: #FF4D4D;
  background-color: rgba(255, 77, 77, 0.08);
}

.form-input:user-valid {
  border-color: #39FF4A;
}

.error-hint {
  font-size: 0.75rem;
  color: #FF4D4D;
  display: none;
}

.form-input:user-invalid + .error-hint {
  display: block;
}

/* Promo Code Box */
.promo-box {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.promo-input {
  flex: 1;
  text-transform: uppercase;
}

.btn-promo {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-promo:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-cyan);
}

/* Order Summary Box */
.summary-card {
  position: sticky;
  top: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.summary-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.summary-row .name {
  color: var(--text-muted);
}

.summary-row .val {
  font-weight: 700;
  color: var(--text-main);
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 14px 0;
}

.summary-discount {
  color: var(--neon-green) !important;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.total-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--warm-gold);
  font-family: 'Cinzel', serif;
}

/* Pay Button */
.btn-pay {
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #00D4FF 0%, #0099FF 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #060B12;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.6);
}

.btn-pay:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.trust-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--neon-cyan);
  flex-shrink: 0;
}

/* Mobile Sticky Bottom Bar */
.mobile-pay-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 11, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glow);
  padding: 12px 16px;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .mobile-pay-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  
  .mobile-pay-info .mobile-total-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
  }
  
  .mobile-pay-info .mobile-total-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--warm-gold);
    font-family: 'Cinzel', serif;
  }
  
  .mobile-pay-bar .btn-pay {
    flex: 1;
    max-width: 220px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}
