/* ==========================================================================
   Feedback Form Styles — com_jeti
   ========================================================================== */

/* Font Awesome Solid — subset for star icons + section icons */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('/media/vendor/fontawesome-free/webfonts/fa-solid-900.woff2') format('woff2');
}

.fa-solid,
.fa-star {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  line-height: 1;
}

.fa-star::before { content: '\f005'; }
.fa-microchip::before { content: '\f2db'; }
.fa-truck-fast::before { content: '\f48b'; }
.fa-heart::before { content: '\f004'; }
.fa-lightbulb::before { content: '\f0eb'; }

/* ── Rating legend (shown once above sections) ──────────────── */
.rating-legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: #f8f9fa;
  border-radius: .375rem;
  font-size: .85rem;
  color: #6c757d;
}

.rating-legend__stars {
  display: flex;
  gap: 2px;
  color: #ff9800;
  font-size: 1rem;
}

.rating-legend__low { margin-right: auto; }
.rating-legend__high { margin-left: auto; }

/* ── Star Rating ────────────────────────────────────────────── */
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.rating input {
  display: none;
}

.rating label {
  font-size: 1.6rem;
  color: #ced4da;
  cursor: pointer;
  padding: 0 2px;
  margin: 0;
  user-select: none;
  transition: color .2s ease;
  line-height: 1;
}

.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: #ffc107;
}

.rating input:checked ~ label {
  color: #ff9800;
}

/* ── Accordion accent ───────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  background-color: #027EA6;
  color: #fff;
}

.accordion-button:not(.collapsed) .fa-solid {
  color: #fff;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  border-color: #027EA6;
  box-shadow: 0 0 0 .2rem rgba(2, 126, 166, .25);
}

.accordion-button .fa-solid {
  color: #027EA6;
  transition: color .2s ease;
}

/* ── Rating questions with subtle separators ────────────────── */
.rating-question {
  padding-bottom: .75rem;
  border-bottom: 1px solid #eee;
}

.rating-question:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ── Form focus ─────────────────────────────────────────────── */
#feedback-form .form-control:focus {
  border-color: #027EA6;
  box-shadow: 0 0 0 .2rem rgba(2, 126, 166, .2);
}

/* ── Submit button ──────────────────────────────────────────── */
#feedback-form .btn-primary {
  background-color: #027EA6;
  border-color: #027EA6;
}

#feedback-form .btn-primary:hover {
  background-color: #025f85;
  border-color: #025f85;
}

#feedback-form .btn-primary:disabled {
  opacity: .5;
}

/* ── Progress indicator ─────────────────────────────────────── */
#feedback-progress {
  transition: opacity .3s ease;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rating label {
    font-size: 1.5rem;
  }

  .rating-legend {
    font-size: .8rem;
  }
}
