/* Memorável — Formulário de Solicitação de Viagem + Select Customizado (referência Antares Prime) */

.travel-site #roteiro .quote-grid {
  grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.travel-site #roteiro .quote-copy {
  display: grid;
  gap: 18px;
}

.travel-site #roteiro .quote-highlights {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.travel-site #roteiro .quote-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #35295c;
  font-weight: 500;
}

.travel-site #roteiro .quote-highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange, #ff5631);
  flex: none;
}

.travel-site #roteiro .quote-form {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3.4vw, 40px);
  background: #ffffff;
  border: 1px solid #e1dbf5;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(57, 26, 170, 0.08);
}

.travel-site #roteiro .quote-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #634aff 0%, #ff5631 33%, #f5d76e 66%, #634aff 100%);
  background-size: 200% 100%;
  animation: memLineFlow 4.8s linear infinite;
  pointer-events: none;
}

.travel-site #roteiro .quote-form-section-title {
  margin: 4px 0 -4px;
  padding-top: 10px;
  border-top: 1px solid #eeeafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #634aff;
}

.travel-site #roteiro .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.travel-site #roteiro .field {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
}

.travel-site #roteiro .field label,
.travel-site #roteiro .quote-fieldset legend,
.travel-site #roteiro .field-label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #391aaa;
  letter-spacing: -0.005em;
}

.travel-site #roteiro .field-req {
  color: #ff5631;
  font-weight: 700;
}

.travel-site #roteiro .field-opt {
  font-weight: 400;
  font-size: 11.5px;
  color: #746b94;
}

.travel-site #roteiro .field input:not(.mem-select-search-input):not([type="checkbox"]):not([type="radio"]),
.travel-site #roteiro .field select,
.travel-site #roteiro .field textarea {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d9d3ee;
  border-radius: 8px;
  background-color: #faf9fe;
  color: #1e163b;
  font-family: 'Noto Sans', Inter, sans-serif;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.travel-site #roteiro .field textarea {
  height: auto;
  min-height: 98px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

.travel-site #roteiro .field input::placeholder,
.travel-site #roteiro .field textarea::placeholder {
  color: #877ea8;
}

.travel-site #roteiro .field input:not(.mem-select-search-input):not([type="checkbox"]):not([type="radio"]):focus,
.travel-site #roteiro .field select:focus,
.travel-site #roteiro .field textarea:focus {
  border-color: #634aff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 74, 255, 0.14);
}

.travel-site #roteiro .field input[aria-invalid="true"],
.travel-site #roteiro .field textarea[aria-invalid="true"] {
  border-color: #d93025;
  background-color: #fffafa;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.travel-site #roteiro .field-help {
  min-height: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #695f8a;
}

.travel-site #roteiro .field-error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #c62828;
  line-height: 1.35;
}

.travel-site #roteiro .field-error[hidden] {
  display: none;
}

/* ===== Select Customizado Estilo Antares Prime (identidade Memorável) ===== */
.mem-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.mem-select-trigger {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d9d3ee;
  border-radius: 8px;
  background-color: #faf9fe;
  color: #1e163b;
  font-family: 'Noto Sans', Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mem-select-trigger:hover {
  border-color: #b7abdf;
  background-color: #ffffff;
}

.mem-select.is-open .mem-select-trigger,
.mem-select-trigger:focus-visible {
  border-color: #634aff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 74, 255, 0.14);
}

.mem-select.is-preselected .mem-select-trigger {
  border-color: #ff5631;
  background-color: #fff9f7;
}

.mem-select.is-invalid .mem-select-trigger {
  border-color: #d93025;
  background-color: #fffafa;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.mem-select-value-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mem-select-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.mem-select-value.is-placeholder {
  color: #7c739d;
  font-weight: 400;
}

.mem-select-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efeaff;
  color: #391aaa;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mem-select-chevron {
  flex: none;
  width: 15px;
  height: 15px;
  color: #7c739d;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mem-select.is-open .mem-select-chevron {
  transform: rotate(180deg);
  color: #634aff;
}

/* Menu flutuante suspenso */
.mem-select-popover {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  min-width: min(17rem, 92vw);
  background: #ffffff;
  border: 1px solid #dfd9f4;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(57, 26, 170, 0.16);
  z-index: 160;
  overflow: hidden;
}

.mem-select-popover[hidden] {
  display: none;
}

.mem-select-popover.is-flipped {
  top: auto;
  bottom: calc(100% + 5px);
}

/* Barra de busca superior estilo Antares Prime */
.mem-select-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #ece7fb;
  background: #fcfbff;
  color: #7c739d;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.mem-select-search:focus-within {
  box-shadow: inset 0 -2px 0 #634aff;
  color: #391aaa;
}

.mem-select-search-icon {
  flex: none;
  width: 15px;
  height: 15px;
}

.travel-site #roteiro .field .mem-select-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e163b;
  font-family: 'Noto Sans', Inter, sans-serif;
  font-size: 13.5px;
  outline: none;
  box-shadow: none;
}

.travel-site #roteiro .field .mem-select-search-input::placeholder {
  color: #8980a8;
}

.travel-site #roteiro .field .mem-select-search-input::-webkit-search-cancel-button,
.travel-site #roteiro .field .mem-select-search-input::-webkit-search-decoration,
.travel-site #roteiro .field .mem-select-search-input::-webkit-search-results-button,
.travel-site #roteiro .field .mem-select-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.mem-select-spinner {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid #e1dbf5;
  border-top-color: #634aff;
  border-radius: 50%;
  animation: memSelectSpin 0.65s linear infinite;
}

