/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
/* 1. On isole un conteneur de scroll */
.snap-container {
  height: 100vh;                /* exactement la hauteur de la fenêtre */
  overflow-y: auto;             /* scroll vertical activé */
  scroll-snap-type: y mandatory;/* snap vertical obligatoire */
  scroll-behavior: smooth;      /* défilement fluide */
  -webkit-overflow-scrolling: touch;
}

/* 2. Chaque enfant direct « snappe » au début */
.snap-container > section:not(.continue-button-section) {
  height: 100vh;             /* also full-screen */
  scroll-snap-align: center; /* ⬆ center-align instead of start */
  scroll-snap-stop: always;  /* never skip past this snap point */
  display: flex;             /* prepare for flex-centering inside */
  align-items: center;
  justify-content: center;
}

.snap-container > .continue-button-section {
  height: auto;            /* let it size to its content */
  scroll-snap-align: none; /* no snap point here */
}

.snap-container > .character-selection-section {
  height: 70vh !important;
  top: 0;
}



:root {
  --preferred-color: #42BBEE;
  --preferred-color-rgb: 66, 187, 238; /* RGB values for #42BBEE */
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Hero Container for Side-by-Side Layout */
/* Après : */
.hero-container {
  display: flex;
  flex-direction: row;
  /* laissez le conteneur s’adapter à son contenu */
  height: auto;
  width: auto;

  /* autorisez le scroll et les interactions */
  overflow: visible;
  position: static;       /* ou supprimez complètement cette ligne */
}

.hero-container.hidden {
  display: none;           /* ou visibility: hidden; */
  pointer-events: none;
}

/* Hero Text Styles (Left Side) */
.hero-text {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 5vh;
}

/* Video Container Styles (Right Side) */
.video-container {
  flex: 1;
  height: 100vh;
  overflow: hidden;
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the video covers the entire container */
}

/* Animation for sections to float in on scroll */
@keyframes floatIn {
  0% {
    transform: translateY(50px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Animation for hero section to fade out on scroll */
@keyframes fadeOut {
  0% {
  }
  100% {
  }
}
/* —— Modal base styles —— */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal.hidden {
  display: none;
}
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.modal-box {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1;
}
.modal-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
.modal-box p {
  margin-bottom: 1.5rem;
  color: #555;
}
/* inputs */
.modal-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
/* buttons */
.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.btn-primary {
  background-color: var(--preferred-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.btn-link {
  background: none;
  border: none;
  color: #555;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* 1) Make sure every “page” can position children absolutely */
.snap-container > * {
  position: relative;
}

.scroll-arrow {
  /* keep size & vertical position */
  width: 4rem;
  height: 4rem;
  bottom: 20px;

  /* center it */
  left: 50%;
  transform: translateX(-50%);

  /* rest of your rules */
  position: absolute;
  content: "";
  pointer-events: auto;
  color: var(--preferred-color);

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <line x1='12' y1='5'  x2='12' y2='19'/>\
  <polyline points='19 12 12 19 5 12'/>\
</svg>");

  background-size: contain;
  background-repeat: no-repeat;
  animation: float 2s ease-in-out infinite;
}

/* Hide the arrow on the section right before the button */
.snap-container > section:nth-last-child(2) .scroll-arrow {
  display: none;
}

/* 3) Re-use your existing float keyframes */
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(10px); }
}

/* Color Selection Section Styles */
.color-selection-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1000px;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
}

.color-selection-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.color-text {
  flex: 1;
  text-align: center;
}

.color-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--preferred-color);
  margin-bottom: 20px;
}

.color-circles {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex: 1;
}

.color-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.color-circle.selected {
  border: 3px solid #333;
}

/* Ensure the color picker trigger maintains its dashed border when selected */
.color-picker-trigger.selected {
  border: 2px dashed #333 !important;
}

.color-picker-trigger {
  background-color: rgb(248, 245, 244);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px dashed #333;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.color-picker-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-picker-container {
  display: none;          /* plus de visibilité ni d’espace réservé */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* n’anime le contenu QUE quand on l’affiche */
.color-picker-container.active {
  display: flex;
}

.color-picker-container.active .color-picker-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: block;
  animation: floatIn 0.5s ease forwards;
}

.color-picker-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Chatbot Name Section Styles */
.chatbot-name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1000px;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 5; /* Lower than color section but still above other content */
}

.chatbot-name-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.chatbot-text {
  flex: 1;
  text-align: center;
}

.chatbot-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--preferred-color);
  margin-bottom: 20px;
}

