/* AI Maayai - Offers page (light, friendly theme) */

body, .main-content{
    background: #f0f2f4;
}

.offers-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2933;
  padding-bottom: 3rem;
}

.offers-hero {
  text-align: left;
}

.offers-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #0b7285;
}

.offers-title {
  font-size: 2rem;
  font-weight: 700;
  color: #102a43;
}

.offers-subtitle {
  max-width: 560px;
  font-size: 0.95rem;
  color: #52606d;
}

.offers-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background-color: #e6fffa;
  border: 1px solid #b2f5ea;
  font-size: 0.8rem;
  color: #055052;
}

.offers-steps {
  border-radius: 0.75rem;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}

.offers-step-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.offers-step-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #9fb3c8;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #cbd2d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background-color: #ffffff;
}

.step-label {
  font-weight: 500;
}

.offers-step-item.is-active .step-number {
  border-color: #0b7285;
  background-color: #0b7285;
  color: #ffffff;
}

.offers-step-item.is-active .step-label {
  color: #102a43;
}

/* Countdown + main card */

.offers-main .countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d8e2ec;
  background-color: #f8fafc;
  font-size: 0.8rem;
  color: #52606d;
}

#offerCountdown {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0b7285;
}

/* Filters */

#categoryFilters {
  display: flex;
  justify-content: flex-start;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7b8794;
  margin-right: 0.5rem;
}

.btn-filter {
  border-radius: 999px;
  border: 1px solid #cbd2d9;
  padding: 0.25rem 0.85rem;
  font-size: 1.5rem;
  color: #52606d;
  background-color: #ffffff;
}

.btn-filter.active,
.btn-check:checked + .btn-filter {
  background-color: #0b7285;
  border-color: #0b7285;
  color: #ffffff;
}

.selection-hint {
  min-height: 1.25rem;
}

/* Package grid */

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.package-card {
  border-radius: 0.9rem;
  border: 1px solid #e1e7ee;
  background-color: #ffffff;
  padding: 0.9rem;
  cursor: pointer;
  transition: box-shadow 0.18s ease, transform 0.18s ease,
    border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.package-card:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.package-card.selected {
  border-color: #0b7285;
  box-shadow: 0 0 0 1px rgba(11, 114, 133, 0.3),
    0 14px 26px rgba(15, 23, 42, 0.12);
}

.package-header-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #102a43;
}

.package-header-subtitle {
  font-size: 0.8rem;
  color: #7b8794;
}

.package-ribbon {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #b54708;
  background-color: #fffaeb;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  align-self: flex-start;
  margin-top: 0.35rem;
}

.package-features {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0.35rem 0;
  font-size: 0.8rem;
  color: #52606d;
}

.package-features li + li {
  margin-top: 0.15rem;
}

.package-features li::before {
  content: "• ";
  color: #0b7285;
}

.package-delivery {
  font-size: 0.78rem;
  color: #9fb3c8;
  margin-bottom: 0.35rem;
}

.package-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.price-actual {
  font-size: 0.78rem;
  color: #9fb3c8;
  text-decoration: line-through;
}

.price-offer {
  font-size: 1rem;
  font-weight: 700;
  color: #0b7285;
}

.price-note {
  font-size: 0.75rem;
  color: #9fb3c8;
}

.package-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.75rem;
  color: #7b8794;
}

.package-meta-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background-color: #f1f5f9;
}

/* Sample image thumbnail */

.package-thumb {
  margin-top: 0.4rem;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid #e1e7ee;
}

.btn-primary {
    color: #fff;
    background-color: #3BAA9C;
    border-color: #3BAA9C;
}

.package-thumb img {
  width: 100%;

  object-fit: cover;
  display: block;
}

/* Main CTA */

#createOrderBtn {
  min-width: 260px;
  display: none;
}

.offers-next-btn {
  padding-inline: 2rem;
}

/* Section blocks */

.section-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e1e7ee;
  padding: 1.1rem 1.2rem;
}

.section-header {
  display: flex;
  flex-direction: column;
}

.section-title {
  color: #102a43;
  font-weight: 600;
}

.section-subtitle {
  color: #7b8794;
}

/* Testimonials */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.testimonial-card {
  border-radius: 0.7rem;
  border: 1px solid #edf2f7;
  background-color: #f9fafb;
  padding: 0.8rem 0.9rem;
}

