/* --- PREORDER MAIN WRAPPER & GRID --- */
.preorder-wrapper {
  padding: 80px 0 120px 0;
  background-color: var(--Contexte);
}

.preorder-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: start;
}

/* --- LEFT COLUMN: FORM STYLES --- */
.preorder-form-section {
  display: flex;
  flex-direction: column;
}

.preorder-main-title {
  margin-bottom: 48px;
}

.preorder-main-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label-txt {
  font-family: var(--font-family-poppins);
  font-weight: 500;
  font-size: 16px;
  color: var(--Texte);
}

/* Base rectangle-53 design token wrapper */
.rectangle-53-input {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--Contexte);
  border: 3px solid var(--Accent);
  border-radius: 10px;
  font-family: var(--font-family-inter);
  font-size: 16px;
  color: var(--Texte);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rectangle-53-input:focus {
  border-color: var(--Secondaire);
}

.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(31,31,31,1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
  cursor: pointer;
}

/* Checkboxes container grid for kids age groups */
.checkbox-options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.custom-checkbox-holder {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-holder input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.box-indicator {
  flex-shrink: 0;
  height: 22px;
  width: 22px;
  background-color: #fff;
  border: 3px solid var(--Accent);
  border-radius: 6px;
  position: relative;
  margin-top: 3px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.custom-checkbox-holder input:checked ~ .box-indicator {
  background-color: var(--Primaire);
  border-color: var(--Primaire);
}

.box-indicator:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-holder input:checked ~ .box-indicator:after {
  display: block;
}

.option-label-text {
  font-family: var(--font-family-inter);
  font-size: 16px;
  line-height: 26px;
  color: var(--Texte);
}

/* Size Selection (S/M/L/XL Interactive Tiles) */
.visual-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile-option {
  cursor: pointer;
}

.tile-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tile-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background-color: #fff;
  border: 3px solid var(--Accent);
  border-radius: 10px;
  font-family: var(--font-family-poppins);
  font-weight: 700;
  font-size: 18px;
  color: var(--Texte);
  text-align: center;
  transition: all 0.2s ease;
}

.tile-option input:checked ~ .tile-inner {
  border-color: var(--Primaire);
  background-color: var(--accent-light);
  color: var(--Primaire);
}

/* Color Picker Selection Tiles */
.color-dot-grid {
  display: flex;
  gap: 16px;
}

.color-dot-option {
  cursor: pointer;
}

.color-dot-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dot-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--Accent);
  position: relative;
  transition: all 0.2s ease;
}

/* Figma Hex-based Color assignments matching the brand guidelines */
.color-wood { background-color: #b48d68; }
.color-blue { background-color: #a8c1cc; }
.color-pink { background-color: #e3b8b8; }
.color-grey { background-color: #9ea4a6; }

.color-dot-option input:checked ~ .dot-inner {
  border-color: var(--Primaire);
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--Contexte), 0 0 0 4px var(--Primaire);
}

/* Legal checklist stack at bottom */
.legal-checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.legal-text {
  font-family: var(--font-family-poppins);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: rgba(31, 31, 31, 0.8);
}

/* Custom Primary CTA Button configuration */
.form-submit-row {
  margin-top: 20px;
}

.group-16-btn {
  background-color: var(--Primaire);
  border: none;
  border-radius: 15px;
  padding: 18px 48px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.group-16-btn:hover {
  background-color: rgba(102, 51, 6, 0.9);
}

.group-16-btn:active {
  transform: scale(0.99);
}

.text-31 {
  font-family: var(--font----inter);
  font-weight: 500;
  font-size: 20px;
  color: var(--Accent);
}

/* --- RIGHT COLUMN: STICKY PRODUCT INTERFACE CARD --- */
.preorder-info-section {
  position: sticky;
  top: 40px;
}

.product-sticky-card {
  background-color: var(--accent-light);
  border: 3px solid var(--Accent);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-gallery-frame {
  width: 100%;
  background-color: #fff;
  border-radius: 93px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.price-container {
  display: flex;
}

.price-tag {
  font-family: var(--font-family-poppins);
  font-weight: 700;
  font-size: 56px;
  color: var(--Primaire);
  line-height: 1;
}

.product-description-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-highlight {
  font-weight: 500;
  color: var(--Texte);
}

.description-subtext {
  font-size: 16px;
  line-height: 26px;
  color: rgba(31, 31, 31, 0.8);
}

.disclaimer-container {
  border-top: 1px solid rgba(180, 141, 104, 0.3);
  padding-top: 24px;
}

.disclaimer-text {
  font-family: var(--font-family-inter);
  font-size: 14px;
  line-height: 22px;
  color: rgba(31, 31, 31, 0.65);
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 1024px) {
  .preorder-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .preorder-info-section {
    position: static;
  }
}

@media (max-width: 600px) {
  .preorder-wrapper {
    padding: 40px 0 80px 0;
  }
  .form-row-double {
    grid-template-columns: 1fr;
  }
  .visual-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-tag {
    font-size: 44px;
  }
  .product-sticky-card {
    padding: 24px;
  }
}