/* ================================================================
   ANNA MIMOSO — Booking (Agendamento online)
   ================================================================ */

/* Base */
.booking-page .page-hero,
.booking-page .booking-steps,
.booking-page .booking-card {
  background: transparent;
}

.booking-page .page-hero {
  padding: 54px 28px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.booking-page .page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.12;
  color: var(--text);
  margin-top: 14px;
}

.booking-page .page-hero p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 720px;
}

.booking-steps {
  display: flex;
  align-items: flex-start;
  padding: 20px 28px 6px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* Linha conectora entre etapas */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 13px);
  right: calc(-50% + 13px);
  height: 1.5px;
  background: var(--border);
  transition: background 0.35s ease;
  z-index: 0;
}

.step[data-done='true']:not(:last-child)::after {
  background: rgba(212,96,126,.45);
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-faint);
  font-weight: 700;
  font-size: 12px;
  border: 1.5px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step[data-active='true'] .step-badge {
  background: linear-gradient(135deg, var(--blush), var(--rose));
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(212,96,126,.32);
}

.step[data-done='true'] .step-badge {
  background: var(--rose);
  border-color: transparent;
  font-size: 0;
}

.step[data-done='true'] .step-badge::before {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translate(1px, 0);
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  transition: color 0.25s;
}

.step[data-active='true'] .step-label {
  color: var(--rose);
  font-weight: 700;
  font-size: 11px;
}

.step[data-done='true'] .step-label {
  color: var(--text-muted);
}

.booking-card {
  max-width: 1100px;
  margin: 22px auto 90px;
  padding: 0 28px;
}

.booking-form {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.booking-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 700;
}

.booking-greeting {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--rose, #c97b84);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--blush, #f9f0f2);
  border-left: 3px solid var(--rose, #c97b84);
  border-radius: 6px;
}

/* ── Recepcionista virtual ─────────────────────────────────────── */
.recep-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(135deg,rgba(253,246,248,.97),rgba(249,240,242,.78));
  border: 1px solid rgba(212,96,126,.16);
  border-radius: 14px;
  margin-bottom: 26px;
}

.recep-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--blush,#e4a0b2),var(--rose,#d4607e));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212,96,126,.28);
}

.recep-text { flex: 1; }

.recep-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.35;
}

.recep-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.recep-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 14px;
  animation: feedbackIn .25s ease;
}
.recep-feedback--success {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  color: #15803d;
}
.recep-feedback--info {
  background: rgba(212,96,126,.07);
  border: 1px solid rgba(212,96,126,.2);
  color: var(--rose,#c97b84);
}
.recep-feedback svg { flex-shrink: 0; }

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

/* ── Profissionais grid ────────────────────────────────────────── */
.profissionais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 12px;
  margin-top: 4px;
}

.prof-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
  background: var(--white);
  user-select: none;
}
.prof-card:hover {
  border-color: rgba(212,96,126,.38);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.prof-card.selected {
  border-color: var(--rose,#d4607e);
  background: rgba(253,246,248,.65);
  box-shadow: 0 0 0 3px rgba(212,96,126,.14);
}
.prof-card.sem-pref { border-style: dashed; }

.prof-cor {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid rgba(0,0,0,.06);
}
.prof-nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.prof-tag {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── Labels opcionais ──────────────────────────────────────────── */
.campo-opcional {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ── Confirmação final ─────────────────────────────────────────── */
.recep-success {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid rgba(34,197,94,.22);
  border-radius: 14px;
  background: rgba(240,253,244,.85);
  margin-top: 20px;
  animation: feedbackIn .35s ease;
}
.recep-success .recep-main  { color: #15803d; font-size: 22px; }
.recep-success .recep-sub   { margin-top: 8px; }
.recep-success .recep-note  { margin-top: 6px; font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
  .recep-msg    { padding: 15px 13px; gap: 10px; }
  .recep-main   { font-size: 17px; }
  .recep-avatar { width: 36px; height: 36px; }
  .profissionais-grid { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); }
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 14.5px;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(212,96,126,.45);
  box-shadow: 0 0 0 4px rgba(212,96,126,.12);
}

input::placeholder { color: rgba(122,83,99,.55); }

.booking-step { padding-top: 6px; }

.form-actions {
  margin-top: 18px;
}

.form-actions-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(212,96,126,.28);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(212,96,126,.34);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--blush-deep);
  color: var(--rose);
}

.booking-summary {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(253,246,248,.72);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-row span {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.summary-row strong {
  color: var(--rose);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
}

/* Serviços */
.services-select {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 12px 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(212,96,126,.30);
}

.service-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.so-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.so-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.so-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--rose);
  font-weight: 700;
  white-space: nowrap;
}

/* Slots hint */
.hint {
  font-size: 13.5px;
}

.payment-box {
  margin-top: 12px;
}

.payment-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(253,246,248,.7);
  color: var(--text-muted);
}

.payment-status a { color: var(--rose); font-weight: 700; }

/* Checkout summary (etapa 4) */
.checkout-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(253,246,248,.72);
  padding: 16px;
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.checkout-summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.checkout-highlight strong {
  font-size: 22px;
  color: var(--rose);
}

.btn-pay-mbway {
  width: 100%;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  padding: 15px 24px;
}

/* ================================================================
   MODAL MBWAY
   ================================================================ */
.mbway-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,10,15,.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mbway-modal {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: mbwayFadeIn .22s ease;
}

@keyframes mbwayFadeIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mbway-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(253,246,248,.72);
}

