/* Shared CSS for all Wedding Customizers */
:root {
  --gold: #d4af37;
  --gold-light: #e8c96a;
  --bg: #0c0c0c;
  --surface: #181818;
  --surface2: #232323;
  --text: #f0ebe3;
  --muted: #a89f94;
  --border: #3d3830;
  --border-soft: #2a2824;
  --radius: 14px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 999;
  background: #080808;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: #fff;
}
.back-link {
  color: var(--gold); font-size: .9rem; font-weight: 500; transition: color .2s;
}
.back-link:hover { color: #fff; }

/* Title */
.page-title { text-align: center; padding: 24px 16px 0; }
.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 400; color: #fff;
}
.page-title h1 em { color: var(--gold); font-style: italic; }
.page-title p { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* Layout */
.customizer {
  display: grid; grid-template-columns: 390px 1fr; gap: 32px;
  max-width: 1240px; margin: 24px auto 0; padding: 0 28px 60px;
  align-items: start;
}

/* Preview Phone */
.preview-wrapper { position: sticky; top: 80px; }
.preview-label {
  font-size: .72rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
  animation: livePulse 1.5s ease infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}
.phone-shell {
  width: 100%; background: linear-gradient(160deg, #2a2a2a, #111);
  border-radius: 40px; padding: 14px 8px 20px;
  box-shadow: 0 0 0 2px #444, 0 0 0 5px #111, 0 28px 60px rgba(0,0,0,.8), 0 0 0 1px rgba(212,175,55,.1);
}
.phone-notch {
  width: 56px; height: 12px; background: #111;
  border-radius: 0 0 10px 10px; margin: 0 auto 10px; display: block;
}
.template-iframe {
  width: 100%; aspect-ratio: 9/16; border: none;
  border-radius: 28px; display: block; background: #120e1c; overflow: hidden;
}
.preview-actions { text-align: center; margin-top: 12px; }
.preview-actions a {
  color: var(--gold); font-size: .8rem;
  border-bottom: 1px dashed rgba(212,175,55,.4); transition: color .2s;
}
.preview-actions a:hover { color: #fff; }

/* Form Panel */
.form-panel {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border-soft);
  box-shadow: 0 4px 32px rgba(0,0,0,.45);
}
.form-panel-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: #fff; margin-bottom: 4px;
}
.form-panel-title em { color: var(--gold); font-style: italic; }
.form-subtitle { color: var(--muted); font-size: .86rem; margin-bottom: 28px; line-height: 1.6; }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px;
}
.form-input {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); padding: 12px 15px; border-radius: 11px;
  font-family: var(--font-body); font-size: .92rem;
  transition: border-color .3s, box-shadow .3s; outline: none;
}
.form-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}
.form-input::placeholder { color: rgba(168,159,148,.4); }
textarea.form-input { resize: vertical; min-height: 82px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
}
.form-section-title {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold);
  font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 7px;
}

