:root {
  --field-error: #973027;
}

:root .form-panel {
  background: var(--feature-surface);
  border-color: var(--line);
}

:root .field :is(input, textarea, select),
.mve-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.5;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

:root .field :is(input, textarea)::placeholder {
  color: var(--slate);
  opacity: 1;
}

:root .field textarea {
  min-height: 150px;
  resize: vertical;
}

:root .field :is(input, textarea, select):focus,
.mve-select-trigger:is(:focus-visible, [aria-expanded="true"]) {
  outline: 2px solid var(--hero-accent, var(--accent));
  outline-offset: 3px;
  border-color: var(--accent);
}

:root .field :is(input, textarea)[aria-invalid="true"],
.mve-select-trigger[aria-invalid="true"] {
  border-color: var(--field-error);
}

:root .field-error {
  color: var(--field-error);
}

:root .field :is(input, textarea):disabled,
.mve-select-trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

:root .consent-field input {
  accent-color: var(--accent);
}

:root .consent-field label {
  color: var(--slate);
}

.mve-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

select[data-enhanced-select] {
  display: none !important;
}

.mve-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-weight: 550;
}

.mve-select-trigger > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mve-select-arrow {
  width: 8px;
  height: 8px;
  margin: -4px 3px 0;
  flex: 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s;
}

.mve-select-trigger[aria-expanded="true"] .mve-select-arrow {
  transform: translateY(4px) rotate(225deg);
}

.mve-select-panel {
  position: fixed;
  z-index: 180;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 28px #06142126;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--paper);
}

.mve-select-panel[hidden] {
  display: none;
}

.mve-select-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: pointer;
}

.mve-select-option[hidden] {
  display: none;
}

.mve-select-option.is-active {
  background: var(--link-fill, #8bc7481f);
  border-color: var(--accent);
}

.mve-select-option[aria-selected="true"] {
  font-weight: 650;
}

.mve-select-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 15px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--hero-accent, var(--accent));
  border-bottom: 2px solid var(--hero-accent, var(--accent));
  transform: rotate(45deg);
}

.mve-select-option[aria-disabled="true"] {
  color: var(--slate);
  opacity: 0.65;
  cursor: not-allowed;
}

@media (hover: hover) {
  .mve-select-trigger:not(:disabled):hover {
    border-color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mve-select-trigger,
  .mve-select-arrow {
    transition: none;
  }
}

@media (forced-colors: active) {
  .mve-select-option.is-active {
    outline: 2px solid Highlight;
  }
}