.mbway-modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.mbway-modal-logo svg { color: var(--rose); }

.mbway-close-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: background .2s, color .2s;
}
.mbway-close-btn:hover { background: var(--bg-alt, #f5eef1); color: var(--rose); }

.mbway-modal-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.mbway-instruction {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.mbway-amount-card {
  background: linear-gradient(135deg, var(--blush, #e4a0b2), var(--rose, #d4607e));
  border-radius: var(--radius-sm, 8px);
  padding: 16px 20px;
  text-align: center;
}

.mbway-amount-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
}

.mbway-amount-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mbway-dest-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  background: rgba(253,246,248,.6);
}

.mbway-dest-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mbway-dest-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mbway-dest-number span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: .04em;
}

.mbway-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.mbway-copy-btn:hover { background: var(--blush-xlight, #fdf3f6); color: var(--rose); border-color: rgba(212,96,126,.3); }

.mbway-steps-list {
  display: grid;
  gap: 8px;
}

.mbway-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mbway-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blush, #e4a0b2), var(--rose, #d4607e));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mbway-modal-footer--actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
}

/* Ocupa as duas colunas e orienta o cliente a enviar o comprovativo primeiro */
.mbway-whatsapp-hint {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  padding: 8px 10px;
  background: rgba(253,246,248,.85);
  border: 1px solid rgba(212,96,126,.18);
  border-radius: var(--radius-sm, 8px);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.btn-mbway-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 14px;
  background: linear-gradient(135deg, var(--blush, #e4a0b2), var(--rose, #d4607e));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212,96,126,.28);
  transition: opacity .2s, transform .2s;
}
.btn-mbway-done:hover { opacity: .9; transform: translateY(-1px); }
.btn-mbway-done:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-mbway-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,211,102,.28);
  transition: opacity .2s, transform .2s;
}
.btn-mbway-whatsapp:hover { opacity: .9; transform: translateY(-1px); }

.mbway-modal-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 20px 14px;
  line-height: 1.5;
}

.payment-status--success {
  border-color: rgba(34,197,94,.3);
  background: rgba(240,253,244,.9);
  color: #15803d;
}

/* Mobile-only adaptations */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  .booking-page { overflow-x: hidden; }

  /* Keep content inside viewport */
  .booking-page .page-hero,
  .booking-steps,
  .booking-card {
    max-width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Stepper — ocupa a largura total no mobile */
  .booking-steps {
    padding: 14px 0 6px !important;
  }

  .step-badge {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step[data-done='true'] .step-badge::before {
    width: 11px;
    height: 6px;
  }

  /* Recalcula a linha conectora para o badge maior (32px → half = 16px) */
  .step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
  }

  /* Mostra labels em todas as etapas */
  .step-label {
    display: block;
    font-size: 10px;
    padding: 0 2px;
    white-space: normal;
  }

  .step[data-active='true'] .step-label {
    font-size: 10.5px;
  }

  .step[data-done='true'] .step-label {
    display: block;
  }

  /* Form container */
  .booking-card { margin-top: 14px; margin-bottom: 70px; }
  .booking-form { padding: 18px 14px; }

  /* Grid to single column */
  .grid-2 { grid-template-columns: 1fr; }
  .services-select { grid-template-columns: 1fr; }

  /* Buttons: stack */
  .form-actions-between { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; }

  /* Remove extra fixed padding/margins that can overflow */
  .booking-summary { padding: 12px; }

  /* Mobile-only continue bars */
  .mobile-secondary-actions { display: flex !important; }
  .mobile-continue-bar { width: 100%; }
  .mobile-continue-bar .btn-primary,
  .mobile-continue-bar .btn-ghost { width: 100%; }
}



