/* ==========================================================================
   GOOGLE FONTS IMPORT
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Delicious+Handrawn&family=Figtree:wght@500&family=Open+Sans:wght@400&display=swap");

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  background: hsl(0, 0%, 0%);
  color: #14213d;
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* .form-container {

} */

/* ==========================================================================
   HERO SECTION (Landing Page)
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 8%;
  min-height: 100vh;
  box-sizing: border-box;
  background: black;
}

/* Left text content section */
.hero-text {
  flex: 1;
  max-width: 550px;
}

/* Logo styling */
.logo {
  width: 100px;
  margin-bottom: 1.5rem;
}

/* Main heading/tagline */
.tagline {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #0a0071;
  color: white;
}

/* Description text */
.description {
  font-weight: 400;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Call-to-action button */
.cta-button {
  display: inline-block;
  background: #0dc0e0;
  color: #fff;
  text-decoration: none;
  font-size: large;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 13px;
  transition: background 0.3s, transform 0.2s;
}
.cta-button:hover {
  background: #0bb6d3;
  transform: translateY(-2px);
}

/* Back button navigation */
.back-container {
  float: left;
}
.back-container img {
  height: 81px;
  float: left;
  cursor: pointer;
  width: 82px;
  margin-left: 64px;
  margin-top: -62px;
}

/* ==========================================================================
   IMAGE LAYOUT COMPONENTS
   ========================================================================== */
.image-container {
  position: relative;
  flex: 1;
  height: 500px;
  max-width: 600px;
}

/* Background light effect image */
.Light {
  position: absolute;
  top: 30%;
  left: 57%;
  transform: translate(-50%, -50%);
  width: 52%;
  height: 80%;
  z-index: 1;
}
.Light img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.6;
}

/* Foreground hero image */
.hero-image {
  position: absolute;
  top: 57px;
  left: 0;
  width: 111%;
  height: 100%;
  z-index: 2;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin-left: -96px;
}

/* ==========================================================================
   RESPONSIVE DESIGN - HERO SECTION
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .hero-text {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .logo {
    margin: 0 auto 1.5rem;
  }
}

@media (max-width: 600px) {
  .tagline {
    font-size: 1.8rem;
  }
  .description {
    font-size: 1rem;
  }
  .cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  .hero-image img {
    border-radius: 8px;
  }
}

/* Large screens optimization */
@media (min-width: 1600px) {
  .hero {
    padding: 8rem 12%;
  }
  .hero-text {
    max-width: 650px;
  }
  .image-container {
    max-width: 550px;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.accent-1 {
  color: #f5b857;
}
.accent-2 {
  color: #f58079;
}
.accent-3 {
  color: #0a0071;
}
.badge {
  display: inline-block;
  background: #f5b857;
  color: #0a0071;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ==========================================================================
   FORM CONTAINER & HEADER
   ========================================================================== */
.form-header {
  width: 100%;
  padding: 1.5rem 0;
  background: #000000;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.form-header2 {
  text-align: center;
  /* margin-top: 48px; */
}
.logo-header {
  width: 106px;
  margin-top: 40px;
}

/* Main form container */
#csamForm {
  background: #737474;
  padding: 1rem 4.5rem;
  border-radius: 11px;
  max-width: 618px;
  width: 100%;
  margin: 41px auto 3rem;
  box-shadow: 11px 11px 6px -1px rgb(80 80 81);
  background-image: url(../images/background_grey.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ==========================================================================
   FORM STEP MANAGEMENT
   ========================================================================== */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}

/* Step titles and descriptions */
.form-step h2 {
  font-family: Delicious Handrawn;
  font-size: 34px;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 100;
}
.form-step p {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 14px;
}

/* ==========================================================================
   FORM ELEMENTS STYLING
   ========================================================================== */
/* Form labels */
label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 500;
  font-size: 14px;
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(13, 192, 224, 0.15);
}

/* Text inputs, selects, and textareas */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  /* min-height: 16px; */
  padding: 0.8rem 1rem;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  margin-top: 15px;
  background-color: #cccccc;
}

/* Custom select dropdown styling */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0a0071 50%),
    linear-gradient(135deg, #0a0071 50%, transparent 50%),
    linear-gradient(to right, #e6eef6, #e6eef6);
  background-position: calc(100% - 22px) calc(50% - 5px),
    calc(100% - 16px) calc(50% - 5px), calc(100% - 40px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */
/* Primary action button */
.primary {
  background: #0dc0e0;
  color: #fff;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 15px;
  min-width: 196px;
}
.primary:hover {
  background: #0bb6d3;
  transform: translateY(-2px);
}

/* Secondary button */
.secondary {
  background: #aaa;
  color: #fff;
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.secondary:hover {
  background: #888;
  transform: translateY(-2px);
}

/* Light secondary button for back actions */
.secondary-light {
  background: #f7f6fe;
  border: 1px solid #e6eef6;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
  color: black;
  font-size: 15px;
}
.secondary-light:hover {
  transform: translateY(-2px);
}

/* Shine effect on button hover */
.primary,
.secondary-light {
  position: relative;
  overflow: hidden;
}
.primary::after,
.secondary-light::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.6s ease;
  pointer-events: none;
}
.primary:hover::after,
.secondary-light:hover::after {
  left: 150%;
}

/* Form navigation layout */
.form-navigation.split {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 16px;
}

/* ==========================================================================
   VALIDATION & ERROR STATES
   ========================================================================== */
.error-message {
  display: block;
  color: #c0392b;
  margin-top: 0.35rem;
  /* min-height: 1em; */
  font-size: 0.92rem;
}
.was-validated .invalid {
  border-color: #e76f51 !important;
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15) !important;
}

/* ==========================================================================
   QUESTION & OPTION COMPONENTS
   ========================================================================== */
.question {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #0a0071;
}
.hint {
  margin: 0.25rem 0 0.5rem;
  color: #333;
  line-height: 1.55;
}
.spacer-16 {
  height: 16px;
}

/* Options container for radio cards */
.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Basic radio card styling */
.radio-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.6rem;
  border: 1px solid #e6eef6;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.radio-card:hover {
  box-shadow: 0 6px 18px rgba(13, 192, 224, 0.12);
}
.radio-card:focus-within {
  border-color: #0dc0e0;
  box-shadow: 0 0 0 3px rgba(13, 192, 224, 0.15);
}
.radio-card input[type="radio"] {
  margin-top: 16px;
}
.radio-card span {
  line-height: 3.45;
}

/* Radio input styling */
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: #0dc0e0;
  outline: none;
}

