/* ===============================================
   Soul Train × Locking × Contemporary Theme
   PYT Family Dance — SimplyBook.me Custom CSS
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* CSS variables — edit these to adjust the palette */
:root {
    --st-deep:   #111111;
    --st-grey:   #242424;
    --st-warm:   #1f0900;
    --st-orange: #e05c00;
    --st-gold:   #f0a500;
    --st-amber:  #c96a00;
    --st-text:   #f0ebe4;
    color-scheme: dark;
}

/* Base page background */
html, body {
    background: var(--st-deep) !important;
    color: var(--st-text) !important;
    color-scheme: dark;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- LAYER 1: Animated gradient wash (stage lighting) ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Warm orange glow — bottom-left (stage left) */
        radial-gradient(ellipse 70% 50% at 8% 92%,
            rgba(220, 90, 0, 0.20) 0%, transparent 55%),
        /* Amber glow — top-right */
        radial-gradient(ellipse 60% 70% at 92% 8%,
            rgba(180, 65, 0, 0.15) 0%, transparent 55%),
        /* Deep orange center wash */
        radial-gradient(ellipse 50% 40% at 55% 55%,
            rgba(200, 80, 0, 0.08) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(155deg,
            var(--st-deep)   0%,
            var(--st-grey)   30%,
            var(--st-warm)   62%,
            var(--st-deep)   100%);
    background-size: 260% 260%, 260% 260%, 200% 200%, 100% 100%;
    animation: stageLight 22s ease-in-out infinite alternate;
}

@keyframes stageLight {
    0%   { background-position: 0% 100%,  100% 0%,   50% 50%, 0% 0%; }
    33%  { background-position: 40% 60%,   60% 40%,  35% 65%, 0% 0%; }
    66%  { background-position: 70% 30%,   30% 70%,  65% 35%, 0% 0%; }
    100% { background-position: 100% 0%,    0% 100%, 50% 50%, 0% 0%; }
}

/* ---- LAYER 2: Diamond grid (locking geometry) ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(45deg,  rgba(220, 90, 0, 0.07) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(220, 90, 0, 0.07) 1px, transparent 1px),
        linear-gradient(45deg,  rgba(180, 65, 0, 0.045) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(180, 65, 0, 0.045) 1px, transparent 1px);
    background-size:
        44px 44px, 44px 44px,
        88px 88px, 88px 88px;
    background-position:
        0 0, 0 0,
        22px 22px, 22px 22px;
    animation: lockDrift 35s linear infinite;
}

@keyframes lockDrift {
    from { transform: translate(0, 0); }
    to   { transform: translate(44px, 44px); }
}

/* ---- LAYER 3: Floating orbs (spotlights) ---- */
/* Targets common SimplyBook wrapper elements — add more selectors if needed */
#wrapper::before,
.sb-widget::before,
#page::before {
    content: '';
    position: fixed;
    width: 350px; height: 350px;
    top: 3%; right: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 140, 0, 0.10) 0%, transparent 70%);
    animation: orbA 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

#wrapper::after,
.sb-widget::after,
#page::after {
    content: '';
    position: fixed;
    width: 280px; height: 280px;
    bottom: 8%; left: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 70, 0, 0.11) 0%, transparent 70%);
    animation: orbB 13s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes orbA {
    0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.7; }
    50%       { transform: translate(-25px, 18px) scale(1.12); opacity: 1; }
}

@keyframes orbB {
    0%, 100% { transform: translate(0, 0) scale(1.1);  opacity: 1; }
    50%       { transform: translate(20px, -20px) scale(1);  opacity: 0.65; }
}

/* ============================================
   BOOKING UI STYLING
   ============================================ */

/* Content panels — dark glass over the animated bg */
#events,
#eventForm,
#start_date-block-container,
#timeline-container {
    position: relative;
    z-index: 1;
    background: rgba(22, 22, 22, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 90, 0, 0.25) !important;
    border-radius: 10px;
}

/* Section headings */
#events h3,
#eventForm #start_date-block-container h3,
#eventForm #timeline-container h3 {
    color: var(--st-text) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(240, 165, 0, 0.22);
    padding-bottom: 6px;
}