.mem-select-spinner[hidden] {
  display: none;
}

@keyframes memSelectSpin {
  to { transform: rotate(360deg); }
}

.mem-select-clear {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #f0ecfc;
  color: #391aaa;
  font-size: 14px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.mem-select-clear:hover {
  background: #e1d8ff;
}

.mem-select-clear[hidden] {
  display: none;
}

/* Lista rolável e opções */
.mem-select-viewport {
  max-height: min(52vh, 320px);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #d4cbf2 transparent;
}

.mem-select-group-label {
  padding: 7px 10px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #634aff;
}

.mem-select-group-label:not(:first-child) {
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid #f0ecfc;
}

.mem-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-family: 'Noto Sans', Inter, sans-serif;
  font-size: 13.5px;
  color: #1e163b;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.mem-select-option:hover,
.mem-select-option.is-highlighted {
  background: #f5f2ff;
}

.mem-select-option[aria-selected="true"] {
  background: #efeaff;
  color: #391aaa;
  font-weight: 600;
}

.mem-select-option-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mem-select-option-pin {
  flex: none;
  width: 14px;
  height: 14px;
  color: #ff5631;
}

.mem-select-option-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.mem-select-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mem-select-option-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: #6f6690;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mem-select-option-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.mem-select-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f4f1ff;
  color: #5b5088;
  font-size: 10.5px;
  font-weight: 600;
}

.mem-select-tag--api {
  background: #fff1ed;
  color: #c73717;
}

.mem-select-check {
  width: 14px;
  height: 14px;
  color: #634aff;
  opacity: 0;
  flex: none;
}

.mem-select-option[aria-selected="true"] .mem-select-check {
  opacity: 1;
}

.mem-select-status-note {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #695f8a;
  line-height: 1.45;
}

.mem-select-hint {
  padding: 7px 12px;
  border-top: 1px solid #f1edfc;
  background: #faf9fe;
  font-size: 11.5px;
  color: #6f6690;
}

/* Cards de Radio Sim / Não */
.radio-card-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d9d3ee;
  border-radius: 8px;
  background: #faf9fe;
  color: #2f2554;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.radio-card::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #b8addc;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex: none;
}

.radio-card:hover {
  border-color: #8f7dff;
  background: #ffffff;
}

.radio-card:has(input:focus-visible) {
  outline: 2px solid #634aff;
  outline-offset: 2px;
}

.radio-card:has(input:checked) {
  border-color: #391aaa;
  background: #f2eeff;
  color: #391aaa;
  box-shadow: inset 0 0 0 1px rgba(57, 26, 170, 0.12);
}

.radio-card:has(input:checked)::before {
  border-color: #ff5631;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 8px #ff5631;
}

/* Painel condicional de crianças */
.children-conditional-panel {
  padding: 16px;
  border-radius: 10px;
  background: #f6f3ff;
  border: 1px solid #dcd3f7;
  display: grid;
  gap: 14px;
}

.children-conditional-panel[hidden] {
  display: none;
}

/* Checkboxes de serviços adicionais */
.travel-site #roteiro .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.travel-site #roteiro .check-option {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #dfd9f4;
  border-radius: 8px;
  background: #faf9fe;
  font-size: 13px;
  font-weight: 500;
  color: #1e163b;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.travel-site #roteiro .check-option:hover {
  border-color: #9e8fff;
  background: #ffffff;
}

.travel-site #roteiro .check-option:has(input:checked) {
  border-color: #634aff;
  background: #f3efff;
  color: #391aaa;
  font-weight: 600;
}

.travel-site #roteiro .check-option input {
  accent-color: #391aaa;
}

/* Feedback de pré-seleção & Resultado */
.travel-site #roteiro .quote-dest-feedback {
  padding: 12px 16px;
  background: #f4f1ff;
  border: 1px solid #d5cbf6;
  border-left: 3px solid #ff5631;
  border-radius: 8px;
  font-size: 13px;
  color: #2b1f54;
}

.travel-site #roteiro .quote-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.travel-site #roteiro .quote-result {
  padding: 18px 20px;
  border: 1px solid #d5cbf6;
  border-left: 4px solid #634aff;
  background: linear-gradient(135deg, #f8f6ff 0%, #ffffff 65%, #fff6f2 100%);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  color: #2b1f54;
}

.travel-site #roteiro .quote-result[hidden] {
  display: none;
}

.travel-site #roteiro .quote-result strong {
  color: #391aaa;
  font-size: 15px;
  font-weight: 700;
}

.travel-site #roteiro .quote-result p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #463b72;
}

.travel-site #roteiro .quote-result .whatsapp-action {
  background: #391aaa;
  border-color: #391aaa;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
}

.travel-site #roteiro .quote-result .whatsapp-action:hover {
  background: #ff5631;
  border-color: #ff5631;
}

@media (max-width: 900px) {
  .travel-site #roteiro .quote-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .travel-site #roteiro .field-row,
  .travel-site #roteiro .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .travel-site #roteiro .field input:not(.mem-select-search-input):not([type="checkbox"]):not([type="radio"]),
  .travel-site #roteiro .field textarea,
  .travel-site #roteiro .field .mem-select-search-input,
  .mem-select-trigger {
    font-size: 16px;
  }

  .mem-select-option {
    min-height: 44px;
    padding: 10px 12px;
  }
}