/* ==========================================================================
   LIKERT SCALE COMPONENT (1-5 rating dots)
   ========================================================================== */
.likert-dots {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
  margin-top: 8px;
}
.likert-dots .dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #959494;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  color: white;
}
.likert-dots .dot:hover {
  box-shadow: 0 6px 18px rgba(13, 192, 224, 0.12);
  transform: translateY(-1px);
}
.likert-dots .dot input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.likert-dots .dot input:checked + span {
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #f5b857;
}

/* ==========================================================================
   TEXTAREA COMPONENTS
   ========================================================================== */
.ikigai-help {
  display: block;
  color: #555;
  margin-top: -2px;
  margin-bottom: 6px;
  font-size: 14px;
}
.ikigai-textarea {
  width: 100%;
  background: #cccccc;
  border: 1px solid #e6eef6;
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}

/* ==========================================================================
   PROGRESS INDICATOR COMPONENTS
   ========================================================================== */
.progress-container {
  width: 100%;
  max-width: 720px;
  height: 8px;
  margin: 1.5rem auto;
  border-radius: 4px;
  overflow: visible;
  border: 1px solid #cccccc;
}
.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f5b857, #f5b8578f);
  transition: width 0.4s;
  border-radius: 4px;
}

/* Progress dots container */
.progress-container {
  position: relative;
}
.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 9999px;
}

.progress-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
  --dot: 14px;
  --bar-h: 8px;
  --brand: #0dc0e0;
}

.progress-dot {
  pointer-events: auto;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background-color: #e6e8ec;
  border: 2px solid #d7e3ef;
  transition: transform 0.2s ease;
}
.progress-dot {
  width: 22px;
  height: 21px;
  border-radius: 50%;
  background: #000000;
  position: relative;
  transition: all 0.3s ease;
}

@media (max-width: 680px) {
  .progress-dots {
    --dot: 12px;
    --bar-h: 6px;
  }
}

.progress-dot.is-complete {
  background: #f5b857;
  border-color: #f5b857;
}
.progress-dot.is-active {
  background: #f5b857;
  border-color: #f5b857;
}
.progress-dot.is-next {
  background: #fff;
  background: #000000;
}

/* ==========================================================================
   CHOICE CARDS WITH ICONS
   ========================================================================== */
