/* Page feedback — form controls & layout */

.feedback-form {
  max-width: 52rem;
  margin: 0 auto;
}

/* Panels */
.feedback-panel {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #f8f8f6;
  border: 1px solid #eceef1;
  border-radius: 1rem;
}

.feedback-form > .feedback-panel:first-child {
  margin-top: 0;
}

.feedback-section__title {
  font-family: Mont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.feedback-panel .feedback-section__title {
  margin-top: 0;
}

/* Grid */
.feedback-grid {
  display: grid;
  gap: 1rem 1.25rem;
}

.feedback-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-field--full {
  grid-column: 1 / -1;
}

/* Field */
.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.feedback-fieldset {
  border: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  min-width: 0;
}

.feedback-fieldset--tight {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.feedback-fieldset .feedback-field__label {
  margin-bottom: 0.75rem;
}

.feedback-field__label {
  display: block;
  font-family: Mont, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #222;
  line-height: 1.3;
}

.feedback-field__required {
  color: #c00;
}

.feedback-field__optional,
.feedback-field__hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #666;
  font-size: 0.8125rem;
}

.feedback-field__control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d8dce2;
  border-radius: 0.5rem;
  background: #fff;
  color: #111;
  font-family: Mont, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-field__control::placeholder {
  color: #999;
}

.feedback-field__control:hover {
  border-color: #bbb;
}

.feedback-field__control:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.feedback-field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 13 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6.5 6L12 1' stroke='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.feedback-field__date {
  color: #111;
  color-scheme: light;
}

.feedback-field__date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
}

/* Phone input with +243 prefix */
.feedback-phone {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.feedback-phone__prefix {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.875rem;
  border: 1px solid #d8dce2;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: #f3f4f6;
  color: #444;
  font-family: Mont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feedback-phone__input {
  border-radius: 0 0.5rem 0.5rem 0 !important;
  min-width: 0;
}

.feedback-phone:focus-within .feedback-phone__prefix {
  border-color: #111;
}

.feedback-phone:focus-within .feedback-phone__input {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Form section spacing before footer */
.feedback-form {
  padding-bottom: 2rem;
}

#div-form.block-contact {
  margin-bottom: 0;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Chips (espaces visités) */
.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feedback-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.feedback-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.feedback-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d8dce2;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-family: Mont, sans-serif;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-chip:hover span {
  border-color: #999;
}

.feedback-chip input:focus-visible + span {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.feedback-chip input:checked + span {
  background: #111;
  border-color: #111;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Score slider */
.feedback-score {
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.feedback-score__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feedback-score__header .feedback-field__label {
  margin: 0;
}

.feedback-score__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.125rem;
  padding: 0.35rem 0.75rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
  line-height: 1;
}

.feedback-score__value {
  font-family: Mont, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.feedback-score__max {
  font-size: 0.75rem;
  opacity: 0.75;
}

.feedback-score__track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.feedback-score__edge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  min-width: 1.25rem;
  text-align: center;
}

.feedback-score__range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: linear-gradient(to right, #111 0%, #111 var(--score-pct, 78%), #e4e7ec var(--score-pct, 78%), #e4e7ec 100%);
  border-radius: 999px;
  cursor: pointer;
}

.feedback-score__range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
}

.feedback-score__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
}

.feedback-score__range:active::-webkit-slider-thumb {
  cursor: grabbing;
}

/* Segmented controls (satisfaction / recommandation) */
.feedback-segmented {
  display: grid;
  gap: 0.5rem;
}

.feedback-segmented--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feedback-segmented--wrap {
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.feedback-segment {
  position: relative;
  display: flex;
  margin: 0;
  cursor: pointer;
}

.feedback-segment input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.feedback-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d8dce2;
  border-radius: 0.5rem;
  background: #fff;
  color: #333;
  font-family: Mont, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-segment:hover span {
  border-color: #999;
}

.feedback-segment input:focus-visible + span {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.feedback-segment input:checked + span {
  background: #111;
  border-color: #111;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Consent checkboxes (unchanged area) */
.feedback-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.4;
}

.feedback-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: #000;
  cursor: pointer;
}

.feedback-consent .feedback-checkbox {
  margin-bottom: 0.75rem;
}

/* Legacy identity radios — keep compact */
.feedback-form .form-1__row--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feedback-form .form-1__row--inline .round.light {
  flex: 1 1 auto;
  min-width: 140px;
}

/* Responsive */
@media (max-width: 767px) {
  .feedback-grid--2 {
    grid-template-columns: 1fr;
  }

  .feedback-panel {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .feedback-segmented--3 {
    grid-template-columns: 1fr;
  }

  .feedback-segmented--wrap {
    grid-template-columns: 1fr;
  }

  .feedback-score__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-form .form-1__row--inline .round.light {
    min-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .feedback-segmented--wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