.chatbot-input-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 500px;
}

.chatbot-name-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-family: 'Poppins', sans-serif;
  color: var(--preferred-color);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--preferred-color);
  outline: none;
}

/* Logo Upload Section Styles */
.logo-upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1000px;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 4; /* Lower than chatbot section but still above other content */
}

.logo-upload-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo-container {
  flex: 1;
  text-align: center;
}

.logo-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--preferred-color);
  margin-bottom: 20px;
}

.company-logo-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.company-logo {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

.company-logo-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--preferred-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--preferred-color);
  background-color: rgba(var(--preferred-color-rgb), 0.05);
}

/* Enterprise name container and input styles */
.enterprise-name-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.enterprise-name-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-family: 'Poppins', sans-serif;
  color: var(--preferred-color);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--preferred-color);
  outline: none;
  text-align: center;
}

.file-upload-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 500px;
}

.file-upload-box {
  width: 300px;
  height: 200px;
  border: 2px dashed var(--preferred-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.file-upload-box:hover {
  background-color: rgba(var(--preferred-color-rgb), 0.05);
  transform: scale(1.02);
}

.file-upload-box.drag-over {
  background-color: rgba(var(--preferred-color-rgb), 0.1);
  transform: scale(1.05);
  border-color: var(--preferred-color);
  box-shadow: 0 0 10px rgba(var(--preferred-color-rgb), 0.3);
}

.file-upload-box.file-uploaded {
  background-color: rgba(var(--preferred-color-rgb), 0.05);
  border-style: solid;
}

.file-upload-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.upload-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.upload-icon-placeholder {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  border-radius: 50%;
  background-color: var(--preferred-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.upload-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--preferred-color);
  margin: 0;
}

#colorPicker {
  width: 100%;
  height: 50px;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
}

#colorPicker::-webkit-color-swatch-wrapper {
  padding: 0;
}

#colorPicker::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

#applyColor, #cancelColor {
  padding: 10px 20px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#applyColor {
  background-color: var(--preferred-color);
  color: white;
}

#applyColor:hover {
  background-color: var(--preferred-color, #3aa9d9);
}

#cancelColor {
  background-color: #f1f1f1;
  color: #333;
}

#cancelColor:hover {
  background-color: #e1e1e1;
}

/* Add a semi-transparent background to text sections for better readability */
.additional-content {
  background-color: rgba(var(--preferred-color-rgb, 66, 187, 238), 0.1); /* Light background with preferred color */
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  margin: 20vh auto;
  transform: translateY(50px); /* Start below final position for animation */
}

/* Typography */
h1, h2 {
  margin-top: 0;
}

/* Custom Typography for Hero Section */
.main-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--preferred-color);
  margin-bottom: 10px; /* Reduced from 20px to pull up elements below */
}

.sub-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--preferred-color);
  margin-top: 0;
  margin-bottom: 10px; /* Reduced from 20px to pull up elements below */
}

.bottom-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--preferred-color);
  margin-top: 0; /* Changed from auto to pull up the text */
  text-align: center;
  padding-bottom: 10px;
}

/* Ensure the body takes up enough space to allow scrolling */
body {
  min-height: fit-content; /* Increased to accommodate added space between sections */
  margin: 0;
  /* Add padding to bottom to prevent content from being hidden behind the fixed button */
  padding: 0 0 100px;
  font-family: Arial, sans-serif;
  background-color: rgb(248, 245, 244); /* Match the content-overlay background */
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) and (max-width: 1024px) {
  /* Style adjustments for tablets and medium-sized screens */
  .color-heading, .chatbot-heading, .logo-heading, .character-heading {
    font-size: 3.5rem;
  }

  .main-heading {
    font-size: 3.5rem;
  }

  .sub-heading {
    font-size: 1.8rem;
  }

  .color-circles {
    gap: 15px;
  }

  .color-circle {
    width: 50px;
    height: 50px;
  }

  .character-image-grid {
    grid-template-columns: repeat(2, 150px);
    grid-gap: 15px;
  }

  .character-image {
    width: 150px;
    height: 150px;
  }
}