/* Duration badge */
#events p.duration,
#events div.duration {
    color: rgba(240, 165, 0, 0.75) !important;
    font-size: 0.875em !important;
    letter-spacing: 0.04em !important;
}

/* Description text */
#events p.description,
#events div.description {
    color: rgba(250, 240, 230, 0.88) !important;
    line-height: 1.65 !important;
}

/* Selected class highlight */
#events .selectedEvent {
    border-left: 3px solid var(--st-gold) !important;
    background: rgba(240, 165, 0, 0.09) !important;
}

/* Primary CTA buttons */
#events input.reserve_time_btn,
#eventForm #save_button {
    background: linear-gradient(135deg, var(--st-amber), var(--st-gold)) !important;
    color: var(--st-deep) !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 18px rgba(240, 165, 0, 0.32) !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
    cursor: pointer !important;
}

#events input.reserve_time_btn:hover,
#eventForm #save_button:hover {
    box-shadow: 0 6px 28px rgba(240, 165, 0, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Secondary button */
#events input.select_another_btn {
    background: transparent !important;
    border: 1px solid rgba(240, 165, 0, 0.45) !important;
    color: var(--st-gold) !important;
    border-radius: 5px !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}

#events input.select_another_btn:hover {
    background: rgba(240, 165, 0, 0.1) !important;
    border-color: var(--st-gold) !important;
}

/* Calendar header */
div.ui-widget-header {
    background: linear-gradient(135deg, var(--st-grey), var(--st-warm)) !important;
    border: 1px solid rgba(220, 90, 0, 0.25) !important;
    color: var(--st-gold) !important;
}

/* Calendar body */
div.ui-widget-content {
    background: rgba(22, 22, 22, 0.95) !important;
    border: 1px solid rgba(220, 90, 0, 0.15) !important;
    color: var(--st-text) !important;
}

/* Timeline slot states */
#timeline-container table.timeline {
    border-radius: 8px;
    overflow: hidden;
}

.timeline td.free_time {
    background: rgba(240, 165, 0, 0.07) !important;
    border-color: rgba(240, 165, 0, 0.1) !important;
    transition: background 0.18s ease !important;
    cursor: pointer !important;
}

.timeline td.free_time:hover {
    background: rgba(240, 165, 0, 0.22) !important;
}

.timeline td.selected_time {
    background: rgba(240, 165, 0, 0.38) !important;
    border-color: rgba(240, 165, 0, 0.65) !important;
}

.timeline td.reserved_time {
    background: rgba(100, 25, 10, 0.45) !important;
}

.timeline td.not_worked_time {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Company name font + z-index fix to sit above animated background layers */
div.company-name.company-logo-and-name {
    font-family: 'Bebas Neue', sans-serif !important;
    position: relative;
    z-index: 1;
}

div.company-name.company-logo-and-name img {
    position: relative;
    z-index: 2;
}

/* ---- Unified header: nav bar + PYT Family banner ---- */

/* Nav bar — shares one continuous background with the banner via background-attachment: fixed */
header#header {
    background: linear-gradient(160deg, #111111 0%, #1f0900 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    z-index: 2;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Nav links */
header#header a,
header#header nav a,
header#header .nav a,
header#header li a {
    color: var(--st-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-size: 0.85em !important;
    transition: color 0.2s ease !important;
}

header#header a:hover,
header#header nav a:hover,
header#header .nav a:hover,
header#header li a:hover {
    color: var(--st-gold) !important;
}

/* Active nav link */
header#header .active > a,
header#header li.active a {
    color: var(--st-orange) !important;
    border-bottom: 2px solid var(--st-orange) !important;
}

/* Weld banner to nav bar — no gap, single border at the bottom of the whole header */
section#main-buttons.translate-enabled {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(220, 90, 0, 0.30) !important;
}

/* Hide theme wave divider under header banner */
#main-buttons.translate-enabled::after {
    display: none !important;
}

/* Loading spinner */
div#loading {
    background: rgba(22, 22, 22, 0.95) !important;
    color: var(--st-gold) !important;
    border-radius: 8px;
}