.testimonial-stars {
  font-size: 0.75rem;
  color: #f6b100;
  margin-bottom: 0.25rem;
}

.testimonial-text {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #364152;
}

.testimonial-name {
  font-size: 0.8rem;
  color: #7b8794;
}

/* Process */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.process-step {
  border-radius: 0.8rem;
  border: 1px solid #edf2f7;
  background-color: #f9fafb;
  padding: 0.75rem 0.9rem;
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background-color: #0b7285;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.process-title {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  color: #102a43;
}

.process-text {
  color: #52606d;
}

/* Gallery tags */

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d8e2ec;
  background-color: #f8fafc;
  color: #52606d;
}

/* Trust & FAQ */

.trust-list {
  padding-left: 1.1rem;
  color: #52606d;
}

.trust-list li + li {
  margin-top: 0.2rem;
}

.trust-legal {
  color: #7b8794;
}

.usp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.usp-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #f8fafc;
  border: 1px solid #d8e2ec;
  color: #364152;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-question {
  font-size: 0.9rem;
  font-weight: 500;
  color: #102a43;
}

.faq-answer {
  color: #52606d;
}

/* WhatsApp FAB */

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  border-radius: 999px;
  background-color: #25d366;
  color: #052e16;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1050;
}

.whatsapp-fab:hover {
  color: #02170b;
  filter: brightness(1.05);
}

.whatsapp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #bbf7d0;
}

.whatsapp-label {
  white-space: nowrap;
}

/* Modal */

#alertModal .modal-content {
  border-radius: 0.8rem;
}

#alertModal .modal-header {
  border-bottom-color: #edf2f7;
}

#alertModal .modal-title {
  font-size: 1rem;
  font-weight: 600;
}

#alertModalBody {
  font-size: 0.9rem;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .offers-trust-bar {
    border-radius: 0.75rem;
  }

  .offers-steps {
    padding-inline: 0.75rem;
  }

  .offers-step-list {
    gap: 0.5rem 1.5rem;
  }

  .whatsapp-label {
    display: none;
  }
}
/* === Step 2 – Upload Photo (light theme) === */

.step2-upload {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.upload-shell {
  margin-top: 0.5rem;
}

.photo-upload-area {
  border: 2px dashed #0b7285;
  border-radius: 0.9rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  max-width: 70%;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
}

.photo-upload-area:hover {
  background-color: #edf2ff;
  border-color: #0b7285;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.photo-upload-area.dragover {
  background-color: #e0fbff;
  border-color: #0e9f6e;
}

.upload-input {
  display: none; /* hide native file input */
}

.upload-icon {
  font-size: 2.4rem;
  color: #0b7285;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 1rem;
  font-weight: 500;
  color: #102a43;
  margin-bottom: 0.15rem;
}

.upload-hint {
  font-size: 0.8rem;
  color: #7b8794;
}

/* Preview area */

.preview-container {
  margin-top: 1.5rem;
  text-align: center;
  display: none;
}

.preview-image {
  max-width: 100%;
  max-height: 380px;
  border-radius: 0.9rem;
  border: 1px solid #d8e2ec;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  object-fit: cover;
}

/* Buttons under preview */

.preview-actions {
  display: none;
  margin-top: 0.75rem;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Status text */

.upload-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.status-success {
  color: #0e9f6e;
}

.status-error {
  color: #c81e1e;
}

.status-uploading {
  color: #0b7285;
}

/* Loader overlay (reuse, but light overlay for this page) */

.capture-loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.capture-loader-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background-color: #ffffff;
  color: #102a43;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

.capture-loader .spinner-border {
  border-width: 0.18rem;
  border-color: #0b7285;
  border-right-color: transparent;
}

/* Buttons group alignment */

.step2-upload .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.step2-upload .button-group .btn {
  min-width: 180px;
}

/* Mobile tweaks */

@media (max-width: 768px) {
  .photo-upload-area {
    padding: 1.5rem 1.1rem;
  }

  .preview-image {
    max-height: 320px;
  }

  .step2-upload .button-group .btn {
    width: 100%;
    min-width: 0;
  }
}
/* =========================================================
   STEP 2 UI ENHANCEMENTS
   ========================================================= */

/* Center the entire Step 2 card */
.step2-upload {
  max-width: 760px;
  margin: 30px auto;
}

/* Reduce empty white area around upload card */
.step2-upload .section-card {
  padding: 2rem 2.2rem !important;
}

/* Improve drop-zone look */
.photo-upload-area {
  border: 2px dashed #1971c2;
  border-radius: 14px;
  padding: 2.5rem 1.8rem;
  background: #f8fbff;
  transition: 0.2s ease;
}

.photo-upload-area:hover {
  border-color: #228be6;
  background: #eef6ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.photo-upload-area.dragover {
  border-color: #2f9e44;
  background: #ebfff2;
}

/* Typography inside drop zone */
.upload-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}
.upload-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Preview image improvements */
.preview-container {
  margin-top: 1.6rem !important;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  max-height: 360px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
}

/* Align Change/Remove buttons neatly */
.preview-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Success / error messages */
.upload-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.status-success {
  color: #0f9d58;
}
.status-error {
  color: #d93025;
}

/* =========================================================
   Generate AI Photo button (disabled look)
   ========================================================= */

#continue-btn {
  min-width: 200px;
  font-weight: 600;
  border-radius: 8px;
}

