/* ============ Quick Massage — experiência dedicada ============ */

.mg-page {
  flex: 1;
  width: 100%;
}

.mg-page main,
main.mg-page {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ============ Hero landing ============ */
.mg-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #007bb3 0%, #0093D1 45%, #00a8e8 100%);
  color: #fff;
  padding: 48px 20px 56px;
  text-align: center;
}

.mg-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.mg-hero-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  font-size: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.mg-hero-tag {
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
}

.mg-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fff;
}

.mg-hero-text {
  margin: 0 auto 28px;
  font-size: 1.0625rem;
  line-height: 1.65;
  opacity: .92;
  max-width: 540px;
}

.mg-steps-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.mg-steps-preview li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
}

.mg-steps-preview li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: var(--brand);
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
}

.mg-hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.mg-hero-shape-a {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.mg-hero-shape-b {
  width: 240px;
  height: 240px;
  bottom: -100px;
  left: -60px;
}

/* ============ Content area ============ */
.mg-content {
  max-width: 820px;
  margin: -28px auto 0;
  padding: 0 20px 48px;
  position: relative;
  z-index: 3;
}

.mg-section-head {
  margin-bottom: 20px;
}

.mg-section-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -.02em;
}

.mg-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

/* ============ Event cards (landing) ============ */
.mg-events {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mg-event-card {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mg-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 147, 209, .35);
  text-decoration: none;
  color: inherit;
}

.mg-event-date {
  flex-shrink: 0;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, #dff4fc 100%);
  border-right: 1px solid rgba(0, 147, 209, .12);
  text-align: center;
}

.mg-event-daynum {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dark);
}

.mg-event-month {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-top: 4px;
}

.mg-event-weekday {
  font-size: .625rem;
  color: var(--muted);
  text-transform: capitalize;
  margin-top: 6px;
  font-weight: 600;
}

.mg-event-body {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mg-event-body h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.3;
}

.mg-event-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mg-event-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

.mg-event-meta i {
  width: 16px;
  color: var(--brand);
  text-align: center;
  flex-shrink: 0;
}

.mg-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.mg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.mg-badge-open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.mg-badge-full {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.mg-event-cta {
  font-size: .875rem;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mg-event-card:hover .mg-event-cta {
  color: var(--brand-dark);
}

/* ============ Trust row ============ */
.mg-trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .mg-trust-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mg-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.mg-trust-item i {
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============ Empty states ============ */
.mg-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mg-empty-inline {
  border-style: solid;
}

.mg-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border-radius: 50%;
  color: var(--brand);
  font-size: 1.5rem;
}

.mg-empty h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--brand-ink);
}

.mg-empty p {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

/* ============ Buttons ============ */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background .18s, transform .18s, box-shadow .18s;
}

.mg-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 147, 209, .35);
}

.mg-btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 147, 209, .4);
}

.mg-btn-secondary {
  background: var(--card);
  color: var(--brand-ink);
  border: 1px solid var(--border);
}

.mg-btn-secondary:hover {
  background: var(--brand-soft);
  text-decoration: none;
  color: var(--brand-ink);
}

.mg-btn-xl {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
}

.mg-empty .mg-btn {
  margin-top: 20px;
}

/* ============ Booking page layout ============ */
.mg-page-book {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.mg-book-top {
  margin-bottom: 24px;
}

.mg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 16px;
  padding: 6px 0;
}

.mg-back:hover {
  color: var(--brand);
  text-decoration: none;
}

.mg-progress {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}

.mg-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.mg-progress-step span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all .2s;
}

.mg-progress-step.active {
  color: var(--brand-ink);
}

.mg-progress-step.active span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.mg-progress-step.done span {
  background: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}

.mg-progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
  min-width: 16px;
}

@media (max-width: 560px) {
  .mg-progress-step {
    font-size: 0;
    gap: 0;
  }

  .mg-progress-line {
    margin: 0 6px;
  }
}

.mg-book-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .mg-book-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}