/* ============================================
   SIMPLYBOOK WHITE/LIGHT BACKGROUND OVERRIDES
   ============================================ */

/* Outer containers — transparent so animated background shows through */
main#main,
section#main-content,
#sb_content,
#sb-timeline,
#steps,
#steps-content {
    background: transparent !important;
    background-color: transparent !important;
}

/* Main buttons banner — same fixed background as the nav, completing the unified header */
section#main-buttons.translate-enabled {
    background: linear-gradient(160deg, #111111 0%, #1f0900 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    z-index: 1;
}

/* Hide booking step breadcrumb nav (Time → Service → Provider → Client) */
#steps-nav {
    display: none !important;
}

#menu-active-bg {
    background: transparent !important;
}

.step_info_item a {
    color: var(--st-text) !important;
}

.step_info_item.active a {
    color: var(--st-text) !important;
    border-color: var(--st-orange) !important;
}

/* Hide company time bar */
#sb_booking_company_time,
#time-settings {
    display: none !important;
}

/* Main booking content panels */
.datetime-step,
.step-content,
#sb_datetime_step_container,
.inline-datepicker-wrapper,
.top-inline-steps,
.grid-weekly-inner,
.grid-weekly-table,
.timeline-wrapper,
.tab-pd,
.section-pd,
.slots-view,
.flexible-weekly-view,
#sb_dateview_container,
#sb_timeview_container {
    background: rgba(22, 22, 22, 0.92) !important;
    color: var(--st-text) !important;
}

/* Grid table header */
.grid-weekly-header-row,
.grid-weekly-header-item {
    background: rgba(36, 36, 36, 0.95) !important;
    color: var(--st-text) !important;
    border-color: rgba(220, 90, 0, 0.22) !important;
}

/* Grid table body rows */
.grid-weekly-body-row,
.grid-weekly-body-item {
    background: transparent !important;
    color: var(--st-text) !important;
    border-color: rgba(220, 90, 0, 0.12) !important;
}

/* Service/provider name links in grid */
.grid-weekly-serice-name {
    color: var(--st-text) !important;
}

/* Book button in grid rows — matches SimplyBook "Book Now" orange */
.grid-weekly-button .btn {
    background: #ca642a !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

/* Parts of day / days of week toggle buttons */
.parts-of-day .btn,
.days-of-week .btn.sb-day-of-week {
    background: rgba(36, 36, 36, 0.85) !important;
    border: 1px solid rgba(220, 90, 0, 0.25) !important;
    color: var(--st-text) !important;
}

.parts-of-day .btn.active,
.days-of-week .btn.active {
    background: rgba(220, 90, 0, 0.30) !important;
    border-color: var(--st-orange) !important;
    color: var(--st-text) !important;
}

/* Inline date picker label */
#sb_label_container,
.btn-link {
    color: var(--st-text) !important;
}

/* Back button */
#sb_back_button a {
    color: var(--st-text) !important;
}

/* Force all other SimplyBook containers transparent to show animated bg */
body .container-fluid,
body .wrapper,
body .inner,
body #page,
body #wrapper,
body #book,
body .sb-widget,
body .page-content,
body #sb_booking_wrap,
body .sb_booking {
    background: transparent !important;
    background-color: transparent !important;
}

/* Generic white panel override */
body div[style*="background: #fff"],
body div[style*="background:#fff"],
body div[style*="background: white"],
body div[style*="background-color: #fff"],
body div[style*="background-color:#fff"],
body div[style*="background-color: white"] {
    background-color: var(--st-grey) !important;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: rgba(30, 30, 30, 0.95) !important;
    color: var(--st-text) !important;
    border: 1px solid rgba(220, 90, 0, 0.30) !important;
    border-radius: 4px !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: var(--st-gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.15) !important;
}

/* Labels and general text in forms */
label,
.form-label,
.field-label {
    color: var(--st-text) !important;
}

/* White card/box overrides */
.card,
.box,
.panel,
.sb-card,
.sb-box,
.sb-panel {
    background: rgba(28, 28, 28, 0.95) !important;
    border: 1px solid rgba(220, 90, 0, 0.18) !important;
    color: var(--st-text) !important;
}