/* ============================================
   Pawfect Moment - Coloring Book Order Page
   Mobile-first single-page product/form
   ============================================ */

:root {
  color-scheme: light only;
  --primary: #F38181;
  --primary-hover: #E06B6B;
  --primary-light: #FDDEDE;
  --primary-bg: #FFF0EB;
  --accent: #B5E0E8;
  --accent-light: #E5F4F7;
  --bg-warm: #FFF8F0;
  --text-dark: #1A1A1A;
  --text-body: #555555;
  --text-muted: #888888;
  --white: #ffffff;
  --star: #FFB800;
  --success: #4CAF50;
  --error: #E53935;
  --border: #E8E8E8;
  --border-focus: #F38181;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Caveat', cursive;
  --transition: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 680px;
  margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 34px; width: auto; }
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 20px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-content { padding-bottom: 0; }
.page-header { text-align: center; padding: 32px 0 24px; }
.page-title {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 14px;
}
.script-text {
  font-family: var(--font-script);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15em;
}
.page-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.faq-toggle:hover { background: #fafafa; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq-toggle[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-content.open {
  max-height: 300px;
}
.faq-content p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}
.faq-content a { color: var(--primary); text-decoration: underline; }

/* ============================================
   FORM SECTIONS
   ============================================ */
.order-form { margin-bottom: 0; }
.form-step {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.step-body { padding-left: 44px; }

/* ---- Inputs ---- */
.input-group { margin-bottom: 18px; }
.input-group:last-child { margin-bottom: 0; }
.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: #bbb; }
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(243, 129, 129, 0.12);
}
.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}
.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.error-msg {
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
}

/* Phone Input */
.phone-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-flag {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  background: #fafafa;
}
.phone-input { flex: 1; }

/* ============================================
   PHOTO UPLOAD
   ============================================ */
.photo-guidelines-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-light);
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: #4a8a9a;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background var(--transition);
}
.photo-guidelines-toggle:hover { background: #d4ecf2; }
.photo-guidelines {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-bottom: 0;
}
.photo-guidelines.open {
  max-height: 200px;
  margin-bottom: 14px;
}
.photo-guidelines ul {
  padding: 12px 16px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
}
.photo-guidelines li {
  font-size: 13px;
  color: var(--text-body);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.photo-guidelines li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Upload Zone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: #fafafa;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(243, 129, 129, 0.04);
}
.upload-icon { color: var(--text-muted); margin-bottom: 12px; }
.upload-text { font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.upload-limit { font-size: 12px; color: var(--text-muted); }

/* Upload Preview */
.upload-preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-preview-card {
  position: relative;
  display: inline-block;
}
.upload-preview-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--success);
  box-shadow: var(--shadow-md);
}
.upload-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  border: 2px solid var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-change-photo {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================
   FORMAT SELECTION
   ============================================ */
.format-subtitle {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 14px;
}
.format-options { display: flex; flex-direction: column; gap: 10px; }
.format-option { cursor: pointer; }
.format-radio { position: absolute; opacity: 0; pointer-events: none; }
.format-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
}
.format-radio:checked + .format-card {
  border-color: var(--primary);
  background: rgba(243, 129, 129, 0.04);
  box-shadow: 0 0 0 3px rgba(243, 129, 129, 0.12);
}
.format-info { display: flex; align-items: center; gap: 12px; }
.format-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.format-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.format-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.format-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}
.best-value { overflow: visible; }
.best-value-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--success);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================
   ORDER SUMMARY (Quantity + Total)
   ============================================ */
.order-summary {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.quantity-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #fafafa;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: #eee; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-value {
  width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  padding: 8px 0;
}
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.total-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}
.total-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ============================================
   CONSENT
   ============================================ */
.consent-row { padding: 20px 0; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-check {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.consent-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.consent-text a { color: var(--text-body); text-decoration: underline; }

/* ============================================
   BUY NOW BUTTON
   ============================================ */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(243, 129, 129, 0.35);
  margin-bottom: 28px;
}
.btn-buy:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(243, 129, 129, 0.45);
  transform: translateY(-1px);
}
.btn-buy:active { transform: translateY(0); }
.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 24px 0 48px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.trust-badge svg { flex-shrink: 0; }
.trust-badge span { font-size: 13px; font-weight: 500; }

/* ============================================
   TRANSFORMATION SECTION
   ============================================ */
.transformation {
  padding: 56px 0;
  background: var(--bg-warm);
  text-align: center;
}
.section-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-body);
  text-align: center;
  max-width: 460px;
  margin: 10px auto 0;
  line-height: 1.6;
}
.badge-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.transform-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.transform-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.transform-images {
  display: flex;
  align-items: center;
  gap: 6px;
}
.transform-img-wrap { flex: 1; border-radius: var(--radius-sm); overflow: hidden; }
.transform-placeholder {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
}
.transform-placeholder.before { background: linear-gradient(135deg, #fce4d6, #f7d5c4); color: var(--primary); }
.transform-placeholder.after { background: linear-gradient(135deg, #e8f4f8, #d4ecf2); color: #5b9eb3; }
.transform-arrow { flex-shrink: 0; width: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.transform-label { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--text-dark); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 56px 0;
  background: var(--white);
  text-align: center;
}
.stars-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 14px 0 24px;
}
.star-icon { width: 20px; height: 20px; }
.testimonial-carousel { overflow: hidden; touch-action: pan-y; }
.testimonial-track { display: flex; transition: transform 0.4s ease; }
.testimonial-slide { min-width: 100%; padding: 0 4px; box-sizing: border-box; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
}
.testi-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.testi-stars svg { width: 14px; height: 14px; }
.testimonial-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.testimonial-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.testi-author strong { font-size: 13px; color: var(--text-dark); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-bg);
  padding: 40px 0 20px;
}
.footer .container { max-width: 680px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}
.footer-logo { height: 36px; width: auto; margin: 0 auto; }
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-body);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.footer-bottom p { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.footer-legal { display: flex; justify-content: center; gap: 16px; }
.footer-legal a { font-size: 11px; color: var(--text-muted); }
.footer-legal a:hover { color: var(--primary); }

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loading-overlay.active { display: flex; }
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--text-body); }

/* ============================================
   SUCCESS OVERLAY
   ============================================ */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 3001;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.success-overlay.active { display: flex; }
.success-content {
  text-align: center;
  max-width: 400px;
}
.success-icon { margin-bottom: 20px; }
.success-icon svg { margin: 0 auto; }
.success-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.success-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 8px;
}
.success-sub { font-size: 13px !important; color: var(--text-muted) !important; margin-bottom: 24px !important; }
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition);
}
.btn-back:hover { background: var(--primary-hover); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .page-header { padding: 48px 0 32px; }
  .trust-badges { gap: 36px; }
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    text-align: left;
    gap: 32px;
  }
  .footer-logo { margin: 0; }
  .footer-tagline { margin-left: 0; margin-right: 0; }
}

@media (min-width: 768px) {
  .nav-hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 1024px) {
  .transform-cards { flex-direction: row; }
  .transform-card { flex: 1; }
  .transform-images { flex-direction: column; }
  .transform-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
