/* Modern Design System - TEAL PALETTE */
:root {
  /* Teal Primary Colors */
  --teal-primary: #1F6F78;
  --teal-dark: #135c67;
  --teal-accent: #26889B;
  --orange: #14b8a6;
  --orange-dark: #a7603c;
  
  /* Neutrals */
  --bg-main: #f9fafb;
  --bg-card: #ffffff;
  --neutral-soft: #f0f5f5;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Text */
  --text-primary: #2b2b2b;
  --text-secondary: #565656;
  --text-tertiary: #7c8899;
  
  /* Warm Sand Accent */
  --sand-warm: #faf7f1;
  --sand-light: #fffcf7;
  
  /* States */
  --success-green: #059669;
  --error-red: #EF4444;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: white;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Top teal accent strip */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-primary), var(--teal-accent));
  z-index: 200;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
background: linear-gradient(160deg, #d4e0e2 30%, #ffffff 70%);
  z-index: -1;
  opacity: 0.6;

}

.hidden {
  display: none !important;
}

/* Updated Header - Sticky with Smart Layout */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: padding 0.3s ease;
}

/* Scrolled state - compact header */
.header.scrolled {
  padding: 0.75rem 1rem;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Changed from center */
  gap: 2rem;
}

/* Logo - moves to left */
.logo-container {
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  transition: all 0.3s ease;
}

.header.scrolled .logo-img {
  height: 30px; /* Smaller when scrolled */
}

/* Hero content - hides on scroll */
.hero-content {
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
}

.header.scrolled .hero-content {
  display: none; /* Hide title/subtitle when scrolled */
}


/* Progress bar - hidden by default, shows on scroll */
.header .progress-wrapper {
  display: none;
  flex: 1;
  max-width: 500px;
  margin: 0;
  padding: 0;
}

/* Show when scrolled */
.header.scrolled .progress-wrapper {
  display: block;
}

/* Hide standalone progress when scrolled */
.progress-wrapper.standalone {
  margin: 2rem auto;
}

.header.scrolled ~ .progress-wrapper.standalone {
  display: none;
}

/* Container */
.container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.progress-wrapper {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}

.progress-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 6px 17px rgba(0,0,0,0.08);
  }

.progress-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.progress-step {
  flex: 1;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.progress-step.active {
  background: var(--orange);
  animation: fillProgress 0.4s ease;
}

@keyframes fillProgress {
  from { 
    transform: scaleX(0);
    transform-origin: left;
  }
  to { 
    transform: scaleX(1);
  }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.progress-labels span.active {
  color: var(--teal-primary);
  font-weight: 600;
}

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 20px -12px rgba(0, 0, 0, 0.5);
  /*box-shadow: var(--shadow-md);*/
  border: 0.5px solid var(--border-light);
  transition: var(--transition);
  animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pkg-option {
  /* Translucent white background */
  background: rgba(255, 255, 255, 0.7); 
  
  /* The "Magic" ingredient: Blurs everything behind the card */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* For Safari support */
  
  border-radius: 24px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Semi-transparent border acts as a highlight edge */
  border: 1px solid rgba(255, 255, 255, 0.4); 
  
  display: flex;
  flex-direction: column;
  position: relative;
  
  /* Softer, more "ambient" shadow instead of the heavy 0.5 opacity */
  box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.08);
}

/* Add a hover effect to make it feel alive */
.pkg-option:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-5px);
  border-color: rgba(31, 111, 120, 0.3); /* Subtle teal border glow on hover */
  box-shadow: 0 30px 60px -15px rgba(31, 111, 120, 0.15);
}
.pkg-option.selected {
  border-color: var(--teal-primary);
  background: #f3f8f8;
  box-shadow: 0 0 0 4px rgba(31, 111, 120, 0.1);
}

.pkg-option.selected::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 6.5 11.5 13 5'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  animation: checkPop 0.3s ease;
}

@keyframes checkPop {
  from { transform: scale(0) rotate(-45deg); }
  to   { transform: scale(1) rotate(0); }
}
.pkg-header {
  text-align: center;
  margin-bottom: 2rem;
}