/* Responsive styles for smaller screens */
@media only screen and (max-width: 768px) {
  /* Stack hero container vertically on smaller screens */
  .hero-container {
    flex-direction: column;
    height: auto;
  }

  /* Adjust text container for mobile */
  .hero-text {
    padding: 30px 20px;
    order: 1; /* Show text first on mobile */
    text-align: center;
    align-items: center;
    margin-top: 10vh;
  }

  /* Adjust video container for mobile */
  .video-container {
    height: 50vh; /* Half the viewport height */
    order: 2; /* Show video second on mobile */
  }

  /* Adjust typography for mobile */
  .main-heading {
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.2;
  }

  .sub-heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .bottom-text {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 30px;
  }

  /* Color selection section responsive styles */
  .color-selection-container {
    flex-direction: column;
    gap: 20px;
  }

  .color-heading, .chatbot-heading, .logo-heading, .character-heading {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .color-circles {
    justify-content: center;
  }

  /* Chatbot name section responsive styles */
  .chatbot-name-container {
    flex-direction: column;
    gap: 20px;
  }

  .chatbot-input-container {
    justify-content: center;
    width: 100%;
  }

  /* Logo upload section responsive styles */
  .logo-upload-container {
    flex-direction: column;
    gap: 30px;
  }

  .file-upload-container {
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .file-upload-box {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Character selection section responsive styles */
  .character-selection-container {
    flex-direction: column;
    gap: 30px;
  }

  .character-image-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    width: 100%;
  }

  .character-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  /* Continue button responsive styles */
  .continue-button {
    padding: 12px 40px;
    font-size: 1.2rem;
    width: 80%;
    max-width: 300px;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* Character Selection Section Styles */
.character-selection-section {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 0; right: 0;
  z-index: 3;               /* below logo (z‑index: 4) */
}

.character-selection-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.character-text {
  flex: 1;
  text-align: center;
}

.character-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 400; /* Explicitly set to normal weight */
  font-size: clamp(2.5rem, 5vw, 6rem);
  line-height: 1.1;
  color: var(--preferred-color);
  margin-bottom: 20px;
}

.character-image-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 174px);
  grid-gap: 20px;
  justify-content: flex-end;
}

.character-image {
  width: 174px;
  height: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.character-image.selected-character {
  transform: scale(1.05);
  border: 2px solid var(--preferred-color);
  box-shadow: 0 0 10px var(--preferred-color);
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Clip the third SVG into a circle of 119px */
.circle-clipped {
  width: 119px;
  height: 119px;
  clip-path: circle(59.5px at center);
  object-fit: contain;
  background-color: var(--preferred-color); /* Use preferred color as background */
  overflow: hidden; /* Ensure content doesn't overflow */
  display: block; /* Ensure proper rendering */
}

/* Continue Button Section Styles */
.continue-button-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: rgb(248, 245, 244);
}

.continue-button-container {
  text-align: center;
}

.continue-button {
  padding: 15px 60px;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  background-color: var(--preferred-color);
  color: rgb(248, 245, 244);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(var(--preferred-color-rgb), 0.3);
}

.continue-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(var(--preferred-color-rgb), 0.4);
}

.continue-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(var(--preferred-color-rgb), 0.2);
}

.continue-button:disabled, .continue-button.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
  display: inline-block;
  text-decoration: none;
}

