/* ===================================================
   MODAL PRÉ-INSCRIÇÃO
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #4C000D;
  border-radius: 24px;
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
  padding: 32px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(24px);
  transition: transform .25s ease;
  max-height: 90vh;
  overflow: visible;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  background: none;
  border: none;
  color: #d3111a;
  opacity: .6;
  font-size: 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  line-height: 1;
  padding: 0;
  transition: opacity .15s;
}

.modal-close:hover { opacity: 1; }

.modal-title {
  font-family: 'Cormorant Infant', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  letter-spacing: .2em;
  margin-bottom: 8px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  background: #ffffff;
  border: 1px solid #dedac3;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-icon {
  color: #dedac3;
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.form-field input,
.form-field select {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: #131314;
  background: transparent;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-icon--right {
  margin-left: auto;
}

.form-field input::placeholder {
  color: #131314;
  opacity: .85;
}

.modal-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 4px;
  text-transform: none;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 64px;
}

.modal-legal {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.85);
  text-align: center;
  line-height: 1.7;
  letter-spacing: .02em;
}

.modal-legal a {
  color: #eece66;
  text-decoration: underline;
}

/* ===== CUSTOM SELECT DROPDOWN ===== */
.custom-select {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.custom-select__text {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: #131314;
  opacity: .85;
}

.custom-select__text.selected {
  opacity: 1;
}

.custom-select__arrow {
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__options {
  display: none;
  position: absolute;
  top: calc(100% + 24px);
  left: -50px;
  right: -16px;
  background: #fff;
  border: 1px solid #dedac3;
  border-radius: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 220px;
  overflow-y: auto;
}

.custom-select.open .custom-select__options {
  display: block;
}

.custom-select__option {
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #131314;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f0ece0;
  list-style: none;
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: #f8f4ee;
}
