/* ===================================================================
   CLUBE TREKKING — MODAL DE RESERVA
   "Reserve Já" — estética escura alinhada ao site
   =================================================================== */

/* Overlay */
.reserva-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

/* Caixa principal */
.reserva-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #111;
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 107, 0, 0.1);
  animation: reserva-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: auto;
}

@keyframes reserva-enter {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0);    }
}

/* Header */
.reserva-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #1a0a00 0%, #1a1a1a 100%);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.reserva-header-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.reserva-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
  letter-spacing: 1px;
}

.reserva-subtitle {
  font-size: 0.82rem;
  color: var(--color-orange, #FF6B00);
  margin: 2px 0 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.reserva-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.reserva-close:hover {
  background: rgba(255,100,100,0.2);
  color: #ff6b6b;
}

/* Body */
.reserva-body {
  padding: 24px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

/* Campos */
.reserva-field {
  margin-bottom: 16px;
}
.reserva-field-sm {
  max-width: 160px;
}
.reserva-field-grow {
  flex: 1;
}
.reserva-field-whats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.reserva-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.reserva-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.reserva-req {
  color: var(--color-orange, #FF6B00);
}

.reserva-input,
.reserva-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
  appearance: none;
}

.reserva-input:focus,
.reserva-textarea:focus {
  border-color: var(--color-orange, #FF6B00);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

.reserva-input::placeholder,
.reserva-textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.reserva-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Checkboxes */
.reserva-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  user-select: none;
  padding: 10px 0;
}

.reserva-check-label .reserva-check-icon {
  font-size: 1.1rem;
}

.reserva-check {
  width: 18px;
  height: 18px;
  accent-color: var(--color-orange, #FF6B00);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* Checkbox customizado para o termo */
.reserva-check-custom {
  display: none; /* Usa accent-color do navegador */
}

/* Termo de imagem */
.reserva-termo-box {
  background: #161616;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.reserva-termo-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange, #FF6B00);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.reserva-termo-texto {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,107,0,0.3) transparent;
}

.reserva-termo-check-label {
  align-items: flex-start;
  color: rgba(255,255,255,0.8);
  font-size: 0.83rem;
  line-height: 1.4;
  gap: 10px;
}

/* Erros */
.reserva-errors {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.reserva-erro-item {
  font-size: 0.83rem;
  color: #ff9999;
  margin-bottom: 4px;
}
.reserva-erro-item:last-child { margin-bottom: 0; }

/* Botão enviar */
.reserva-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--color-orange, #FF6B00);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 12px;
}

.reserva-submit-btn:hover:not(:disabled) {
  background: #ff8c00;
  transform: translateY(-1px);
}

.reserva-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.reserva-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reserva-submit-icon {
  font-size: 1.2rem;
}

/* Privacidade */
.reserva-privacy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Tela de sucesso */
.reserva-sucesso {
  text-align: center;
  padding: 32px 16px;
}

.reserva-sucesso-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.reserva-sucesso-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.reserva-sucesso-msg {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Botão "Reserve Já" para páginas de evento */
.btn-reserve-ja {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-orange, #FF6B00);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-reserve-ja:hover {
  background: #ff8c00;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.btn-reserve-ja:active {
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 540px) {
  .reserva-box {
    border-radius: 12px;
  }
  .reserva-header {
    padding: 16px;
  }
  .reserva-body {
    padding: 16px;
  }
  .reserva-title {
    font-size: 1.25rem;
  }
  .reserva-row {
    flex-direction: column;
    gap: 0;
  }
  .reserva-field-whats {
    padding-top: 0;
  }
}
