/* ==========================================================================
   MODAL DE INSCRIÇÃO PREMIUM — ARRAIAL CAPIM DOURADO 2027
   ========================================================================== */

.modal-inscricao-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 10, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-inscricao-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-inscricao-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 94vh;
  background: linear-gradient(165deg, #1E0535 0%, #120221 100%);
  border: 1.5px solid rgba(255, 94, 0, 0.45);
  border-radius: 22px;
  box-shadow: 
    0 25px 70px -10px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(255, 94, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-inscricao-overlay.active .modal-inscricao-card {
  transform: scale(1) translateY(0);
}

/* Custom Scrollbar */
.modal-inscricao-card::-webkit-scrollbar {
  width: 6px;
}
.modal-inscricao-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.modal-inscricao-card::-webkit-scrollbar-thumb {
  background: rgba(255, 94, 0, 0.4);
  border-radius: 4px;
}
.modal-inscricao-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 94, 0, 0.7);
}

/* Botão Fechar */
.modal-inscricao-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 23, 42, 0.75);
  border: 1px solid rgba(255, 94, 0, 0.4);
  color: #f1f5f9;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.modal-inscricao-close:hover {
  background: #FF5E00;
  color: #120221;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 16px rgba(255, 94, 0, 0.6);
}

/* Banner / Imagem CapimModal */
.modal-inscricao-banner-wrapper {
  position: relative;
  width: 100%;
  background: #060c18;
  line-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 94, 0, 0.25);
}

.modal-inscricao-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modal-inscricao-card:hover .modal-inscricao-banner-img {
  transform: scale(1.01);
}

.modal-inscricao-banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, #1E0535 0%, transparent 100%);
  pointer-events: none;
}

/* Rodapé / Corpo do Modal */
.modal-inscricao-footer {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
}

.modal-inscricao-header-text {
  text-align: center;
  margin-bottom: 20px;
}

.modal-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 94, 0, 0.15);
  border: 1px solid rgba(255, 94, 0, 0.4);
  color: #FF8533;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.modal-inscricao-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.modal-inscricao-subtitle {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

/* Formulário de Captura */
.modal-inscricao-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-grid-duplo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .modal-grid-duplo {
    grid-template-columns: 1fr;
  }
  .modal-inscricao-footer {
    padding: 18px 18px 22px;
  }
  .modal-inscricao-title {
    font-size: 1.2rem;
  }
}

.modal-campo-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-campo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal-campo-label i {
  color: #FF5E00;
  font-size: 0.95rem;
}

.modal-campo-label .obrigatorio {
  color: #ef4444;
}

/* Input Boxes */
.modal-input-box {
  position: relative;
  width: 100%;
}

.modal-input-box input,
.modal-input-box select {
  width: 100%;
  height: 46px;
  background: rgba(15, 28, 50, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.modal-input-box input::placeholder {
  color: #64748b;
  font-size: 0.88rem;
}

.modal-input-box input:focus,
.modal-input-box select:focus {
  border-color: #FF5E00;
  background: rgba(15, 28, 50, 1);
  box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.22);
}

/* Select Styling */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

.select-wrapper select option,
.select-wrapper select optgroup {
  background: #1E0535;
  color: #f8fafc;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #FF5E00;
  pointer-events: none;
  font-size: 1.15rem;
}

/* Alerta de Validação */
.modal-form-alert {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

/* Botão Enviar Submit */
.modal-btn-submit {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  background: linear-gradient(135deg, #FF5E00 0%, #FF8533 50%, #B89220 100%);
  border: none;
  border-radius: 12px;
  color: #120221;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 
    0 8px 24px -4px rgba(255, 94, 0, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-btn-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 
    0 12px 28px -4px rgba(255, 94, 0, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-btn-submit:active {
  transform: translateY(0);
}

.modal-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-btn-submit i {
  font-size: 1.25rem;
}

/* Mensagem de Privacidade */
.modal-form-privacy {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.modal-form-privacy i {
  color: #10b981;
}

/* View de Sucesso */
.modal-sucesso-view {
  text-align: center;
  padding: 18px 10px 10px;
  animation: modalFadeIn 0.35s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sucesso-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.modal-sucesso-view h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.modal-sucesso-view p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 22px 0;
}

.sucesso-acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sucesso-whats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: #25D366;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-sucesso-whats:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

.btn-sucesso-fechar {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  height: 40px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sucesso-fechar:hover {
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.05);
}
