/* =============================================
   CONFIGURATOR STYLES - ProAirSteel
   Single-page form with optimized UX
   ============================================= */

.configurator-wrapper-apo {
  padding: 50px 0 80px 0;
  min-height: 100vh;
}

/* =============================================
   SECTION STYLES
   ============================================= */

.config-section-apo {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.config-section-apo:hover {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.section-header-apo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
}

.section-number-apo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #9f7456 0%, #b8896b 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(159, 116, 86, 0.3);
}

.section-title-apo {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.section-subtitle-apo {
  font-size: 15px;
  color: #666;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
}

.section-content-apo {
  padding: 0;
}

/* =============================================
   FORM GROUPS
   ============================================= */

.form-group-apo {
  margin-bottom: 35px;
}

.form-group-apo:last-child {
  margin-bottom: 0;
}

.form-label-apo {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  font-family: 'Nunito Sans', sans-serif;
  margin-bottom: 12px;
}

.form-hint-apo {
  font-size: 13px;
  color: #888;
  font-family: 'Nunito Sans', sans-serif;
  margin: -8px 0 12px 0;
}

.required-apo {
  color: #e74c3c;
  margin-left: 3px;
}

.error-message-apo {
  color: #e74c3c;
  font-size: 13px;
  font-family: 'Nunito Sans', sans-serif;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.error-message-apo::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

/* =============================================
   COMPACT CARDS (Modules & Activities)
   ============================================= */

.compact-grid-apo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.compact-grid-apo.grid-3-apo {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.compact-card-apo {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.compact-card-apo:hover {
  border-color: #9f7456;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(159, 116, 86, 0.15);
}

.compact-card-apo.active {
  border-color: #9f7456;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f6 100%);
  box-shadow: 0 6px 20px rgba(159, 116, 86, 0.2);
}

.compact-card-apo.has-error {
  border-color: #e74c3c;
}

.compact-icon-apo {
  font-size: 28px;
  color: #ccc;
  transition: all 0.25s ease;
}

.compact-card-apo:hover .compact-icon-apo {
  color: #9f7456;
  transform: scale(1.1);
}

.compact-card-apo.active .compact-icon-apo {
  color: #9f7456;
}

.compact-img-apo {
  max-width: 45px;
  max-height: 45px;
  object-fit: contain;
  filter: grayscale(0.5) opacity(0.7);
  transition: all 0.25s ease;
}

.compact-card-apo:hover .compact-img-apo {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

.compact-card-apo.active .compact-img-apo {
  filter: grayscale(0) opacity(1);
}

.compact-label-apo {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.3;
}

.compact-card-apo.active .compact-label-apo {
  color: #9f7456;
}

/* Checkbox */
.compact-check-apo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.compact-check-apo i {
  font-size: 10px;
  color: white;
  opacity: 0;
  transition: all 0.25s ease;
}

.compact-check-apo.checked {
  background: #9f7456;
  border-color: #9f7456;
}

.compact-check-apo.checked i {
  opacity: 1;
}

/* Radio Button */
.compact-radio-apo {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.compact-radio-apo.checked {
  border-color: #9f7456;
}

.compact-radio-inner-apo {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9f7456;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s ease;
}

.compact-radio-apo.checked .compact-radio-inner-apo {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   TECHNICAL SPECS CARDS
   ============================================= */

.tech-specs-grid-apo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.tech-spec-card-apo {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.tech-spec-card-apo:hover {
  border-color: #9f7456;
  box-shadow: 0 8px 25px rgba(159, 116, 86, 0.12);
  transform: translateY(-3px);
}

.tech-spec-header-apo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.tech-spec-icon-apo {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #9f7456 0%, #b8896b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(159, 116, 86, 0.25);
}

.tech-spec-icon-apo i {
  font-size: 20px;
  color: white;
}

.tech-spec-label-apo {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Nunito Sans', sans-serif;
  margin-bottom: 2px;
  line-height: 1.2;
}

.tech-spec-hint-apo {
  font-size: 12px;
  color: #888;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0;
  line-height: 1.2;
}

.tech-spec-value-apo {
  font-size: 36px;
  font-weight: 800;
  color: #9f7456;
  font-family: 'Nunito Sans', sans-serif;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(159, 116, 86, 0.1);
}

.tech-range-input-apo {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
}

.tech-range-input-apo::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 3px solid #9f7456;
  box-shadow: 0 3px 10px rgba(159, 116, 86, 0.3);
}

.tech-range-input-apo::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(159, 116, 86, 0.5);
}

.tech-range-input-apo::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.tech-range-input-apo::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 3px solid #9f7456;
  box-shadow: 0 3px 10px rgba(159, 116, 86, 0.3);
}

.tech-range-input-apo::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 15px rgba(159, 116, 86, 0.5);
}

.tech-range-input-apo::-moz-range-thumb:active {
  transform: scale(1.1);
}

.tech-range-labels-apo {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.tech-range-labels-apo span {
  font-size: 11px;
  color: #999;
  font-weight: 600;
  font-family: 'Nunito Sans', sans-serif;
}

/* =============================================
   SUPPORT CARDS
   ============================================= */

.support-grid-apo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.support-card-apo {
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.support-card-apo:hover {
  border-color: #9f7456;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(159, 116, 86, 0.18);
}

.support-card-apo.active {
  border-color: #9f7456;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f6 100%);
  box-shadow: 0 10px 30px rgba(159, 116, 86, 0.25);
}

.support-img-wrapper-apo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}

.support-img-apo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(0.2);
  mix-blend-mode: multiply;
}

.support-card-apo:hover .support-img-apo,
.support-card-apo.active .support-img-apo {
  filter: grayscale(0);
  transform: scale(1.05);
}

.support-content-apo {
  flex: 1;
  padding-right: 35px;
}

.support-title-apo {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Nunito Sans', sans-serif;
  margin: 0 0 10px 0;
}

.support-card-apo.active .support-title-apo {
  color: #9f7456;
}

.support-desc-apo {
  font-size: 14px;
  color: #666;
  font-family: 'Nunito Sans', sans-serif;
  line-height: 1.7;
  margin: 0;
}

.support-radio-apo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.support-radio-apo.checked {
  border-color: #9f7456;
}

.support-radio-inner-apo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9f7456;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s ease;
}

.support-radio-apo.checked .support-radio-inner-apo {
  opacity: 1;
  transform: scale(1);
}

/* =============================================
   LAYOUT CARDS (Kitchen Layout)
   ============================================= */

.layout-grid-apo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.img-text-apo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.box-img-apo {
  border: 3px solid #e8e8e8;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
}

.box-img-apo:hover {
  border-color: #9f7456;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(159, 116, 86, 0.15);
}

.box-img-apo.active {
  border-color: #9f7456;
  box-shadow: 0 10px 30px rgba(159, 116, 86, 0.2);
}

.box-img-apo .checkmark-apo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.box-caption-apo {
    position: absolute;
    word-break: break-word;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    bottom: 0;
}

/* =============================================
   TIME SLOTS
   ============================================= */

.time-grid-apo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.time-card-apo {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-card-apo:hover {
  border-color: #9f7456;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(159, 116, 86, 0.15);
}

.time-card-apo.active {
  border-color: #9f7456;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f6 100%);
  box-shadow: 0 4px 15px rgba(159, 116, 86, 0.2);
}

.time-icon-apo {
  font-size: 20px;
  color: #ccc;
  transition: all 0.25s ease;
}

.time-card-apo:hover .time-icon-apo {
  color: #9f7456;
}

.time-card-apo.active .time-icon-apo {
  color: #9f7456;
}

.time-label-apo {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  font-family: 'Nunito Sans', sans-serif;
}

.time-card-apo.active .time-label-apo {
  color: #9f7456;
}

/* =============================================
   FORM CONTROLS
   ============================================= */

.form-control-apo {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Nunito Sans', sans-serif;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.25s ease;
  background: white;
  color: #333;
}

.form-control-apo:focus {
  outline: none;
  border-color: #9f7456;
  box-shadow: 0 0 0 3px rgba(159, 116, 86, 0.1);
}

.form-control-apo::placeholder {
  color: #aaa;
}

.form-control-apo.is-invalid {
  border-color: #e74c3c;
}

.form-control-apo.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* =============================================
   SUBMIT BUTTON
   ============================================= */

.btn-submit-apo {
  background: linear-gradient(135deg, #9f7456 0%, #b8896b 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 45px;
  font-size: 17px;
  font-weight: 600;
  font-family: 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(159, 116, 86, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-apo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(159, 116, 86, 0.4);
}

.btn-submit-apo:active {
  transform: translateY(-1px);
}

.submit-note-apo {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
  font-family: 'Nunito Sans', sans-serif;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
  .configurator-wrapper-apo {
    padding: 30px 0 60px 0;
  }

  .config-section-apo {
    padding: 25px 20px;
    margin-bottom: 20px;
  }

  .section-header-apo {
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .section-number-apo {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .section-title-apo {
    font-size: 22px;
  }

  .section-subtitle-apo {
    font-size: 14px;
  }

  .compact-grid-apo {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .compact-grid-apo.grid-3-apo {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-specs-grid-apo {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .tech-spec-card-apo {
    padding: 20px;
  }

  .tech-spec-value-apo {
    font-size: 32px;
  }

  .support-grid-apo {
    grid-template-columns: 1fr;
  }

  .support-card-apo {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .support-img-wrapper-apo {
    width: 80px;
    height: 80px;
  }

  .support-content-apo {
    padding-right: 0;
  }

  .support-title-apo {
    font-size: 16px;
  }

  .support-desc-apo {
    font-size: 13px;
  }

  .layout-grid-apo {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .layout-img-wrapper-apo {
    height: 150px;
  }

  .layout-label-apo {
    padding: 15px 12px;
    font-size: 14px;
  }

  .layout-check-apo {
    width: 24px;
    height: 24px;
    top: 10px;
    right: 10px;
  }

  .layout-check-apo i {
    font-size: 12px;
  }

  .time-grid-apo {
    grid-template-columns: 1fr;
  }

  .btn-submit-apo {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .compact-grid-apo,
  .compact-grid-apo.grid-3-apo {
    grid-template-columns: 1fr;
  }

  .layout-grid-apo {
    grid-template-columns: 1fr;
  }
}
