/*
 * Luxurious landing page stylesheet for the Story Gift module.
 * This stylesheet defines a refined, dark‑elegant theme with emerald accents,
 * generous spacing and modern typography. All styles are scoped to the
 * module’s root element (#pssgfb-root) to avoid collisions with the
 * surrounding PrestaShop theme.
 */

/* Base variables scoped to the module root.  The accent color is inherited
   from the inline style `--sg-accent` defined on the root. */
#pssgfb-root {
  --color-accent: var(--sg-accent, #0a6d5e);
  --color-bg: #0b0b0f;
  --color-bg-card: #0b0b0f;
  --color-text: #ffffff;
  --color-muted: #c0c7d1;
  --radius-lg: 24px;
  --radius-md: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset within the module */
#pssgfb-root * {
  box-sizing: border-box;
  /* Margin reset is commented out to avoid overriding margins from nested modules */
  /* margin: 0; */
  padding: 0;
}

/* Typography */
#pssgfb-root h1,
#pssgfb-root h2,
#pssgfb-root h3 {
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
#pssgfb-root h1 { font-size: 3rem; margin-bottom: 1rem; }
#pssgfb-root h2 { font-size: 2rem; margin-bottom: 1rem; }
#pssgfb-root h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

#pssgfb-root p { color: var(--color-muted); margin-bottom: 1rem; }

#pssgfb-root a { color: var(--color-accent); text-decoration: none; }

/* Container */
#pssgfb-root .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero section */
#pssgfb-root .hero {
  position: relative;
  /* Remove hero padding to bring the section closer to the top */
  /* padding: 6rem 1rem; */
  text-align: center;
  /* Use a solid dark background instead of a gradient to match the updated theme */
  background-color: #0b0b0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#pssgfb-root .hero p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Buttons */
#pssgfb-root .cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
#pssgfb-root .btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}
#pssgfb-root .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text);
}
#pssgfb-root .btn-primary:hover {
  background-color: #0c836f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
#pssgfb-root .btn-ghost {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: #ffffff;
}
#pssgfb-root .btn-ghost:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
}

/* Bullet list */
#pssgfb-root .bullets {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  color: var(--color-muted);
}
#pssgfb-root .bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
#pssgfb-root .bullets svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

/* Section layout */
#pssgfb-root section {
  margin-top: 4rem;
}
#pssgfb-root .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Process section */
#pssgfb-root .process-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#pssgfb-root .process-card {
  background-color: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#pssgfb-root .process-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}
#pssgfb-root .process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
#pssgfb-root .process-card p {
  font-size: 0.95rem;
}

/* Packs section */
#pssgfb-root .packs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#pssgfb-root .pack {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 320px;
  position: relative;
}
#pssgfb-root .pack.featured {
  border-width: 2px;
  border-color: var(--color-accent);
  /* Add a gentle pulse animation to draw the user’s eye to the featured model */
  animation: featurePulse 6s infinite ease-in-out;
}

@keyframes featurePulse {
  0%, 100% {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 10px 2px var(--color-accent);
  }
}
#pssgfb-root .pack-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
#pssgfb-root .pack-header span:first-child {
  font-size: 1.3rem;
  font-weight: 700;
}
#pssgfb-root .pack-header .price {
  color: var(--color-muted);
  font-size: 1.1rem;
}
#pssgfb-root .pack ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
#pssgfb-root .pack li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}
#pssgfb-root .pack li svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}
#pssgfb-root .pack .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
#pssgfb-root .pack .actions .btn {
  flex: 1;
}
#pssgfb-root .badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Examples section */
#pssgfb-root .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#pssgfb-root .example-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1 1 300px;
  max-width: 360px;
}
#pssgfb-root .example-card img {
  width: 100%;
  display: block;
  height: auto;
}
#pssgfb-root .example-card .caption {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Testimonials section */
#pssgfb-root .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#pssgfb-root .testimonial {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 320px;
}
#pssgfb-root .stars {
  /* Use accent color for star icons in the testimonials to align with the brand’s green palette */
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
#pssgfb-root .testimonial p:first-of-type {
  font-style: italic;
}
#pssgfb-root .testimonial p:last-of-type {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Consent section */
#pssgfb-root .consent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
#pssgfb-root .consent-item {
  background-color: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 320px;
}
#pssgfb-root .consent-item svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* Brief form */
#pssgfb-root .brief-form {
  max-width: 600px;
  /* Center the form container horizontally to align with other sections */
  margin: 0 auto;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);

  /* Force left alignment of all text inside the contact form */
  text-align: left !important;
}
#pssgfb-root .brief-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-muted);
  /* Force labels to align text to the left */
  text-align: left !important;
}
#pssgfb-root .brief-form input,
#pssgfb-root .brief-form select,
#pssgfb-root .brief-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Darken input fields to harmonize with the new background palette */
  background-color: #14171e;
  color: var(--color-text);
  margin-bottom: 1rem;
}
#pssgfb-root .brief-form input:focus,
#pssgfb-root .brief-form select:focus,
#pssgfb-root .brief-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
#pssgfb-root .brief-form .checkbox {
  display: flex;
  /* Place checkbox and its label on the same row and align them to the left */
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start !important;
  /* Ensure the checkbox container spans the full width so it aligns with other form fields */
  width: 100%;
  /* Allow the label text to wrap onto the next line when necessary */
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
#pssgfb-root .brief-form .checkbox input {
  margin-right: 0.5rem;
}
#pssgfb-root .brief-form .actions {
  display: flex;
  gap: 1rem;
}
#pssgfb-root .brief-form .actions .btn {
  flex: 1;
}

/* Accent word styling for the cycling headline */
#pssgfb-root .accent-word {
  color: var(--color-accent);
}

/* Spacer element to add breathing room before the site footer */
#pssgfb-root .footer-spacer {
  height: 4rem;
}

/* Override alignment within the contact section to align content to the left */
#pssgfb-root #sg-brief .container,
#pssgfb-root .brief-form {
  text-align: left !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #pssgfb-root .cta-buttons {
    flex-direction: column;
  }
  #pssgfb-root .process-card,
  #pssgfb-root .pack,
  #pssgfb-root .testimonial,
  #pssgfb-root .consent-item,
  #pssgfb-root .example-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  #pssgfb-root .container {
    padding: 1.5rem 1rem;
  }
}