/**
 * ROMES Booking wizard styles. Reads the theme's shared tokens (--gold,
 * --midnight, --champagne, --font-display, .divider-gold/.btn-gold/
 * .eyebrow/.text-gold-gradient) when the Romes Wellness theme is active,
 * but declares its own fallbacks so the plugin still renders sensibly if
 * ever used with a different theme.
 */
:root {
	--rb-gold: var(--gold, #d6a85f);
	--rb-midnight: var(--midnight, #081226);
	--rb-midnight-deep: var(--midnight-deep, #0a0f1f);
	--rb-champagne: var(--champagne, #f5efe6);
}

.rb-section { position: relative; overflow: hidden; background: var(--rb-midnight); padding: 6rem 0 8rem; }
.rb-glow { position: absolute; inset: 0; opacity: 0.4; background: radial-gradient(circle at 50% 0%, rgba(214,168,95,0.25), transparent 60%); pointer-events: none; }
.rb-wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .rb-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .rb-wrap { padding: 0 3rem; } }

.rb-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.rb-title { margin-top: 1.5rem; font-family: var(--font-display, serif); font-size: 2.25rem; line-height: 1.15; color: var(--rb-champagne); }
@media (min-width: 768px) { .rb-title { font-size: 3.5rem; } }
.rb-title em { font-style: normal; font-weight: 300; }
.rb-subtext { margin: 1.5rem auto 0; max-width: 34rem; font-size: 0.9375rem; line-height: 1.7; color: rgba(245,239,230,.6); }

/* Progress */
.rb-progress { margin: 3rem auto 0; max-width: 56rem; }
.rb-progress__desktop { display: none; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .rb-progress__desktop { display: flex; } }
.rb-progress__item { position: relative; display: flex; flex-direction: column; align-items: center; }
.rb-progress__circle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 1px solid rgba(245,239,230,.2); color: rgba(245,239,230,.4); font-size: 0.75rem; transition: all 0.4s; }
.rb-progress__circle.is-active { border-color: var(--rb-gold); color: var(--rb-gold); box-shadow: 0 0 20px -6px rgba(214,168,95,.5); }
.rb-progress__circle.is-done { border-color: var(--rb-gold); background: var(--rb-gold); color: var(--rb-midnight); }
.rb-progress__label { position: absolute; top: 3rem; white-space: nowrap; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(245,239,230,.4); }
.rb-progress__label.is-active { color: var(--rb-gold); }
.rb-progress__line { position: relative; flex: 1; height: 1px; margin: 0 0.5rem; background: rgba(245,239,230,.15); }
.rb-progress__line span { position: absolute; inset: 0; transform-origin: left; background: var(--rb-gold); transition: transform 0.5s; display: block; }
.rb-progress__mobile { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; }
@media (min-width: 768px) { .rb-progress__mobile { display: none; } }
.rb-progress__step-of { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--rb-gold); }
.rb-progress__step-label { font-family: var(--font-display, serif); font-size: 1.125rem; color: var(--rb-champagne); }
.rb-progress__bar { margin-top: 0.75rem; height: 2px; width: 100%; overflow: hidden; background: rgba(245,239,230,.1); }
@media (min-width: 768px) { .rb-progress__bar { display: none; } }
.rb-progress__bar span { display: block; height: 100%; background: var(--rb-gold); transition: width 0.5s; }

/* Card shell */
.rb-card { margin: 3.5rem auto 0; max-width: 1000px; border-radius: 1.5rem; border: 1px solid rgba(214,168,95,.25); background: rgba(245,239,230,.03); backdrop-filter: blur(20px); padding: 1.5rem; }
@media (min-width: 768px) { .rb-card { padding: 2.5rem; } }
.rb-step-title { font-family: var(--font-display, serif); font-size: 1.5rem; color: var(--rb-champagne); margin: 0; }
@media (min-width: 768px) { .rb-step-title { font-size: 1.875rem; } }
.rb-step-subtitle { margin: 0.5rem 0 0; font-size: 0.875rem; color: rgba(245,239,230,.6); }
.rb-nav__row { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(245,239,230,.1); display: flex; align-items: center; justify-content: space-between; }
.rb-back { background: none; border: none; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.28em; color: rgba(245,239,230,.6); cursor: pointer; }
.rb-back:hover { color: var(--rb-gold); }
.rb-back:disabled { opacity: 0.3; cursor: default; }
.rb-footnote { margin-top: 2rem; text-align: center; font-size: 0.6875rem; color: rgba(245,239,230,.5); }

/* Category chips */
.rb-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rb-chip { border-radius: 9999px; border: 1px solid rgba(245,239,230,.15); background: transparent; padding: 0.375rem 1rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: rgba(245,239,230,.6); cursor: pointer; transition: all 0.3s; }
.rb-chip:hover { border-color: rgba(214,168,95,.5); color: var(--rb-gold); }
.rb-chip.is-active { border-color: var(--rb-gold); background: rgba(214,168,95,.15); color: var(--rb-gold); }

/* Service cards — the gold-shine treatment from the original booking UI */
.rb-service-grid { margin-top: 2rem; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rb-service-grid { grid-template-columns: repeat(2, 1fr); } }
@keyframes rb-gold-shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.rb-service-card {
	position: relative; overflow: hidden; text-align: left; border-radius: 1rem; padding: 1.25rem; cursor: pointer;
	background: linear-gradient(120deg, #b8873c 0%, #e8c47a 18%, #f7e29b 34%, #d6a85f 52%, #f5d78a 70%, #b8873c 100%);
	background-size: 200% 200%; animation: rb-gold-shine 8s linear infinite;
	border: 1px solid #e0c58f; color: #1b1b1b;
	box-shadow: 0 18px 45px -18px rgba(184,135,60,.55), inset 0 1px 0 rgba(255,255,255,.35);
	transition: transform 0.2s;
}
.rb-service-card:hover { transform: translateY(-2px); }
.rb-service-card.is-selected { outline: 2px solid #1e3a5f; outline-offset: 2px; box-shadow: 0 22px 55px -18px rgba(30,58,95,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.rb-service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.rb-service-card__cat { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: #800020; }
.rb-service-card__name { margin-top: 0.25rem; font-family: var(--font-display, serif); font-size: 1.125rem; color: #1e3a5f; }
@media (min-width: 768px) { .rb-service-card__name { font-size: 1.25rem; } }
.rb-service-card__meta { margin-top: 0.5rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(27,27,27,.7); }
.rb-service-card__desc { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.6; color: rgba(27,27,27,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-service-card__price-wrap { text-align: right; flex-shrink: 0; }
.rb-service-card__price { font-family: var(--font-display, serif); font-size: 1.25rem; color: #800020; }
.rb-service-card__check { margin-top: 0.5rem; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #1e3a5f; color: #fff; }
.rb-empty { grid-column: 1 / -1; border: 1px solid rgba(245,239,230,.15); border-radius: 1rem; padding: 2rem; text-align: center; font-size: 0.875rem; color: rgba(245,239,230,.6); }

/* Schedule */
.rb-schedule-grid { margin-top: 1.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .rb-schedule-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); } }
.rb-calendar { border-radius: 1rem; border: 1px solid rgba(214,168,95,.2); background: rgba(10,15,31,.4); padding: 1.25rem; }
.rb-calendar__head { display: flex; align-items: center; justify-content: space-between; }
.rb-calendar__nav { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid rgba(245,239,230,.15); background: transparent; color: rgba(245,239,230,.7); cursor: pointer; }
.rb-calendar__nav:hover { border-color: var(--rb-gold); color: var(--rb-gold); }
.rb-calendar__month { font-family: var(--font-display, serif); font-size: 1.125rem; color: var(--rb-champagne); }
.rb-calendar__weekdays { margin-top: 1rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(245,239,230,.5); }
.rb-calendar__grid { margin-top: 0.5rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.rb-day { aspect-ratio: 1 / 1; border-radius: 0.5rem; border: none; background: transparent; font-size: 0.875rem; color: rgba(245,239,230,.85); cursor: pointer; transition: all 0.2s; }
.rb-day:hover:not(:disabled) { background: rgba(214,168,95,.1); color: var(--rb-gold); }
.rb-day.is-selected { background: var(--rb-gold); color: var(--rb-midnight); box-shadow: 0 0 20px -6px rgba(214,168,95,.5); }
.rb-day.is-disabled { color: rgba(245,239,230,.15); cursor: default; }
.rb-day.is-today { box-shadow: inset 0 0 0 1px rgba(214,168,95,.6); }
.rb-calendar__legend { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(245,239,230,.5); }
.rb-calendar__legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.rb-dot { display: inline-block; width: 0.375rem; height: 0.375rem; border-radius: 9999px; }
.rb-dot--gold { background: var(--rb-gold); }
.rb-dot--muted { background: rgba(245,239,230,.3); }

.rb-slots-empty, .rb-slots-loading { display: grid; min-height: 220px; place-items: center; border-radius: 1rem; border: 1px solid rgba(245,239,230,.15); font-size: 0.875rem; color: rgba(245,239,230,.6); text-align: center; padding: 1.5rem; }
.rb-slot-group { margin-bottom: 1.25rem; }
.rb-slot-group__label { margin-bottom: 0.5rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--rb-gold); }
.rb-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .rb-slot-grid { grid-template-columns: repeat(4, 1fr); } }
.rb-slot { border-radius: 0.5rem; border: 1px solid rgba(245,239,230,.15); background: transparent; padding: 0.625rem 0; font-size: 0.875rem; color: rgba(245,239,230,.8); cursor: pointer; transition: all 0.2s; }
.rb-slot:hover { border-color: rgba(214,168,95,.5); color: var(--rb-gold); }
.rb-slot.is-selected { border-color: var(--rb-gold); background: rgba(214,168,95,.15); color: var(--rb-gold); box-shadow: 0 0 20px -8px rgba(214,168,95,.5); }
.rb-assigned { margin-top: 1rem; border-radius: 1rem; padding: 1rem; background: linear-gradient(120deg, #b8873c 0%, #e8c47a 18%, #f7e29b 34%, #d6a85f 52%, #f5d78a 70%, #b8873c 100%); background-size: 200% 200%; animation: rb-gold-shine 8s linear infinite; }
.rb-assigned__label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: #800020; }
.rb-assigned__name { margin-top: 0.25rem; font-family: var(--font-display, serif); font-size: 1.125rem; color: #1e3a5f; }

/* Details form */
.rb-form-grid { margin-top: 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .rb-form-grid { grid-template-columns: repeat(2, 1fr); } }
.rb-field { display: flex; flex-direction: column; }
.rb-field--full { grid-column: 1 / -1; }
.rb-input { margin-top: 0.75rem; width: 100%; border: none; border-bottom: 1px solid rgba(245,239,230,.2); background: transparent; padding: 0.75rem 0; font-size: 1rem; color: var(--rb-champagne); outline: none; font-family: inherit; }
.rb-input:focus { border-color: var(--rb-gold); }
.rb-input.has-error { border-color: rgba(248,113,113,.7); }
textarea.rb-input { resize: none; }
select.rb-input option { background: var(--rb-midnight); color: var(--rb-champagne); }
.rb-field-error { margin-top: 0.375rem; font-size: 0.6875rem; color: rgba(252,165,165,.9); }
.rb-consent { display: flex; align-items: flex-start; gap: 0.75rem; }
.rb-consent input { margin-top: 0.25rem; width: 1rem; height: 1rem; accent-color: var(--rb-gold); }
.rb-consent span { font-size: 0.875rem; color: rgba(245,239,230,.7); }

/* Review / confirm */
.rb-review-card { margin-top: 1.5rem; border-radius: 1rem; background: linear-gradient(120deg, #b8873c 0%, #e8c47a 18%, #f7e29b 34%, #d6a85f 52%, #f5d78a 70%, #b8873c 100%); background-size: 200% 200%; animation: rb-gold-shine 8s linear infinite; overflow: hidden; }
.rb-review-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; font-size: 0.875rem; border-bottom: 1px solid rgba(27,27,27,.12); }
.rb-review-row:last-child { border-bottom: none; }
.rb-review-row__k { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; color: #800020; flex-shrink: 0; }
.rb-review-row__v { text-align: right; color: #1e3a5f; }
.rb-review-actions { margin-top: 1.5rem; display: flex; flex-direction: column-reverse; gap: 0.75rem; }
@media (min-width: 768px) { .rb-review-actions { flex-direction: row; align-items: center; justify-content: space-between; } }
.rb-review-actions__right { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .rb-review-actions__right { flex-direction: row; } }
.rb-submit-error { margin-top: 1rem; font-size: 0.8125rem; color: rgba(252,165,165,.9); text-align: right; }

.rb-confirm { text-align: center; }
.rb-confirm__icon { margin: 0 auto; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 9999px; border: 1px solid var(--rb-gold); background: rgba(214,168,95,.15); box-shadow: 0 0 24px -6px rgba(214,168,95,.5); font-size: 2.25rem; }
.rb-confirm__card { margin: 2rem auto 0; max-width: 32rem; text-align: left; }
.rb-confirm__ref-label { padding: 1rem 1.25rem 0; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.3em; color: #800020; }
.rb-confirm__ref { padding: 0 1.25rem 0.75rem; font-family: var(--font-display, serif); font-size: 1.5rem; color: #1b1b1b; }
.rb-confirm__actions { margin-top: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .rb-confirm__actions { flex-direction: row; } }
