/*
======================================
BWA Vendeur — Formulaire distributeur
======================================
*/

/*.bg-img__cms {*/
/*  height: 200px;*/
/*  background: #F0E7E0 !important;*/
/*}*/

/*body#module-bwavendeur-form .header-bg {*/
/*  background: #F0E7E0 !important;*/
/*}*/

/*body#module-bwavendeur-form #wrapper .wave.wave--top {*/
/*  background: #F0E7E0 !important;*/
/*}*/

.bwavendeur-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/*
--------------------------------------
Header
--------------------------------------
*/

.vendor-header {
  text-align: center;
  margin: 60px 0 50px;
}

.vendor-header__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.vendor-header__title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-secondary);
  margin: 0 0 16px;
}

.vendor-header__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  max-width: 640px;
  margin: 0 auto;
}

/*
--------------------------------------
Layout 2 colonnes
--------------------------------------
*/

.vendor-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
}

/*
--------------------------------------
Colonne gauche — avantages
--------------------------------------
*/

.vendor-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vendor-benefit-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: #F0E7E0;
  transition: box-shadow 0.2s ease;
}

.vendor-benefit-block:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.vendor-benefit-block__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}

.vendor-benefit-block__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0 0 10px;
}

.vendor-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vendor-benefit-list li {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.vendor-benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
}

.vendor-benefit-block__text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 10px;
}

.vendor-benefit-block__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vendor-benefit-block__link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/*
--------------------------------------
Formulaire
--------------------------------------
*/

.vendor-form-wrapper {
  background: #F0E7E0;
  border-radius: 8px;
  padding: 36px;
}

.vendor-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vendor-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vendor-form__group--full {
  grid-column: 1 / -1;
}

.vendor-form__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  text-align: left;
  margin-bottom: unset !important;
}

.vendor-required {
  color: var(--color-primary);
}

.vendor-optional {
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
  color: #999;
  letter-spacing: 0;
}

.vendor-form__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  font-size: 15px;
  color: var(--color-secondary);
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.vendor-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.vendor-form__textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 130px;
}

/*
--------------------------------------
Selects
--------------------------------------
*/

.vendor-form__select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 15px;
  color: var(--color-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.vendor-form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.vendor-form__select--multiple {
  height: auto;
  padding: 6px 14px;
  background-image: none;
  resize: vertical;
}

.vendor-form__select--multiple option {
  padding: 8px 6px;
  font-size: 14px;
  cursor: pointer;
}

.vendor-form__select--multiple option:checked {
  background: var(--color-primary);
  color: #fff;
}

.vendor-form__hint {
  font-size: 12px;
  color: #999;
  margin: 6px 0 0;
}

/*
--------------------------------------
Dropdown activité (custom)
--------------------------------------
*/

.vendor-dropdown {
  position: relative;
}

.vendor-dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  font-size: 15px;
  color: var(--color-secondary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-shadow: none;
}

.vendor-dropdown__trigger:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.vendor-dropdown--open .vendor-dropdown__trigger {
  border-color: var(--color-primary);
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.vendor-dropdown__selected {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.vendor-dropdown__selected-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vendor-dropdown__selected-label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-dropdown__selected-label--placeholder {
  color: #aaa;
  font-weight: 400;
}

.vendor-dropdown__chevron {
  flex-shrink: 0;
  color: #888;
  transition: transform 0.2s ease;
}

.vendor-dropdown--open .vendor-dropdown__chevron {
  transform: rotate(180deg);
}

.vendor-dropdown__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-primary);
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.vendor-dropdown--open .vendor-dropdown__list {
  display: block;
}

.vendor-dropdown__item label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-secondary);
  transition: background 0.15s ease;
}

.vendor-dropdown__item label:hover {
  background: #f9f4f0;
}

.vendor-dropdown__item--selected label {
  background: #f0e7e0;
}

.vendor-dropdown__item input[type="radio"] {
  display: none;
}

.vendor-dropdown__item-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vendor-dropdown__item-label {
  flex: 1;
  font-weight: 500;
  text-align: left;
}

.vendor-dropdown__item-check {
  display: none;
  color: var(--color-primary);
  align-items: center;
}

.vendor-dropdown__item--selected .vendor-dropdown__item-check {
  display: flex;
}

/*
--------------------------------------
Radios commerce type
--------------------------------------
*/

.vendor-form__radios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vendor-form__radios--wrap .vendor-radio {
  flex: 1 1 160px;
  min-width: 0;
}

.vendor-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  flex: 1;
  min-width: 140px;
}

.vendor-radio:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.vendor-radio--active,
.vendor-radio:has(input:checked) {
  border-color: var(--color-primary);
  background: #fff;
}

.vendor-radio input[type="radio"],
.vendor-checkbox input[type="checkbox"] {
  display: none;
}

.vendor-radio__icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.vendor-radio__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
}

/*
--------------------------------------
Checkboxes (multi-select cards)
--------------------------------------
*/

.vendor-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  flex: 1;
  min-width: 160px;
  position: relative;
}

.vendor-checkbox:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.vendor-checkbox--active,
.vendor-checkbox:has(input:checked) {
  border-color: var(--color-primary);
  background: #fff;
}

.vendor-checkbox:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/*
--------------------------------------
Radio text-only (volume)
--------------------------------------
*/

.vendor-radio--text {
  justify-content: center;
  min-width: 120px;
  flex: 1;
}

.vendor-radio--text .vendor-radio__label {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.vendor-form__radios--volume .vendor-radio--text {
  padding: 14px 12px;
}

/*
--------------------------------------
Footer formulaire
--------------------------------------
*/

.vendor-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.vendor-form__required-note {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/*
--------------------------------------
Bouton
--------------------------------------
*/

.vendor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.vendor-btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.vendor-btn--primary:hover {
  opacity: 0.85;
  color: #fff;
}

/*
--------------------------------------
Message de succès
--------------------------------------
*/

.vendor-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  gap: 20px;
}

.vendor-success__icon {
  color: var(--color-primary);
}

.vendor-success__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0;
}

.vendor-success__text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}

/*
--------------------------------------
Alertes erreurs
--------------------------------------
*/

.vendor-alert {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.vendor-alert--danger {
  background: #fdf0f0;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.vendor-alert ul {
  margin: 0;
  padding-left: 18px;
}

.vendor-alert li {
  font-size: 14px;
  line-height: 1.6;
}

/*
--------------------------------------
Responsive
--------------------------------------
*/

@media (max-width: 1100px) {
  .vendor-container {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .vendor-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vendor-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vendor-benefit-block {
    flex: 1 1 260px;
    min-width: 0;
  }

  .vendor-form-wrapper {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .vendor-header {
    margin: 32px 0 28px;
  }

  .vendor-header__title {
    font-size: 22px;
  }

  .vendor-header__desc {
    font-size: 14px;
  }

  .vendor-aside {
    flex-direction: column;
  }

  .vendor-form__grid {
    grid-template-columns: 1fr;
  }

  .vendor-form__group--full {
    grid-column: 1;
  }

  .vendor-form__radios {
    flex-direction: column;
  }

  .vendor-radio {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .vendor-form-wrapper {
    padding: 16px;
  }

  .vendor-form__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .vendor-btn--primary {
    width: 100%;
    justify-content: center;
  }
}
