/* ============================================================
   ESTILOS DO NOSSO AGENDADOR CUSTOMIZADO
   ============================================================ */

.booking-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(181, 115, 58, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

.booking-step {
  padding: 3rem;
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.booking-step.active {
  display: block;
}

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

/* ============ FORMULÁRIO (GATE) ============ */
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.booking-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(181, 115, 58, 0.2);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 115, 58, 0.1);
  background: var(--white);
}

.form-input::placeholder {
  color: rgba(122, 115, 104, 0.5);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #9c602d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 115, 58, 0.25);
}

.btn-primary:disabled {
  background: var(--ink-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============ HONEYPOT ============ */
.rob-pot {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
}

/* ============ LOADER ============ */
.loader-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
  display: none; /* controlled by js */
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(181, 115, 58, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.loader-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ CALENDÁRIO & TIME PICKER ============ */
.picker-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .picker-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-month {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: none;
  border: 1px solid rgba(181, 115, 58, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--accent-pale);
  border-color: var(--accent);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  text-align: center;
}

.cal-day-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cal-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.cal-date.empty {
  cursor: default;
}

.cal-date:not(.empty):not(.disabled):not(.selected):hover {
  background: var(--cream);
  border-color: rgba(181, 115, 58, 0.2);
}

.cal-date.disabled {
  color: #ccc;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-date.selected {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(181, 115, 58, 0.3);
}

.slots-container {
  border-left: 1px solid rgba(181, 115, 58, 0.1);
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .slots-container {
    border-left: none;
    border-top: 1px solid rgba(181, 115, 58, 0.1);
    padding-left: 0;
    padding-top: 2rem;
  }
}

.slots-date-label {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  overflow-y: auto;
  max-height: 300px;
  padding-right: 0.5rem;
}

.slot-btn {
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid rgba(181, 115, 58, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.slot-btn:hover {
  background: var(--accent-pale);
  border-color: var(--accent);
}

.slot-btn.selected {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.confirm-booking-btn {
  margin-top: auto; /* push to bottom */
  padding-top: 1.5rem;
}

/* ============ ALERTA DE JÁ AGENDADO ============ */
.already-booked {
  text-align: center;
  padding: 2rem;
}

.already-booked svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  margin-bottom: 1rem;
}

/* ============ OVERLAY CONFIRMAÇÃO ============ */
.success-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.success-content {
  max-width: 500px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.success-overlay.show .success-content {
  transform: translateY(0);
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.checkmark-circle svg {
  width: 40px;
  height: 40px;
  stroke: var(--white);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.success-desc {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-desc strong {
  color: var(--accent);
  font-weight: 500;
}

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.floating-whatsapp svg {
  width: 35px;
  height: 35px;
  fill: #fff;
}

.floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
  }
}
