.consultation-form-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.consultation-form-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #006838;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 104, 56, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.consultation-form .form-label {
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.consultation-form .form-control,
.consultation-form .form-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid #ced4da !important;
  background-color: #fff !important;
  color: #212529;
}

.consultation-form input:not([type='range']):not([type='checkbox']):not([type='radio']),
.consultation-form textarea {
  border: 1px solid #ced4da !important;
  background-color: #fff !important;
}

/* Một mũi tên dropdown — ẩn mũi tên mặc định trình duyệt */
.consultation-form select.form-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 2.25rem !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23006838' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 14px 10px !important;
}

.home-consultation-form .consultation-form select.form-select {
  background-color: rgba(255, 255, 255, 0.82) !important;
}

.home-consultation-form .consultation-form select.form-select:disabled {
  background-color: rgba(233, 236, 239, 0.75) !important;
}

.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
  border-color: #006838;
  box-shadow: 0 0 0 0.2rem rgba(0, 104, 56, 0.15);
}

.consultation-form select.form-select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23006838' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 14px 10px !important;
}

.consultation-form .required-mark {
  color: #dc3545;
}

.consultation-suggested-products {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f8faf9;
  border-radius: 8px;
  border: 1px solid #e8ece9;
}

.consultation-suggested-products.is-visible {
  display: block;
}

.consultation-suggested-products__title {
  font-size: 15px;
  font-weight: 700;
  color: #006838;
  margin-bottom: 12px;
}

.consultation-suggested-products__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.consultation-suggested-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s ease;
}

.consultation-suggested-product:hover {
  box-shadow: 0 4px 12px rgba(0, 104, 56, 0.12);
  color: #006838;
}

.consultation-suggested-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.consultation-suggested-product span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.consultation-form .consultation-form__custom-crop-wrap {
  display: none;
}

.consultation-form .consultation-form__custom-crop-wrap.is-visible {
  display: block;
}

.consultation-form--compact .consultation-form-section {
  padding: 18px 14px;
  margin-bottom: 16px;
}

.consultation-form--compact .consultation-form-section__title {
  font-size: 15px;
  margin-bottom: 14px;
}

.consultation-form--compact .form-control,
.consultation-form--compact .form-select {
  min-height: 42px;
  font-size: 14px;
}

/* Layout 3 cột + bước */
.consultation-form--columns .consultation-form__steps-nav {
  margin-bottom: 14px;
}

.consultation-form--columns .consultation-form__steps-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.consultation-form--columns .consultation-form__step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(0, 104, 56, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(0, 104, 56, 0.15);
}

.consultation-form--columns .consultation-form__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #006838;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.consultation-form--columns .consultation-form__step-label {
  font-size: 12px;
  font-weight: 600;
  color: #006838;
  white-space: nowrap;
}

.consultation-form--columns .consultation-form__step-connector {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #8bc53f, #006838);
  border-radius: 1px;
  flex-shrink: 0;
}

.consultation-form--columns .consultation-form__columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.consultation-form--columns .consultation-form__step-col {
  flex: 1;
  min-width: 0;
}

.consultation-form--columns .consultation-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 12px 11px;
}

.consultation-form--columns .consultation-form-section__title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-bottom: 8px;
  min-height: 0;
  text-transform: none;
  letter-spacing: 0;
}

.consultation-form--columns .consultation-form-section__title-text {
  flex: 1;
}

.consultation-form--columns .consultation-form__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #006838;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.consultation-form--columns .consultation-form__step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  flex-shrink: 0;
}

.consultation-form--columns .consultation-form__step-arrow-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006838' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12l7 7 7-7'/%3E%3C/svg%3E");
  transform: rotate(-90deg);
  opacity: 0.85;
}

.consultation-form--columns .form-label {
  font-size: 11px;
  margin-bottom: 3px !important;
  line-height: 1.25;
}

.consultation-form--columns .consultation-form__step-col:first-child .row > .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.consultation-form--columns .form-control,
.consultation-form--columns .form-select {
  min-height: 36px;
  font-size: 13px;
  padding: 6px 10px !important;
}

.consultation-form--columns textarea.form-control {
  min-height: 56px;
}

.consultation-form--columns .consultation-form__actions {
  margin-top: 12px;
  padding-top: 4px;
  width: 100%;
  clear: both;
}

.consultation-form--columns .consultation-form__submit {
  padding: 10px 24px;
  font-size: 14px;
}

@media (min-width: 992px) {
  .consultation-form--columns .consultation-form__columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 6px 4px;
    align-items: stretch;
  }

  .consultation-form--columns .consultation-form__step-arrow {
    padding: 0 2px;
    align-self: center;
  }

  .consultation-form--columns .consultation-form__step-arrow-icon {
    transform: rotate(0);
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006838' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  }
}

@media (max-width: 991px) {
  .consultation-form--columns .consultation-form__columns {
    gap: 12px;
  }

  .consultation-form--columns .consultation-form-section {
    margin-bottom: 0;
  }

  .consultation-form--columns .consultation-form__step-arrow {
    display: none;
  }
}

/* Mobile — layout gọn, một dòng bước, không kéo giãn ô input */
@media (max-width: 767px) {
  .consultation-form-section {
    padding: 14px 12px;
  }

  .consultation-form--columns .consultation-form__steps-nav {
    margin-bottom: 10px;
  }

  .consultation-form--columns .consultation-form__steps-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    padding: 4px;
    background: rgba(0, 104, 56, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(0, 104, 56, 0.1);
  }

  .consultation-form--columns .consultation-form__step-connector {
    display: none;
  }

  .consultation-form--columns .consultation-form__step-pill {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 6px 4px;
    border-radius: 8px;
    background: transparent;
    border: none;
  }

  .consultation-form--columns .consultation-form__step-num {
    width: 22px;
    height: 22px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .consultation-form--columns .consultation-form__step-label {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .consultation-form--columns .consultation-form__columns {
    gap: 10px;
  }

  .consultation-form--columns .consultation-form__step-col,
  .consultation-form--columns .consultation-form-section,
  .consultation-form--columns .consultation-form-section.h-100 {
    height: auto !important;
    min-height: 0 !important;
  }

  .consultation-form--columns .consultation-form-section {
    display: block;
    padding: 12px 11px;
    border-radius: 10px;
  }

  .consultation-form--columns .consultation-form-section__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
  }

  /* Ẩn số trùng trong tiêu đề — đã có thanh bước phía trên */
  .consultation-form--columns .consultation-form__step-badge--in-title {
    display: none !important;
  }

  .consultation-form--columns .consultation-form__step-col .row {
    --bs-gutter-y: 0.5rem;
  }

  .consultation-form--columns .form-label {
    font-size: 12px;
    margin-bottom: 4px !important;
  }

  .consultation-form--columns input.form-control:not([type='hidden']),
  .consultation-form--columns select.form-select {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 16px;
    line-height: 1.25;
    padding: 8px 11px !important;
  }

  .consultation-form--columns textarea.form-control {
    height: auto !important;
    min-height: 72px !important;
    max-height: none !important;
    padding: 8px 11px !important;
  }

  .consultation-form--columns .consultation-form__step-col .row > [class*='col-'] {
    margin-bottom: 0;
  }

  .consultation-form--columns .consultation-form__step-col .row > .col-12,
  .consultation-form--columns .consultation-form__step-col .row > .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .consultation-form--columns .consultation-form__actions {
    margin-top: 12px;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .consultation-form--columns .consultation-form__submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .consultation-form--columns .consultation-form__step-col:first-child .row > .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .consultation-form--columns .consultation-form__step-col:first-child input.form-control {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
}