.options .radio-card.choice {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid #e6eef6;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  background: #cccccc;
  /* padding: 0.8rem 1rem; */
  font-size: 13px;
}
.options .radio-card.choice:hover {
  box-shadow: 0 6px 18px rgba(13, 192, 224, 0.12);
  transform: translateY(-1px);
}
.options .radio-card.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.options .radio-card.choice .choice-ico {
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-top: -52px;
}
.options .radio-card.choice .choice-label {
  display: block;
  color: #14213d;
  line-height: 1.35;
  padding: 8px 2px;
}
/* Selected state for choice cards */
.options .radio-card.choice:has(input[type="radio"]:checked) {
  outline: 2px solid #f5b857;
  box-shadow: 0 0 0 3px #f5b857, 0 6px 18px rgb(13 192 224 / 0%);
  cursor: pointer;
  background: #f5b857a8;
}
/* Focus state for accessibility */
.options .radio-card.choice:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(13, 192, 224, 0.22),
    0 6px 18px rgba(13, 192, 224, 0.1);
}

/* ==========================================================================
   MODAL COMPONENTS
   ========================================================================== */
/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Modal container */
.completion-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}
.completion-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal overlay */
.completion-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.58);
  backdrop-filter: blur(2px);
}

/* Modal dialog box */
.completion-modal__dialog {
  position: relative;
  background: #000000;
  border-radius: 20px;
  max-width: 638px;
  width: 100%;
  padding: 4.2rem 6rem 6rem 3.8rem;
  box-shadow: 0 24px 60px #0000009c;
  text-align: center;
  transform: translateY(22px);
  transition: transform 0.25s ease;
}
.completion-modal.is-visible .completion-modal__dialog {
  transform: translateY(0);
}

/* Close button */
.completion-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #7c8498;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.completion-modal__close:hover,
.completion-modal__close:focus {
  background: rgba(12, 184, 214, 0.12);
  outline: none;
}

/* Modal icon */
.completion-modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #0dc0e0;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.6rem;
}

/* Modal text content */
.completion-modal__dialog h2 {
  margin: 0 0 0.6rem;
  font-size: 2.6rem;
  color: white;
}
.completion-modal__dialog p {
  margin: 0 auto 1.2rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 360px;
}

/* Modal action buttons */
.completion-modal__cta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.completion-modal__primary,
.completion-modal__secondary {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease,
    color 0.2s ease;
}

/* Primary modal button */
.completion-modal__primary {
  background: #0dc0e0;
  color: #ffffff;
  border-radius: 13px;
  min-width: 198px;
}
.completion-modal__primary:hover,
.completion-modal__primary:focus {
  transform: translateY(-2px);
  outline: none;
}

/* Secondary modal button */
.completion-modal__secondary {
  border: 1px solid #e6eef6;
  min-width: 199px;
  border-radius: 13px;
}
.completion-modal__secondary:hover,
.completion-modal__secondary:focus {
  transform: translateY(-2px);
  outline: none;
}

/* Loading state for modal button */
.completion-modal__primary.is-loading {
  opacity: 0.9;
  position: relative;
}
.completion-modal__primary.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 0.6rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  display: inline-block;
  vertical-align: middle;
  animation: modal-spin 0.7s linear infinite;
}
@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal responsive adjustments */
@media (max-width: 480px) {
  .completion-modal__dialog {
    padding: 1.9rem 1.2rem 1.6rem;
  }
  .completion-modal__cta {
    flex-direction: column;
  }
  .completion-modal__primary,
  .completion-modal__secondary {
    width: 100%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .completion-modal,
  .completion-modal__dialog {
    transition: none;
  }
}

/* ==========================================================================
   REVIEW & SUMMARY COMPONENTS
   ========================================================================== */
.options.mi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 680px) {
  .options.mi-grid {
    grid-template-columns: 1fr;
  }
}

