/* ============================================
   GiftAMovie — Checkout Flow Modal & Quiz Styles
   ============================================ */

/* --- Modal Overlay --- */
.gam-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gam-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Modal Container --- */
.gam-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #F5F1EA;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: gam-slide-up 0.35s ease;
  transition: max-width 0.35s ease;
}
/* Wider modal for quiz steps (after name/email) */
.gam-modal.gam-modal-expanded {
  max-width: 720px;
}
@keyframes gam-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Mobile: full-screen modal */
@media (max-width: 640px) {
  .gam-modal {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* --- Close Button --- */
.gam-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #6B7280;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.gam-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #111;
}

/* --- Modal Inner Content --- */
.gam-modal-body {
  padding: 40px 32px 32px;
}
@media (max-width: 640px) {
  .gam-modal-body {
    padding: 32px 20px 24px;
  }
}

/* --- Progress Bar --- */
.gam-progress-wrap {
  margin-bottom: 28px;
}
.gam-progress-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gam-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.gam-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, #F59E0B, #D97706);
  transition: width 0.4s ease;
}

/* --- Step Headings --- */
.gam-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 8px;
}
.gam-step-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* --- Form Elements --- */
.gam-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.gam-input,
.gam-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.gam-input:focus,
.gam-textarea:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.gam-input::placeholder,
.gam-textarea::placeholder {
  color: #9CA3AF;
}
.gam-textarea {
  min-height: 80px;
  resize: vertical;
}
.gam-field-group {
  margin-bottom: 16px;
}

/* --- Buttons --- */
.gam-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #F59E0B, #D97706);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.gam-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.gam-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gam-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: #6B7280;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.gam-btn-back:hover {
  color: #111;
}

.gam-btn-nav-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* --- Pill / Swatch Selectors --- */
.gam-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.gam-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 2px solid #E5E7EB;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}
.gam-pill:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}
.gam-pill.selected {
  border-color: #F59E0B;
  background: #FFFBEB;
  color: #92400E;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Skin tone swatches */
.gam-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.gam-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.gam-swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.gam-swatch:hover .gam-swatch-circle {
  transform: scale(1.1);
}
.gam-swatch.selected .gam-swatch-circle {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.gam-swatch-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
}

/* --- Photo Upload Zone --- */
.gam-upload-zone {
  border: 2px dashed #D1D5DB;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 12px;
}
.gam-upload-zone:hover,
.gam-upload-zone.dragover {
  border-color: #F59E0B;
  background: #FFFBEB;
}
.gam-upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.gam-upload-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.gam-upload-hint {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9CA3AF;
}

/* Uploaded files list */
.gam-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.gam-file-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #065F46;
}
.gam-file-tag button {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.gam-file-tag button:hover {
  color: #EF4444;
}

/* --- Scene Inputs --- */
.gam-scene-block {
  margin-bottom: 20px;
}
.gam-scene-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.gam-scene-sublabel {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9CA3AF;
  font-style: italic;
  margin-bottom: 6px;
}
.gam-add-scene-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.gam-add-scene-btn:hover {
  border-color: #F59E0B;
  color: #D97706;
}

/* --- Validation Error --- */
.gam-error-msg {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #DC2626;
  margin-top: 6px;
  display: none;
}
.gam-error-msg.visible {
  display: block;
}

/* --- Loading Spinner --- */
.gam-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}
.gam-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #E5E7EB;
  border-top-color: #F59E0B;
  border-radius: 50%;
  animation: gam-spin 0.8s linear infinite;
}
@keyframes gam-spin {
  to { transform: rotate(360deg); }
}
.gam-spinner-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

/* --- Checkout Screen --- */
.gam-checkout-success {
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 28px;
}
.gam-checkout-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #065F46;
  margin-bottom: 8px;
}
.gam-checkout-success p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.gam-checkout-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}
.gam-checkout-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #065F46;
}

/* Selected package card */
.gam-pkg-card {
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px 24px;
  background: #fff;
  margin-bottom: 12px;
}
.gam-pkg-card.featured {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.gam-pkg-card .gam-pkg-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}
.gam-pkg-card.featured .gam-pkg-badge {
  background: linear-gradient(to right, #F59E0B, #D97706);
  color: #fff;
}
.gam-pkg-card:not(.featured) .gam-pkg-badge {
  background: #F3F4F6;
  color: #6B7280;
}
.gam-pkg-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.gam-pkg-card .gam-pkg-price {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #111;
  margin-bottom: 10px;
}
.gam-pkg-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.gam-pkg-card ul li {
  display: flex;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
  align-items: flex-start;
}
.gam-pkg-card ul li .gam-check {
  color: #F59E0B;
  font-weight: 700;
  flex-shrink: 0;
}
.gam-cb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #F59E0B, #D97706);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.gam-cb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.gam-cb-btn-secondary {
  background: #F3F4F6;
  color: #374151;
  box-shadow: none;
}
.gam-cb-btn-secondary:hover {
  background: #E5E7EB;
  box-shadow: none;
  transform: none;
}

.gam-section-divider {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 16px;
  text-align: center;
}

.gam-checkout-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}
.gam-checkout-footer span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9CA3AF;
}

/* --- Error / Retry Screen --- */
.gam-error-screen {
  text-align: center;
  padding: 40px 20px;
}
.gam-error-screen .gam-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.gam-error-screen h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #DC2626;
  margin-bottom: 8px;
}
.gam-error-screen p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
}

/* Scrollbar styling for modal */
.gam-modal::-webkit-scrollbar {
  width: 6px;
}
.gam-modal::-webkit-scrollbar-track {
  background: transparent;
}
.gam-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

/* Section label inside appearance steps */
.gam-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}