/* Small mobile devices */
@media only screen and (max-width: 480px) {
  .color-heading, .chatbot-heading, .logo-heading, .character-heading {
    font-size: 2rem;
  }

  .main-heading {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 1.2rem;
  }

  .bottom-text {
    font-size: 1rem;
  }

  .color-circles {
    gap: 10px;
  }

  .color-circle {
    width: 40px;
    height: 40px;
  }

  .character-image-grid {
    grid-template-columns: repeat(2, 120px);
    grid-gap: 10px;
  }

  .character-image {
    width: 120px;
    height: 120px;
  }

  .company-logo-placeholder {
    width: 150px;
    height: 150px;
  }

  .file-upload-box {
    height: 150px;
  }

  .continue-button {
    padding: 10px 30px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: rgb(248, 245, 244) !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  /* Step 5: Character Selection */
  .character-selection-section {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 0; right: 0;
    z-index: 3;               /* below logo (z‑index: 4) */
  }

  .character-selection-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    justify-content: space-between;
    align-items: center;
  }

  .character-text {
    flex: 1;
    text-align: center;
  }

  .character-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 6rem;
    color: var(--preferred-color);
    margin-bottom: 20px;
  }

  .character-image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 174px);
    grid-gap: 20px;
    justify-content: flex-end;
  }

  .character-image {
    width: 174px;
    height: 174px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .character-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Clip the third SVG into a circle of 119px */
  .circle-clipped {
    width: 119px;
    height: 119px;
    clip-path: circle(59.5px at center);
    object-fit: contain;
    background-color: var(--preferred-color); /* Use preferred color as background */
    overflow: hidden; /* Ensure content doesn't overflow */
    display: block; /* Ensure proper rendering */
  }
}

/* style.css — sections dans le flux normal */
.snap-container > section {
  position: static;      /* plus de fixed */
  transition: opacity 1s ease;
}

/* 1. Make the real input cover the box but be invisible */
.file-upload-box input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;               /* sits on top to catch clicks */
}

/* 2. Hide the “Choose File” button in WebKit browsers */
.file-upload-box input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}

/* 3. Hide the filename placeholder in Firefox / modern specs */
.file-upload-box input[type="file"]::file-selector-button {
  visibility: hidden;
}

/* 4. (Optional) If there’s leftover “no file chosen” text, make it zero-height */
.file-upload-box input[type="file"]::-webkit-file-upload-text,
.file-upload-box input[type="file"]::-moz-file-text {
  font-size: 0;
  line-height: 0;
}

/* Remove clear/search icon in WebKit */
.chatbot-name-input::-webkit-search-decoration,
.chatbot-name-input::-webkit-search-cancel-button {
  display: none;
}

/* Remove clear icon in IE/Edge */
.chatbot-name-input::-ms-clear {
  display: none;
}

/* Remove spinner in number inputs, just in case */
.chatbot-name-input::-webkit-inner-spin-button,
.chatbot-name-input::-webkit-outer-spin-button {
  display: none;
}

/* Neutralize any default “appearance” */
.chatbot-name-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.chatbot-name-section,
.logo-upload-section,
.color-selection-section,
.character-selection-section {
  /* these live inside the .snap-container rules above */
  /* you can keep your padding, max-width, etc., but no more top/margin/transform */
  padding: 40px 20px;
  flex-direction: column;  /* if you need column layout */
}





/*────────────────────────────────────
  Generic modal container
────────────────────────────────────*/
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}

/* backdrop */
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}

/* the white box */
.modal-box {
  position: relative;
  background: #fff;
  border-radius: .5rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
}

/* form fields */
.modal-box input[type="text"],
.modal-box input[type="email"],
.modal-box input[type="tel"] {
  width: 100%;
  padding: .5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: .25rem;
  box-sizing: border-box;
}

/* align checkboxes and labels */
#availabilityForm label {
  display: inline-flex;
  align-items: center;
  margin: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
#availabilityForm input[type="checkbox"] {
  margin-right: .5rem;
  width: 1rem;
  height: 1rem;
}

/* buttons */
.btn-primary {
  background-color: var(--preferred-color);
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: .25rem;
  cursor: pointer;
  font-size: 1rem;
}
.btn-link {
  background: none;
  border: none;
  color: #555;
  margin-left: 1rem;
  cursor: pointer;
  font-size: 1rem;
}