.package-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.package-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pkg-pricing {
  text-align: center;
  margin-bottom: 2rem;
}

.package-price {
  font-size: 2.5rem;
  font-weight: 350;
  color: var(--teal-primary);
  letter-spacing: -0.02em;
}

.package-currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.pkg-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--teal-primary);
  color: white;
  border: 1px solid var(--teal-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
  box-shadow: 0 7px 14px -5px rgba(0, 0, 0, 0.5);
}

.pkg-btn:hover {
  background: transparent;
  color: var(--teal-primary);
}

.pkg-option.selected .pkg-btn {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* Mobile */
@media (max-width: 640px) {
  .package-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pkg-option {
    padding: 1.5rem;
  }
  
  .package-price {
    font-size: 2.5rem;
  }
}

/* ── Redo locked state ── */
#package-selection.locked .pkg-option {
    pointer-events: none;
    opacity: 0.4;
}

#package-selection.locked .pkg-option.selected {
    opacity: 1;
    pointer-events: none;
    border-color: var(--teal-primary);
    position: relative;
}

#package-selection.locked .pkg-option.selected::after {
    content: '✓ Your Package';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-primary);
}


.privacy-notice {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #698294;
  border: none;
  border-radius: 8px;
  margin: 2.5rem 0;
  align-items: flex-start;
}

.privacy-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.privacy-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.privacy-text strong {
  color: white;
  font-weight: 600;
}

/* Remove upload zone styling, add button style */
.upload-btn-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 17px rgba(31, 111, 120, 0.2);
  width: 100%;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(31, 111, 120, 0.3);
}

.upload-btn svg {
  width: 20px;
  height: 20px;
}

/* Hide the actual file input */
#portrait-upload,
#signature-upload {
  display: none;
}


.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #f3f6f4;
  border: 1px solid #eeeeee;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  line-height: 1.4;
}

.chip:hover {
  background: #f0f8f8;
  border-color: var(--teal-accent);
  color: var(--teal-dark);
}

.chip-icon {
  font-size: 0.875rem;
  line-height: 1;
}

.icon-svg-small {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip:hover .icon-svg-small {
  stroke: var(--teal-primary);
}





.info-tag {
  background: var(--neutral-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Background Removal */
.bg-removal-option {
  background: white;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  margin: 2rem 0;
  width: 100%;
  box-shadow: 0 15px 45px rgba(0,0,0,0.08);
  
}

.bg-removal-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  }

#bg-remove-toggle {
  display: none;
}

.check {
  cursor: pointer;
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.check:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(31, 111, 120, 0.05);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #d1d5db;
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: var(--teal-primary);
}

#bg-remove-toggle:checked + .check svg {
  stroke: var(--teal-primary);
}

#bg-remove-toggle:checked + .check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

#bg-remove-toggle:checked + .check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

.bg-removal-content {
  flex: 1;
}

.bg-removal-title {
  font-weight: 600;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.bg-removal-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Buttons */
.btn-primary,
.primary,
.btn-success {
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-main);
  width: 100%;
  box-shadow: 0 10px 15px rgba(31, 111, 120, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover:not(:disabled),
.primary:hover:not(:disabled),
.btn-success:hover {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #0e444d 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 20px rgba(31, 111, 120, 0.3);
}

.btn-primary:disabled,
.primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary,
.secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  width: 100%;
  box-shadow: 0 10px 15px rgba(0,0,0,0.08);

}

.btn-secondary:hover,
.secondary:hover {
  border-color: var(--teal-primary);
  background: var(--neutral-soft);
  box-shadow: 0 20px 25px rgba(0,0,0,0.08);

}

.btn-outline {
background: var(--teal-primary);
  color: white;
  border: 1px solid white);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-main);
  box-shadow: 0 15px 15px rgba(31, 111, 120, 0.2);
}


.btn-review {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-main);
  box-shadow: 0 17px 15px -12px rgba(0, 0, 0, 0.5);
}