/* Events & Schedule Customization */
.events-custom-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.event-custom-card {
  background: var(--surface2); border: 1.5px solid var(--border-soft);
  border-radius: 12px; padding: 12px 14px; transition: all .2s;
}
.event-custom-card.active { border-color: var(--gold); background: rgba(212,175,55,.04); }
.event-card-header { display: flex; align-items: center; justify-content: space-between; }
.event-check-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
}
.event-check-item input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0;
}
.event-check-item label {
  color: var(--text); font-size: .9rem; font-weight: 600; text-transform: none;
  letter-spacing: 0; margin: 0; cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.event-card-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
.event-card-body .form-row { margin-bottom: 0; gap: 10px; }
.event-card-body label { font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; display: block; }
.event-card-body .form-input { font-size: 0.82rem; padding: 8px 10px; }

/* Music Toggle */
.music-toggle-section {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1.5px solid var(--border-soft);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 6px;
}
.music-toggle-info { display: flex; align-items: center; gap: 10px; }
.music-toggle-info .music-emoji { font-size: 1.6rem; }
.music-toggle-info span { font-size: .9rem; font-weight: 500; color: var(--text); }
.music-toggle-info small { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.music-switch {
  position: relative; width: 52px; height: 28px; background: #333;
  border-radius: 14px; cursor: pointer; transition: background .3s; border: none; outline: none;
}
.music-switch.on { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.music-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%; transition: transform .3s; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.music-switch.on::after { transform: translateX(24px); }

/* Photo Upload Grid */
.photo-upload-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-bottom: 16px;
}
.photo-upload-slot {
  background: var(--surface2); border: 1.5px dashed var(--border);
  border-radius: 12px; padding: 16px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden; aspect-ratio: 4/5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.photo-upload-slot:hover { border-color: var(--gold); background: rgba(212,175,55,.05); }
.photo-upload-slot.has-image { border-style: solid; padding: 4px; background: rgba(0,0,0,0.4); }
.photo-upload-icon { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.6; }
.photo-upload-label { font-size: .75rem; color: var(--text); font-weight: 600; }
.photo-upload-hint { font-size: .65rem; color: var(--muted); margin-top: 4px; }
.photo-upload-input { display: none; }
.photo-preview { width: 100%; height: 100%; object-fit: contain; }
.photo-remove {
  position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6);
  color: #fff; width: 24px; height: 24px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; opacity: 0; transition: opacity .2s;
}
.photo-upload-slot:hover .photo-remove { opacity: 1; }

/* Book Button */
.btn-book-final {
  display: block; width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000; padding: 15px 32px; border: none; border-radius: 30px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all .3s; text-align: center; box-shadow: 0 4px 20px rgba(212,175,55,.35); margin-top: 6px;
}
.btn-book-final:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,.5); }
.price-note { text-align: center; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.price-note strong { color: var(--gold); }

/* Responsive */
@media(max-width: 980px) {
  .customizer { display: flex; flex-direction: column-reverse; gap: 22px; padding: 0 14px 48px; }
  .preview-wrapper { position: relative; top: 0; max-width: 320px; margin: 0 auto; width: 100%; }
  .header { padding: 12px 16px; }
}
@media(max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .events-check-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 18px; }
  .photo-upload-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Customizer Preview Modal ── */
.customizer-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.customizer-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.customizer-modal-container {
  background: #161619;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.customizer-modal-overlay.active .customizer-modal-container {
  transform: scale(1) translateY(0);
}

.customizer-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #f0ebe3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.customizer-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.customizer-modal-header {
  padding: 24px 28px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.customizer-modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #d4af37);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.customizer-modal-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.customizer-modal-warning {
  margin: 16px 28px 8px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.customizer-modal-warning .warning-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.customizer-modal-warning .warning-text {
  font-size: 0.86rem;
  color: #fef08a;
  line-height: 1.5;
}

.customizer-modal-warning .warning-text u {
  text-decoration-color: #eab308;
  font-weight: 700;
}

.customizer-modal-warning .warning-hindi {
  display: block;
  font-size: 0.78rem;
  color: #ca8a04;
  margin-top: 4px;
  opacity: 0.9;
}

.customizer-modal-body {
  padding: 14px 28px 20px;
  overflow-y: auto;
  flex: 1;
}

.customizer-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.summary-item.full-width {
  grid-column: 1 / -1;
}

.summary-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold, #d4af37);
  margin-bottom: 4px;
}

.summary-item-value {
  font-size: 0.9rem;
  color: #f0ebe3;
  font-weight: 500;
  word-break: break-word;
}

.summary-item-value.empty {
  color: rgba(168, 159, 148, 0.5);
  font-style: italic;
}

.summary-photos-preview {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.summary-photo-thumb {
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.customizer-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #111113;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 12px 22px;
  border-radius: 30px;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-btn-proceed {
  background: linear-gradient(135deg, var(--gold, #d4af37), var(--gold-light, #e8c96a));
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.modal-btn-proceed:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

@media(max-width: 540px) {
  .customizer-summary-grid {
    grid-template-columns: 1fr;
  }
  .customizer-modal-container {
    max-height: 95vh;
  }
  .customizer-modal-header,
  .customizer-modal-warning,
  .customizer-modal-body,
  .customizer-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .customizer-modal-footer {
    flex-direction: column-reverse;
  }
  .modal-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Help WhatsApp Banner ── */
.help-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 30px;
  padding: 6px 16px 6px 20px;
  margin-top: 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.help-banner-text {
  font-weight: 500;
  color: #f1f5f9;
}

.help-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #052e16 !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  line-height: 1;
}

.help-wa-btn:hover {
  background: #22c55e;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
}

.help-wa-btn svg {
  flex-shrink: 0;
}

@media(max-width: 640px) {
  .help-banner {
    flex-direction: column;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: center;
    gap: 10px;
  }
  .help-wa-btn {
    width: 100%;
    justify-content: center;
  }
}


