/* Royal Fest - estilos */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  background-color: #0f1410;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
}

/* Fundo fixo numa camada própria: "background-attachment: fixed" não funciona bem no celular */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0f1410 url('../img/fundo.webp') no-repeat center center;
  background-size: cover;
}

@media (max-width: 800px) {
  body::before {
    background-image: url('../img/fundo-mobile.webp');
  }
}

a {
  color: #ccffff;
}

/* Cartão principal */
.container {
  width: 100%;
  max-width: 650px;
  background: rgba(15, 23, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 30px 24px;
  margin: 20px 0;
}

/* Cabeçalho e logos */
.header-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-logos img {
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-section {
  text-align: center;
  margin-bottom: 30px;
}

.main-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

h1 {
  font-size: 1.8rem;
  color: #f3ce72;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  font-weight: 300;
}

/* Informações do evento */
.event-info {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #f3ce72;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 30px;
  text-align: left;
}

.event-info p {
  margin: 6px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-info strong {
  color: #f3ce72;
  min-width: 70px;
}

/* Formulário */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label,
.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #f3ce72;
}

input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #f3ce72;
}

/* Campo-armadilha anti-robô (invisível para pessoas) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Botões de opção */
.option-buttons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.option-btn {
  flex: 1;
  padding: 12px 10px;
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
}

.option-btn.active {
  background: #f3ce72;
  color: #0d140e;
  border-color: #f3ce72;
}

.option-btn:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid #ccffff;
  outline-offset: 2px;
}

/* Campos de quem leva cerveja */
#beer-fields {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed rgba(243, 206, 114, 0.4);
  margin-top: 15px;
  margin-bottom: 20px;
}

#beer-fields[hidden] {
  display: none;
}

.commitment-msg {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff9999;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
}

.privacy-note {
  font-size: 0.8rem;
  color: #b8b8b8;
  margin-bottom: 10px;
  text-align: left;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Copo do evento */
.glass-section {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.glass-section h2 {
  font-size: 1.3rem;
  color: #f3ce72;
  margin-bottom: 6px;
}

.glass-subtitle {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.glass-img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 10px 0;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.price-tag {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
  margin: 10px 0 15px 0;
}

.mp-container {
  margin-top: 15px;
  min-height: 50px;
}

/* Celular */
@media (max-width: 480px) {
  .option-buttons {
    flex-direction: column;
  }

  .header-logos img {
    max-height: 40px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