.btn-outline:hover,
.btn-review:hover {
  background: var(--sand-light);
  border-color: var(--teal-dark);
  color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 25px 25px -12px rgba(0, 0, 0, 0.5);

}

.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

.btn-group,
.crop-actions,
.action-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-group .btn,
.btn-group button {
  flex: 1;
}

/* Success/Preview */
.success-banner {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Preview Frame with Badge */
.preview-container {
  position: relative;
  display: inline-block;
}

.format-badge {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: #059669;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(31, 111, 120, 0.4);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.preview-frame {
  position: relative;
  background: var(--bg-main);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-light);
}

.preview-frame img {
  max-width: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.check-circle,
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 111, 120, 0.3);
  animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 0 auto;
}

@keyframes scaleIn {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.code-display {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--teal-primary);
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--sand-light) 0%, #ffffff 100%);
  border: 1px dashed var(--teal-primary);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  text-align: center;
}

/* Checkered signature backgrounds */
.sig-preview-frame,
#sig-preview-canvas,
#preview-sig-canvas {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Zoom modal checkered */
#img-zoom-content {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
    linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border-radius: 8px;
}


.approval-note {
  background: #698294;
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 17px 15px rgba(0,0,0,0.08);
}

/* Loading */
.portrait-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 8px;
}

.spinner,
.loader-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem auto;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #446d8b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: var(--teal-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

/* Coupon Section */
#coupon-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

#coupon-input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.1);
}

/* Footer */
.footer {
  width: 100%;
  max-width: 100%;
  margin: 5rem auto 0;
  padding: 3rem 0 0;
  position: relative;
  display: block;
  background: transparent;
  border-top: 1px solid #e5e5e5;
     }

.footer-grid {
  max-width: 100%;       /* Keeps content centered and readable */
  margin: 0;          /* Centers the grid in the footer bar */
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6rem;
  border-bottom: 1px solid #e5e5e5;
  

}

.footer-column h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-column p,
.footer-recovery p,
.footer-about p {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-column {
margin-bottom: 2rem;

}

.footer-about p strong {
  color: var(--teal-dark);
}

.footer-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--teal-primary);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.625rem;
}

#claim-input {
  width: 100%;
  max-width: 200px;
  padding: 0.625rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.15em;
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
}

#claim-input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.1);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
 margin-bottom: 2 rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--neutral-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid #e5e5e5;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-primary);
  color: var(--text-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.social-icon:hover svg {
  stroke: white;
  color: white;
}

.social-icon .whatsapp-icon {
  fill: var(--text-primary);
  stroke: none;
}

.social-icon:hover .whatsapp-icon {
  fill: white;
  stroke: none;
}

.footer-bottom {
  background: var(--teal-dark);
  padding: 2rem 0 3rem;
  width: 100%;
  border-top: 1px solid #e5e5e5;
  margin-top: 2rem;
 
}

.footer-bottom-content {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0 2rem;
  text-align: center;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 1000;
}

.wa-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.wa-tooltip {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.8rem;
  color: var(--text-primary);
  max-width: 160px;
  z-index: 998;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.wa-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 1rem 2rem;
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
  
  .container {
    margin: 1.5rem auto;
    padding: 0 1rem 3rem;
  }
  
  .card {
    padding: 1.75rem 1.5rem;
  }
  
  .package-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-labels {
    font-size: 0.65rem;
  }
  
   
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    background: transparent;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0 1rem;
  }
  
   
  .wa-float {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 640px) {
  .progress-card {
    padding: 1rem;
  }
  
  .progress-step {
    height: 4px;
  }
  
  .info-chips {
    gap: 0.375rem;
  }
  
  .chip {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .wa-tooltip {
    bottom: 80px;
    right: 16px;
    font-size: 0.75rem;
    max-width: 140px;
  }
}

/* ========================================
   SUCCESS PAGE REDESIGN
   ======================================== */

.suc-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  margin: 2rem auto 1rem;
  max-width: 500px; /* ← add this */
  width: 100%;     
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 32px rgba(31,111,120,0.08),
    0 0 0 1px rgba(31,111,120,0.07);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle teal arc at top */
.suc-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(31,111,120,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Animated checkmark ── */
.suc-check-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
}

.suc-check-svg {
  width: 100%;
  height: 100%;
}

.suc-check-circle {
  stroke: var(--orange);
  stroke-width: 3.5;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: suc-circle 0.5s ease forwards 0.1s;
}

.suc-check-tick {
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: suc-tick 0.4s ease forwards 0.55s;
}

@keyframes suc-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes suc-tick {
  to { stroke-dashoffset: 0; }
}

/* ── Title ── */
.suc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d1f22;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.suc-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

/* ── Download button ── */
.suc-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #1F6F78 0%, #135c67 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(31,111,120,0.3);
  margin-bottom: 1.5rem;
}

.suc-download-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.suc-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(31,111,120,0.4);
}

