.amb-m8b-quote {
  background: var(--am-black);
  color: var(--am-white);
  padding-block: var(--am-section-space);
}

.amb-m8b-quote__shell {
  width: min(100%, var(--am-container));
  margin-inline: auto;
  padding-inline: var(--am-gutter);
}

.amb-m8b-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--am-gap);
  margin-top: var(--am-gap);
}

.amb-m8b-quote-form label {
  display: grid;
  gap: 8px;
  color: var(--am-white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.amb-m8b-quote-form input,
.amb-m8b-quote-form select,
.amb-m8b-quote-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  background: var(--am-surface);
  color: var(--am-white);
  padding: 12px 14px;
  font: inherit;
}

.amb-m8b-quote-form textarea {
  min-height: 132px;
  resize: vertical;
}

.amb-m8b-quote-form input:focus,
.amb-m8b-quote-form select:focus,
.amb-m8b-quote-form textarea:focus,
.amb-m8b-quote-form input:focus-visible,
.amb-m8b-quote-form select:focus-visible,
.amb-m8b-quote-form textarea:focus-visible {
  border-color: var(--amb-accent-red, #FF1840);
  outline: 0;
}

.amb-m8b-quote-form select {
  accent-color: var(--amb-accent-red, #FF1840);
  color-scheme: dark;
}

.amb-m8b-quote-form select option:checked {
  background: var(--amb-accent-red, #FF1840) linear-gradient(0deg, var(--amb-accent-red, #FF1840), var(--amb-accent-red, #FF1840));
  color: #fff;
}

.amb-m8b-quote-form select.amb-custom-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.amb-custom-select {
  position: relative;
  width: 100%;
  font: inherit;
}

.amb-m8b-quote-form .amb-custom-select__trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  background: var(--am-surface) !important;
  color: var(--am-white) !important;
  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  filter: none !important;
}

.amb-m8b-quote-form .amb-custom-select__trigger:hover {
  border-color: var(--am-border);
  background: var(--am-surface) !important;
}

.amb-m8b-quote-form .amb-custom-select__trigger:focus,
.amb-m8b-quote-form .amb-custom-select__trigger:focus-visible,
.amb-m8b-quote-form .amb-custom-select__trigger[aria-invalid="true"] {
  border-color: var(--amb-accent-red, #FF1840);
  outline: 0;
  background: var(--am-surface) !important;
}

.amb-custom-select__arrow {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}

.amb-custom-select.is-open .amb-custom-select__arrow {
  transform: rotate(225deg) translate(-2px, -2px);
}

.amb-custom-select__options {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--amb-surface-2, #24242A);
  border-radius: var(--am-radius);
  background: var(--amb-bg-2, #111113);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
  color: var(--am-white);
  list-style: none;
}

.amb-custom-select__options[hidden] {
  display: none;
}

.amb-custom-select__option {
  margin: 0;
  padding: 12px 14px;
  border-radius: calc(var(--am-radius) - 2px);
  color: var(--am-white);
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.amb-custom-select__option[aria-selected="true"] {
  background: var(--amb-accent-red, #FF1840);
  color: var(--amb-bg-1, #070708);
}

.amb-custom-select__option:hover,
.amb-custom-select__option.is-active:not([aria-selected="true"]) {
  background: var(--amb-accent-orange, #FF6B35);
  color: var(--amb-bg-1, #070708);
}

.amb-m8b-quote-form__full {
  grid-column: 1 / -1;
}

.amb-m8b-quote-form button[type="submit"] {
  width: max-content;
  min-height: var(--am-button-height);
  border: 1px solid var(--am-orange);
  border-radius: var(--am-radius);
  background: var(--am-orange);
  color: var(--am-black);
  padding: 0 24px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.amb-m8b-quote-form button[type="submit"]:hover,
.amb-m8b-quote-form button[type="submit"]:focus-visible {
  border-color: var(--am-orange-hover);
  background: var(--am-orange-hover);
}

@media (max-width: 767px) {
  .amb-m8b-quote-form { grid-template-columns: 1fr; }
  .amb-m8b-quote-form__full { grid-column: auto; }
}