.review-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.review-card {
  border: 1px solid #ffffff;
  border-radius: 12px;
  padding: 14px 14px 10px;
}
.review-card h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.02rem;
}
.review-card dl {
  margin: 0;
}
.review-row {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed #e6eef6;
}
.review-row:first-child {
  border-top: none;
}
.review-row dt {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}
.review-row dd {
  margin: 0;
  color: #ffffff;
  word-break: break-word;
  font-size: 14px;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 680px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Box model normalization */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   THIRD-PARTY COMPONENT OVERRIDES (Tom Select)
   ========================================================================== */
.ts-wrapper.single .ts-control,
.ts-wrapper.single.input-active .ts-control {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background-color: #fff;
  margin-top: 15px;
  box-shadow: none;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background-color: #fff;
  margin-top: 15px;
}

.ts-wrapper.focus .ts-control {
  border: 1px solid #0dc0e0;
  box-shadow: 0 0 0 2px rgba(13, 192, 224, 0.15);
}

.ts-control .item {
  line-height: 1.2;
  padding: 0;
  margin: 0;
}

.ts-control > input {
  opacity: 0;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.ts-dropdown {
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ts-dropdown .option {
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 5px;
}

.ts-dropdown .option.active,
.ts-dropdown .option.selected,
.ts-dropdown .option:hover {
  background: #f7f6fe;
}

.ts-dropdown .dropdown-input {
  border: none !important;
  border-bottom: 1px solid #e6eef6;
  border-radius: 0 !important;
  padding: 8px 12px;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: none !important;
}

.ts-dropdown .dropdown-input:focus {
  box-shadow: none;
  border-bottom-color: #0dc0e0;
}

.ts-wrapper.single .ts-control {
  border: 1px solid #d7e3ef !important;
  box-shadow: none !important;
  outline: none !important;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.single .ts-control:focus-visible {
  outline: none !important;
}

.ts-wrapper.focus .ts-control {
  border: 1px solid #0dc0e0 !important;
  box-shadow: 0 0 0 2px rgba(13, 192, 224, 0.15) !important;
}

.ts-dropdown,
.ts-dropdown .option {
  outline: none !important;
}

/* ==========================================================================
   RESPONSIVE FORM ADJUSTMENTS
   ========================================================================== */
@media (max-width: 600px) {
  .back-container img {
    height: 64px;
    float: left;
    cursor: pointer;
    width: 63px;
    margin-top: 34px;
    margin-left: 0px;
  }

  /* margin-left: 159px; */
  #csamForm {
    padding: 1.5rem;
    width: 88%;
  }
  .form-step h2 {
    font-size: 2.3rem;
  }
  .progress-container {
    width: 86%;
  }
  input,
  select,
  textarea {
    font-size: 0.95rem;
  }
  .radio-card {
    grid-template-columns: 18px 1fr;
  }
  .likert-dots .dot {
    width: 38px;
    height: 38px;
  }
  .likert-dots .dot input:checked + span {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   BROWSER FIXES & NORMALIZATION
   ========================================================================== */
select,
input,
textarea,
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  font-family: inherit;
}

/* Custom select styling */
select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
  border-radius: 12px;
}

/* Focus state normalization */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* MOBILE KEYBOARD */

/* ==========================================================================
   MOBILE KEYBOARD FIXES
   ========================================================================== */

/* Assurer une hauteur minimale pour les conteneurs de formulaire */
.form-container {
  min-height: 100vh;
  position: relative;
}

/* Améliorer l'espacement sur mobile */
@media (max-width: 768px) {
  .form-step {
    /* padding-bottom: 100px;  */
  }

  #csamForm {
    /* padding-bottom: 2rem; */
  }

  /* S'assurer que les inputs sont assez grands pour le touch */
  input:not([type="radio"]):not([type="checkbox"]),
  select,
  textarea {
    min-height: 52px !important;
    font-size: 16px !important; /* Empêche le zoom automatique sur iOS */
  }

  textarea.ikigai-textarea {
    min-height: 120px !important;
  }

  /* Espacement supplémentaire pour la navigation */
  .form-navigation.split {
    margin-top: 2rem;
    padding-bottom: 1rem;
  }
}

/* Empêcher le zoom sur focus pour iOS */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  textarea {
    font-size: 16px;
    transform: scale(1); /* Reset any scaling */
  }
}

/* Support des viewports mobiles */
@viewport {
  width: device-width;
  zoom: 1;
  user-zoom: fixed;
}

/* Assurer que la hauteur viewport est correcte sur mobile */
html {
  height: 100%;
  -webkit-text-size-adjust: 100%; /* Prevent font scaling */
}

body {
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Correction spécifique pour Android */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .form-step.active {
    /* min-height: 80vh; */
  }

  /* Améliorer le contraste et la taille pour mobile */
  input:not([type="radio"]):not([type="checkbox"]),
  select,
  textarea {
    background-color: #f8f9fa !important;
    border-width: 2px !important;
  }
}

/* Animation smooth pour les scrolls */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ==========================================================================
    CLAVIER MOBILE
   ========================================================================== */

.form-container {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

@media (max-width: 768px) {
  #csamForm {
    /* padding-bottom: 80px; */
  }

  .form-step.active {
    /* padding-bottom: 100px; */
  }
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
    transform: scale(1);
  }
}

.input-focused {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}
