/*
 * Vacation search form.
 * Mirrors the cruise search form in wp-mei-signature-plugin
 * (assets/css/cruise-search-form.css) as it renders on the site, including
 * the Elementor kit button colors that apply to it there.
 * Selectors are scoped under .mei-vf-container so theme styles for
 * select/label/button can't tint the controls.
 */

.mei-vf-container {
  /* Fixed width capped by max-width, not width: 100%. Elementor centers the
     shortcode widget in a flex column, so the widget shrinks to its content
     and a percentage width has nothing to resolve against. */
  box-sizing: border-box;
  width: 750px;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
}

.mei-vf-container.mei-vf--transparent {
  background: transparent;
}

.mei-vf-container.mei-vf--transparent .mei-vf__field label {
  color: #000;
}

.mei-vf-container .mei-vf {
  width: 100%;
}

.mei-vf-container .mei-vf__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mei-vf-container .mei-vf__field {
  display: flex;
  flex-direction: column;
}

.mei-vf-container .mei-vf__field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  color: #333;
  text-align: left;
}

.mei-vf-container select.mei-vf__select {
  display: block;
  width: 100%;
  margin: 0;
  padding: .75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.mei-vf-container select.mei-vf__select:hover {
  border-color: #999;
}

.mei-vf-container select.mei-vf__select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, .1);
}

.mei-vf-container .mei-vf__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.mei-vf-container button.mei-vf__button {
  width: 50%;
  min-width: fit-content;
  margin: 0;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--e-global-color-1772708, #fff);
  background-color: var(--e-global-color-accent, #bb2026);
  border: none;
  border-radius: 4px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease, box-shadow .2s ease;
}

.mei-vf-container button.mei-vf__button:hover,
.mei-vf-container button.mei-vf__button:focus {
  color: var(--e-global-color-1772708, #fff);
  background-color: var(--e-global-color-6615808, #333232);
}

.mei-vf-container button.mei-vf__button:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, .3);
}

.mei-vf-container button.mei-vf__button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 102, 204, .3);
}

.mei-vf-container button.mei-vf__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, .3);
}

.mei-vf-container select.mei-vf__select:focus-visible,
.mei-vf-container button.mei-vf__button:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .mei-vf-container { padding: 1.5rem; }
  .mei-vf-container .mei-vf__row { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
  .mei-vf-container button.mei-vf__button { font-size: 1rem; padding: .875rem 1.5rem; }
}

@media (max-width: 480px) {
  .mei-vf-container { padding: 1rem; border-radius: 4px; }
  .mei-vf-container .mei-vf__field label { font-size: .8125rem; }
  .mei-vf-container select.mei-vf__select { font-size: .9375rem; padding: .625rem .875rem; }
  .mei-vf-container button.mei-vf__button { font-size: .9375rem; padding: .75rem 1.25rem; }
}

@media (prefers-contrast: high) {
  .mei-vf-container select.mei-vf__select { border-width: 2px; }
  .mei-vf-container button.mei-vf__button { border: 2px solid #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .mei-vf-container select.mei-vf__select,
  .mei-vf-container button.mei-vf__button { transition: none; }
}
