/* =====================================================
   RESET / BASE
===================================================== */
* {
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

/* =====================================================
   BACKGROUND COM FOTO + OVERLAY
===================================================== */
body {
  margin: 0;
  min-height: 100vh;

  background-image: url("background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #000000;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* =====================================================
   CONTAINER PRINCIPAL (GLASS REAL)
===================================================== */
.container {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 38px 30px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Borda interna */
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  pointer-events: none;
}

/* Linha premium superior */
.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #dc2626,
    #2563eb,
    transparent
  );
  border-radius: 2px;
}

/* =====================================================
   LOGO
===================================================== */
.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-wrapper img {
  width: 120px;
  padding: 18px;
  border-radius: 22px;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(14px);

  box-shadow:
    0 28px 55px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.5);

  filter: drop-shadow(0 0 22px rgba(220,38,38,0.55));
}

/* =====================================================
   TÍTULOS
===================================================== */
h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #000000;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* =====================================================
   FORMULÁRIO
===================================================== */
label {
  font-weight: 600;
  margin-top: 18px;
  display: block;
}

input,
select {
  width: 100%;
  padding: 13px 15px;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  font-size: 14px;

  background: rgba(255,255,255,0.9);
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
}

/* =====================================================
   BOTÕES
===================================================== */
button {
  width: 100%;
  margin-top: 30px;
  padding: 13px 15px;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 14px;

  font-size: 16px;
  font-weight: 800;
  cursor: pointer;

  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37,99,235,0.45);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================================================
   MENSAGEM
===================================================== */
#mensagem {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

/* =====================================================
   SEÇÃO TURNOS
===================================================== */
.secao-turnos {
  margin-top: 36px;
}

.secao-turnos h2 {
  text-align: center;
  margin-bottom: 18px;
}

.hidden {
  display: none;
}

/* =====================================================
   CHECKBOX MODO MÚLTIPLO (PREMIUM)
===================================================== */
.modo-multiplo-wrapper {
  display: flex;
  justify-content: center;
  margin: 14px 0 22px;
}

.modo-multiplo {
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  color: #f2f5f7;
  cursor: pointer;
  user-select: none;
}

.modo-multiplo input {
  position: absolute;
  opacity: 0;
}

.modo-multiplo .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;

  border-radius: 6px;
  background: rgba(255,255,255,0.8);
  border: 2px solid #cbd5e1;

  transition: all 0.2s ease;
}

.modo-multiplo input:checked ~ .checkmark {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
}

.modo-multiplo .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.modo-multiplo input:checked ~ .checkmark::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =====================================================
   GRADE DE TURNOS
===================================================== */
.grade-turnos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

/* =====================================================
   CARD TURNO (GLASS LEVE)
===================================================== */
.turno-card {
  position: relative;
  padding: 18px 14px;
  border-radius: 22px;

  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);

  border: 2px solid rgba(203,213,225,0.9);
  text-align: center;
  cursor: pointer;

  transition: all 0.3s ease;
}

.turno-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.18);
}

.turno-card.selecionado {
  border-color: #16a34a;
  background: linear-gradient(180deg, #ecfdf5, #dcfce7);
}

.turno-card.indisponivel {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e5e7eb;
}

/* =====================================================
   TEXTOS DO CARD
===================================================== */
.turno-data {
  font-weight: 800;
  font-size: 15px;
}

.turno-numero {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.turno-hora {
  font-size: 14px;
}

.turno-periodo {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
}

/* =====================================================
   STATUS
===================================================== */
.turno-status {
  margin-top: 14px;
  padding: 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.turno-status.ok {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #2f7d5a;
}

.turno-status.bloqueado {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #8b1e1e;
}

/* =====================================================
   BOTÃO INSCRIÇÃO NO CARD
===================================================== */
.btn-inscrever-card {
  margin-top: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;

  background: linear-gradient(135deg, #8b1e1e, #a62a2a);
  color: white;

  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;

  transition: all 0.25s ease;
}

.btn-inscrever-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(139,30,30,0.45);
}

/* =====================================================
   AVISO CANCELAMENTO
===================================================== */
.aviso-cancelamento {
  margin-top: 28px;
  padding: 14px;
  text-align: center;
  font-size: 13px;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);

  border-radius: 14px;
  color: #334155;
}

.aviso-cancelamento a {
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
}

.aviso-cancelamento a:hover {
  text-decoration: underline;
}