.suc-download-btn:active {
  transform: translateY(0);
}

/* ── Recovery code block ── */
.suc-code-block {
  background: #f8fafa;
  border: 1px solid #e2f0f1;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.suc-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin: 0 0 0.4rem;
}

.suc-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #0d1f22;
  letter-spacing: 0.15em;
  margin: 0 0 0.3rem;
}

.suc-code-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Secondary actions ── */
.suc-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.suc-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.suc-action-btn:hover {
  border-color: #1F6F78;
  background: #f8fafa;
  color: #1F6F78;
}

/* ── Coupon (injected) ── */
.coupon-reward {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px dashed #6ee7b7;
  border-radius: 12px;
  text-align: center;
}

.coupon-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #059669;
  margin-bottom: 0.35rem;
}

.coupon-desc {
  font-size: 0.8rem;
  color: #374151;
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.coupon-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #065f46;
  letter-spacing: 0.12em;
  background: white;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  display: inline-block;
  margin-bottom: 0.4rem;
  border: 1px solid #d1fae5;
}

.coupon-terms {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Feedback section ── */
.suc-feedback {
  margin: 0 auto 2rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid #f3f4f6;
}

.suc-feedback-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0d1f22;
  margin: 0 0 0.35rem;
}

.suc-feedback-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.suc-feedback-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0.25rem;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  background: white;
  transition: all 0.2s;
}

.suc-feedback-btn:hover {
  border-color: #1F6F78;
  color: #1F6F78;
}

.suc-feedback-fb:hover {
  border-color: #1F6F78;
  color: #1F6F78;

}

.photo-type-option:hover {
  border-color: var(--teal-primary) !important;
  background: var(--sand-light);
  box-shadow: 0 6px 17px rgba(31, 111, 120, 0.2);
}

.photo-type-option.selected {
  border-color: var(--teal-primary) !important;
  background: var(--sand-light);
  box-shadow: 0 6px 17px rgba(31, 111, 120, 0.2);
}

.photo-tab-icon-svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 0.5rem;
  display: block;
}

.photo-tab.selected .photo-tab-icon-svg,
.photo-type-option.selected .photo-tab-icon-svg {
  stroke: var(--teal-primary);
}

/* Mobile: Stack vertically, center everything */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-container {
    width: 100%;
    text-align: center;
  }
  
  .logo-img {
    height: 36px; /* Smaller on mobile */
  }
  
  .header.scrolled .logo-img {
    height: 32px;
  }
  
  .hero-content {
    width: 100%;
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
  }
  
  /* Progress bar - full width, centered on mobile */
  .header .progress-wrapper {
    max-width: 100%;
    width: 100%;
  }
  
  /* When scrolled on mobile - everything stacked and centered */
  .header.scrolled .header-content {
    gap: 0.75rem;
  }
  
  .header.scrolled {
    padding: 0.5rem 1rem;
  }
  
  /* Progress labels - smaller text on mobile */
  .progress-labels {
    font-size: 0.65rem;
  }
  
  .progress-step {
    height: 4px;
  }
}

.upload-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.upload-disclaimer a {
  color: #059669; /* your green */
  text-decoration: underline;
}

.upload-disclaimer a:hover {
  text-decoration: none;
}

#sig-preview-canvas {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: none;
    margin: 0 auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.preview-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#preview-portrait-final {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


