/* ================================================
   Quote Calculator Form Styles
   ================================================
   Migrated from WordPress theme — styles for the
   multi-step offerte form on /prijsindicatie.html
   ================================================ */

/* --- Form layout --- */
#quote-calculator {
  max-width: 800px;
  margin: 0 auto;
}

#calculator-form .form-step {
  display: none;
}

#calculator-form .form-step.active,
#calculator-form .form-step[data-active="true"] {
  display: block;
}

#calculator-form .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

#calculator-form .left,
#calculator-form .right {
  flex: 1;
  min-width: 200px;
}

#calculator-form .left-group,
#calculator-form .right-group {
  flex: 1;
  min-width: 150px;
}

/* --- Inputs & selects --- */
#calculator-form input[type="text"],
#calculator-form input[type="email"],
#calculator-form input[type="tel"],
#calculator-form input[type="number"],
#calculator-form input[type="date"],
#calculator-form select,
#calculator-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

#calculator-form input:focus,
#calculator-form select:focus,
#calculator-form textarea:focus {
  outline: none;
  border-color: #f9583a;
  box-shadow: 0 0 0 2px rgba(249, 88, 58, 0.15);
}

#calculator-form input[readonly] {
  background-color: #f5f5f5;
  color: #666;
}

#calculator-form label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* --- Buttons --- */
#calculator-form .next-step,
#calculator-form .prev-step,
#calculator-form .submit {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#calculator-form .next-step,
#calculator-form .submit {
  background-color: #f9583a;
  color: white;
}

#calculator-form .next-step:hover,
#calculator-form .submit:hover {
  background-color: #e04530;
}

#calculator-form .prev-step {
  background-color: #ddd;
  color: #333;
}

#calculator-form .prev-step:hover {
  background-color: #ccc;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* --- Sticky (add/remove) buttons --- */
.sticky-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #f9583a;
  background: white;
  color: #f9583a;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sticky-button:hover {
  background-color: #f9583a;
  color: white;
}

.sticky-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.label-right {
  font-size: 0.85rem;
  color: #666;
}

/* --- Leveradres block (hidden by default) --- */
.leveradres-block {
  display: none;
  margin-bottom: 1rem;
}

/* --- Error messages --- */
.error-block {
  margin-bottom: 0.5rem;
}

.step-errors {
  color: #f9583a;
  margin-top: 0.5rem;
}

.step-errors ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* --- Checkbox styling --- */
.check-right {
  width: 20px;
  height: 20px;
  margin-left: 0.5rem;
  accent-color: #f9583a;
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* --- Three-state switch --- */
.three-state-switch {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin: 0.5rem auto;
}

.three-state-switch input[type="checkbox"] {
  display: none;
}

.three-state-switch label {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s;
  border-right: 1px solid #ccc;
  user-select: none;
}

.three-state-switch label:last-child {
  border-right: none;
}

.three-state-switch input:checked + label {
  background-color: #f9583a;
  color: white;
}

/* --- Zones input (increment/decrement) --- */
.zones-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem auto;
}

.zones-input input[type="number"] {
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  padding: 0.4rem;
}

.zones-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f9583a;
  background: white;
  color: #f9583a;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zones-button:hover {
  background-color: #f9583a;
  color: white;
}

/* --- Summary table --- */
#summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#summary-table th,
#summary-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

#summary-table th {
  background-color: #f9583a;
  color: white;
  font-weight: 600;
}

#summary-table .totals-row td {
  font-weight: 600;
  border-top: 2px solid #ccc;
}

/* --- Items container (extra options, planning) --- */
.items-container {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.items-container .tekst {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* --- Select wrapper --- */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: white;
}

/* --- Block container --- */
.block {
  margin-bottom: 1rem;
}

/* --- Dropzone overrides --- */
#file-dropzone {
  min-height: 120px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

#file-dropzone:hover {
  border-color: #f9583a;
}

#file-dropzone .dz-message h6 {
  color: #666;
  font-weight: normal;
}

/* --- Agenda / Flatpickr --- */
.agenda-datepicker {
  margin: 0 auto;
  max-width: 400px;
}

#deselect-date {
  display: block;
  margin: 0.5rem auto;
  padding: 0.4rem 1rem;
  background: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

#deselect-date:hover {
  background: #ccc;
}

/* --- Time selector --- */
.time-selector {
  margin-top: 1rem;
}

.hour-selector-container,
.minute-selector-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hour-selector-container .swiper-container,
.minute-selector-container .swiper-container {
  flex: 1;
  overflow: hidden;
}

.hour-nav,
.minute-nav {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.2rem;
  color: #f9583a;
}

.swiper-slide {
  text-align: center;
  font-size: 1.1rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.swiper-slide-active {
  font-weight: bold;
  color: #f9583a;
}

/* --- Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top: 4px solid #f9583a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#spinner-container {
  display: flex;
  justify-content: center;
}

/* --- Thank-you / error pages --- */
#thank-you-page {
  padding: 2rem;
}

/* --- Verdieping container --- */
.verdieping-container {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fefefe;
}

/* --- Popup container (cart overlay) --- */
.popup-container {
  padding: 1rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  #calculator-form .container {
    flex-direction: column;
  }

  #calculator-form .left,
  #calculator-form .right {
    min-width: 100%;
  }

  .three-state-switch {
    flex-direction: column;
  }

  .three-state-switch label {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .three-state-switch label:last-child {
    border-bottom: none;
  }
}

/* --- Availability heat map (P2.4) --- */
.week-low { background: rgba(76, 175, 80, 0.15) !important; }
.week-medium { background: rgba(255, 193, 7, 0.15) !important; }
.week-high { background: rgba(255, 152, 0, 0.15) !important; }

.availability-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.legend-dot--low { background: rgba(76, 175, 80, 0.4); }
.legend-dot--medium { background: rgba(255, 193, 7, 0.4); }
.legend-dot--high { background: rgba(255, 152, 0, 0.4); }
