/* ============================================================
   GODTHIC — Micro-Polish Budget / Tarifs
   1. Suppression définitive des repères tarifaires textuels
   2. Champ & Menu Déroulant Budget en SMOKE / BLACK LIQUID GLASS
   3. État fermé : capsule Smoke Liquid Glass avec chevron animé
   4. État ouvert : menu déroulant Liquid Glass avec tap target >= 44px
   5. Accessibilité : navigation clavier (Flèches, Entrée, Échap, Tab),
      focus-visible, aria-expanded, aria-controls, role="listbox"
   ============================================================ */

/* ── 1. Neutralisation stricte des anciens repères textuels ── */
.budget-guide,
.budget-guide::before,
.budget-guide::after {
  display: none !important;
  content: "" !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  pointer-events: none !important;
}

/* ── 2. Select Natif Masqué mais Présent pour Formulaire ── */
.budget-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── 2.5 Sécurisation Conteneur Formulaire & Fieldset ── */
.request-form,
.request-form fieldset,
.request-form label,
.request-form input,
.request-form textarea,
.request-form select {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 860px) {
  .request-form fieldset {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ── 3. Conteneur Custom Select Liquid Glass ── */
.budget-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 7px;
  box-sizing: border-box;
}

/* ── 4. État Fermé : Capsule Smoke / Black Liquid Glass ── */
.budget-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 26, 28, 0.85) 0%, rgba(12, 12, 14, 0.92) 65%, rgba(6, 6, 8, 0.96) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.40),
    inset 0 -1px 1px rgba(0, 0, 0, 0.60),
    0 12px 28px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
  text-align: left;
  box-sizing: border-box;
  user-select: none;
}

/* Hover desktop : rehaussement subtil du specular highlight */
.budget-trigger:hover {
  border-top-color: rgba(255, 255, 255, 0.44);
  border-left-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.60),
    0 16px 34px rgba(0, 0, 0, 0.65);
  background: linear-gradient(145deg, rgba(32, 32, 36, 0.88) 0%, rgba(14, 14, 18, 0.94) 65%, rgba(8, 8, 10, 0.98) 100%);
}

/* Focus visible clavier */
.budget-trigger:focus-visible {
  outline: none;
  border-top-color: #fff;
  box-shadow:
    0 0 0 2px rgba(229, 0, 15, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

/* Label dans la capsule */
.budget-trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: color .2s ease;
}

.budget-trigger-label.has-value {
  color: #ffffff;
  font-weight: 600;
}

/* Chevron micro-interaction (rotation 180° en 220ms) */
.budget-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease;
  margin-left: 14px;
  flex-shrink: 0;
}

.budget-select-wrapper.is-open .budget-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.budget-select-wrapper.is-open .budget-trigger {
  border-top-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 20px rgba(229, 0, 15, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.52),
    0 16px 36px rgba(0, 0, 0, 0.75);
}

/* ── 5. État Ouvert : Menu Déroulant Smoke Liquid Glass ── */
.budget-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(22, 22, 25, 0.94) 0%, rgba(10, 10, 12, 0.98) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 24px 50px rgba(0, 0, 0, 0.88);
  list-style: none;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms ease;
  pointer-events: none;
  z-index: 99;
  box-sizing: border-box;
}

.budget-select-wrapper.is-open .budget-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── 6. Options de Budget ── */
.budget-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .015em;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, padding-left .16s ease;
  user-select: none;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.budget-opt-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}

.budget-option:last-child {
  border-bottom: none;
}

.budget-option:hover,
.budget-option.is-highlighted {
  background: linear-gradient(90deg, rgba(229, 0, 15, 0.16), transparent 85%);
  color: #ffffff;
  padding-left: 22px;
}

.budget-option.is-selected {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(229, 0, 15, 0.28), rgba(229, 0, 15, 0.04) 75%);
}

/* Puce de sélection / check */
.budget-opt-check {
  color: var(--wheel-red, #e5000f);
  font-size: 13px;
  font-weight: 700;
  margin-left: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .16s ease, transform .16s ease;
}

.budget-option.is-selected .budget-opt-check {
  opacity: 1;
  transform: scale(1);
}

/* ── 7. Responsive ── */
@media (max-width: 768px) {
  .budget-trigger {
    min-height: 48px;
    padding: 11px 16px;
    font-size: 12px;
  }
  .budget-option {
    min-height: 46px;
    padding: 11px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .budget-trigger {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 11.5px;
    border-radius: 10px;
  }
  .budget-option {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 11.5px;
  }
}

/* ── 8. Accessibilité : prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .budget-trigger,
  .budget-chevron,
  .budget-dropdown,
  .budget-option {
    transition: none !important;
  }
  .budget-dropdown {
    transform: none !important;
  }
}