.preview-col-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #135c67;
    margin-bottom: 0.75rem;
    text-align: center;
}

#preview-sig-canvas {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

    .preview-col .preview-frame {
        width: 100%;
    }
}

#success-view {
    contain: layout;
}

.redo-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 1rem 0 0.5rem;
    text-align: center;
}

.suc-action-btn {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: #4a4a4a;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    align-items: center;
}

.suc-action-btn:hover {
    border-color: var(--teal-primary, #1F6F78);
    color: var(--teal-primary, #1F6F78);
}

.recovery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.recovery-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.recovery-card h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.recovery-sub {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.recovery-card input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
}

.recovery-card button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #1F6F78;
  color: white;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 10px;
}

.recovery-card button.secondary {
  background: #f3f4f6;
  color: #111827;
}

.divider {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 10px 0;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: #6b7280;
}

.hidden { display: none !important; }

/* ============================================================
   CROP SCREEN 
   ============================================================ */

.photo-stage {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

/* ── Outer glass wrapper 
   replace the inline style with class="crop-glass-wrap") ── */
.crop-glass-wrap {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(31, 111, 120, 0.35);
    border-radius: 10px;
    padding: 0;
    box-shadow:
        0 0 0 1px rgba(31, 111, 120, 0.1),
        0 20px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ── Photo frame: deep navy gradient instead of flat dark green ── */
.photo-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}


/* ── Status pill: dark glass instead of white ── */
.status-pill {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 18, 34, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(31, 111, 120, 0.4);
    border-radius: 999px;
    padding: 8px 20px 8px 14px;
    gap: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 500;
    color: rgba(220, 240, 242, 0.9);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Pill dot: brighter teal, pulses while detecting ── */
.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ab8c8;
    flex-shrink: 0;
    transition: background 0.3s;
    animation: pill-dot-pulse 1.4s ease-in-out infinite;
}

.pill-dot.detected {
    background: #4ade80;
    animation: none;
}

.pill-dot.warning {
    background: #f59e0b;
    animation: none;
}

@keyframes pill-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── Photo actions ── */
.photo-actions {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Adjust mode hint text ── */
#photo-actions-adjust p {
    color: rgba(150, 185, 190, 0.7);
}

/* ── btn-link: scoped to photo-stage so it doesn't affect other links ── */
.photo-stage .btn-link {
    background: none;
    border: none;
    color: rgba(150, 185, 190, 0.65);
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
}

.photo-stage .btn-link:hover {
    color: #2ab8c8;
}

/* Keep global btn-link for anywhere else it's used */
.btn-link {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
}

.btn-link:hover { color: #6b7280; }

/* ── Zoom row ── */
.zoom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Zoom buttons: dark themed ── */
.zoom-btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(31, 111, 120, 0.35);
    background: rgba(10, 22, 40, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    color: #2ab8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.zoom-btn-sm:hover {
    background: rgba(31, 111, 120, 0.25);
    border-color: rgba(31, 111, 120, 0.6);
}

/* ── Snap animations (keep exactly as-is — JS depends on these) ── */
@keyframes pill-snap {
    0%   { transform: translateX(-50%) scale(0.85); opacity: 0; }
    60%  { transform: translateX(-50%) scale(1.05); opacity: 1; }
    100% { transform: translateX(-50%) scale(1);    opacity: 1; }
}

@keyframes frame-snap {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.012); }
    100% { transform: scale(1); }
}

.status-pill.snap {
    animation: pill-snap 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.photo-frame.snap {
    animation: frame-snap 0.3s ease-out forwards;
}


/* Hide the raw file input completely */
#portrait-upload-gallery {
    display: none;
}

/* Style the secondary button to match */
.upload-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.9rem 1.25rem;
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid #2EC4B6;
    background: transparent;
    color: #2EC4B6;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

}.upload-btn-secondary svg {
  width: 18px;
  height: 18px;
  stroke: #2EC4B6;
}

.upload-btn-secondary:hover {
  background: rgba(46, 196, 182, 0.08);
}

.upload-btn-secondary:active {
  transform: scale(0.97);
}