/* Sidebar summary */
.mg-book-sidebar {
  position: sticky;
  top: 80px;
}

.mg-book-summary {
  background: linear-gradient(160deg, var(--brand-ink) 0%, #0a4a66 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mg-summary-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.mg-book-summary h1 {
  margin: 0 0 18px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.mg-summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mg-summary-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
}

.mg-summary-list dt {
  grid-column: 1;
  font-size: .75rem;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mg-summary-list dd {
  grid-column: 2;
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
}

.mg-summary-tip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .8125rem;
  opacity: .9;
}

.mg-summary-tip strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.mg-summary-tip p {
  margin: 0;
  line-height: 1.5;
}

/* Form blocks */
.mg-book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mg-form-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.mg-form-block-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.mg-form-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9375rem;
}

.mg-form-block-head h2 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.mg-form-block-head p {
  margin: 0;
  font-size: .8125rem;
  color: var(--muted);
}

/* Slot picker */
.mg-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.mg-slot {
  cursor: pointer;
  margin: 0;
}

.mg-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mg-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: all .18s ease;
}

.mg-slot-inner i {
  font-size: .875rem;
  color: var(--muted);
}

.mg-slot-time {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--brand-ink);
  letter-spacing: -.02em;
}

.mg-slot:hover .mg-slot-inner {
  border-color: rgba(0, 147, 209, .5);
  background: var(--brand-soft);
}

.mg-slot.selected .mg-slot-inner {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(0, 147, 209, .25);
}

.mg-slot.selected .mg-slot-inner i {
  color: var(--brand);
}

.mg-slot-busy {
  cursor: not-allowed;
}

.mg-slot-busy .mg-slot-inner {
  opacity: .45;
  background: var(--bg);
}

.mg-slot-busy small {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

/* Fields */
.mg-fields {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  .mg-fields {
    grid-template-columns: 1fr 1fr;
  }

  .mg-field-full {
    grid-column: 1 / -1;
  }
}

.mg-field label {
  display: block;
  font-weight: 700;
  font-size: .8125rem;
  margin-bottom: 6px;
  color: var(--ink-secondary);
}

.mg-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: var(--font);
  background: var(--bg-elevated);
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}

.mg-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.mg-selected-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #047857;
  font-size: .875rem;
  margin-bottom: 16px;
}

.mg-selected-preview i {
  font-size: 1.125rem;
}

.mg-form-block-submit {
  text-align: center;
}

.mg-form-block-submit .mg-form-block-head {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.mg-form-block-submit .mg-form-step-num {
  margin-bottom: 4px;
}

/* ============ Alerts ============ */
.mg-alerts {
  margin-bottom: 16px;
}

.mg-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mg-alert-error,
.mg-alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.mg-alert-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ============ Success page ============ */
.mg-page-success {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  text-align: center;
}

.mg-success-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
}

.mg-success-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .35);
}

.mg-page-success h1 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.mg-success-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}

.mg-ticket {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.mg-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.mg-ticket-time {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.mg-ticket-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-ticket-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .875rem;
}

.mg-ticket-details dt {
  color: var(--muted);
  font-weight: 600;
}

.mg-ticket-details dd {
  margin: 0;
  font-weight: 700;
  color: var(--brand-ink);
  text-align: right;
}

.mg-tip-box {
  text-align: left;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: .875rem;
}

.mg-tip-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-ink);
  margin-bottom: 6px;
}

.mg-tip-box p {
  margin: 0;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.mg-success-note {
  font-size: .8125rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.mg-page-success .mg-btn {
  width: 100%;
}

/* ============ Dark mode tweaks ============ */
@media (prefers-color-scheme: dark) {
  .mg-badge-open {
    background: #064e3b;
    color: #6ee7b7;
    border-color: #047857;
  }

  .mg-selected-preview {
    background: #064e3b;
    border-color: #047857;
    color: #6ee7b7;
  }

  .mg-event-date {
    background: linear-gradient(180deg, #0c2a3a 0%, #0a2230 100%);
  }
}