#continue-btn:disabled {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  border: none;
  box-shadow: none !important;
  opacity: 0.8;
}

#continue-btn:not(:disabled) {
  background: #228be6 !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(34, 139, 230, 0.25);
}

#continue-btn:not(:disabled):hover {
  background: #1c7ed6 !important;
  transform: translateY(-1px);
}

/* Group layout alignment */
.step2-upload .button-group {
  margin-top: 1.5rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.step2-upload p.text-muted {
  margin-top: 1rem !important;
}

/* mobile */
@media (max-width: 767px) {
  .photo-upload-area {
    padding: 1.8rem 1.2rem;
  }
  .preview-image {
    max-height: 300px;
  }
  .button-group button {
    width: 100%;
  }
}
/* Hide drop-zone completely when JS sets it to display:none */
#drop-zone[style*="display: none"] {
  display: none !important;
}
/* ============================
   STEP 3 – Preview & Pay
   ============================ */

#step3-results {
  max-width: 960px;
  margin: 0 auto 2rem;
}

.results-title {
  text-align: left;
}

/* Token pill */
.step3-token-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0b7285;
  font-size: 0.9rem;
}

/* Results grid reused from ViewResults but light */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.result-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dee2e6;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.result-card img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.result-card-body {
  /* padding: 0.75rem 1rem; */
}

/* Loading + placeholder */
.step3-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7285;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 0.5rem;
  color: #6b7280;
}

.pulse {
  width: 70%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.25),
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0.25)
  );
  background-size: 200% 100%;
  animation: pulse-line 1.1s ease-in-out infinite;
}

@keyframes pulse-line {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Actions */
.step3-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.step3-action-bar .action-btn {
  background: #228be6;
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 139, 230, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.step3-action-bar .action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(34, 139, 230, 0.4);
}

.step3-action-bar .action-btn.secondary {
  background: #f8fafc;
  color: #0b7285;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.no-results {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 1.5rem 1rem;
}

.error-message {
  text-align: center;
  color: #d93025;
  font-size: 0.95rem;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix Step 3 preview image cropping */
#step3-results .result-card {
  overflow: visible; /* don’t clip the image */
}

#step3-results .result-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none; /* allow natural height */
  object-fit: contain; /* show full image, no crop */
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* ============== STEP 4 – Payment ================= */

#step4-payment {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.step4-body {
  padding-top: 0.5rem;
}

.step4-meta .badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.step4-controls {
  justify-content: flex-start;
}

/* Light overlay loader reused from payment page */
.payment-loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.payment-loader-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background-color: #ffffff;
  color: #102a43;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
}

.payment-loader .spinner-border {
  border-width: 0.18rem;
  border-color: #0b7285;
  border-right-color: transparent;
}
/* HERO MODERN */
.hero-modern {
    padding-top: 20px;
}

.hero-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.hero-kicker {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-title span {
    color: #3BAA9C;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 14px;
}

.hero-trust span {
    background: #f5f7fa;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 500;
}

.hero-cta {
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
}

.hero-price-note {
    margin-top: 12px;
    font-size: 14px;
    color: #495057;
}

.hero-price-note span {
    color: #6c757d;
    font-size: 13px;
}

.hero-image-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
