/* ===================================
   AGENDAMIENTO - CLIENT CSS
   Modern Neumorphic Design
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    overflow-x: hidden;
    display: block;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors - Pastel Palette from Image */
    --primary-color: #000000;        /* Black */
    --secondary-color: #7DD3FC;      /* Light Blue - Mobile App Design */
    --accent-purple: #000000;        /* Black */
    --accent-blue: #60A5FA;         /* Blue */
    --accent-teal: #5EEAD4;          /* Teal/Cyan */
    --accent-orange: #FB923C;        /* Orange - Facebook Brand */
    --accent-pink: #F472B6;          /* Pink */
    --success-color: #16A34A;        /* Green - Very intense vibrant green */
    --warning-color: #FCD34D;        /* Yellow */
    --danger-color: #F87171;         /* Red */
    --info-color: #60A5FA;           /* Info Blue */
    
    /* Background Colors - Soft Pastel */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-dark: #1F2937;
    
    /* Text Colors */
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* Shadows - Softer Neumorphic */
    --shadow-light: 4px 4px 12px rgba(0,0,0,0.03), -4px -4px 12px rgba(255,255,255,0.95);
    --shadow-medium: 6px 6px 16px rgba(0,0,0,0.04), -6px -6px 16px rgba(255,255,255,0.95);
    --shadow-large: 8px 8px 20px rgba(0,0,0,0.05), -8px -8px 20px rgba(255,255,255,0.95);
    --shadow-inset: inset 2px 2px 6px rgba(0,0,0,0.06), inset -2px -2px 6px rgba(255,255,255,0.95);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 50%;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F8F9FA 0%, #F1F5F9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: block;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===================================
   HEADER
   =================================== */

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    max-width: 300px;
}

#headerLogoContent {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

#headerLogoContent img {
    max-width: 100%;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#headerLogoContent h1 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content,
.client-main {
    padding: 30px 0;
    width: 100%;
    min-height: calc(100vh - 200px);
    display: block;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.client-main .container,
.main-content .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    display: block;
}

.business-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 0;
    margin: 20px auto 25px auto;
    box-shadow: var(--shadow-medium);
    width: 100%;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Business Cover Section (Facebook-style) */
.business-cover-section {
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.business-cover {
    width: 100%;
    height: 400px;
    overflow: visible;
    position: relative;
    background: var(--bg-secondary);
}

.business-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Profile Picture Wrapper (más de la mitad en la parte blanca, alineado con el contenido) */
.business-profile-picture-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateY(60%);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.business-profile-picture-wrapper > * {
    pointer-events: auto;
}

.business-profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Business Profile Section (debajo de la portada, alineado con el círculo) */
.business-profile-section {
    background: var(--bg-card);
    padding: 0;
    margin: 0;
    position: relative;
    padding-top: 20px;
    padding-bottom: 0;
    margin-bottom: 0;
}

.business-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.business-profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    padding-left: 180px;
    min-height: 80px;
}

.business-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
}

.profile-placeholder i {
    font-size: 100px;
    color: white;
}

.business-name-section {
    padding-bottom: 0;
    margin-bottom: 0;
}

.business-name-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.business-status-section {
    padding-bottom: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Responsive styles for business profile */
@media (max-width: 768px) {
    .business-cover {
        height: 300px;
    }
    
    .business-profile-picture-wrapper {
        left: 15px;
        transform: translateY(30%);
    }
    
    .business-profile-picture {
        width: 120px;
        height: 120px;
    }
    
    .business-profile-section {
        padding-top: 60px;
    }
    
    .business-profile-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
    }
    
    .business-profile-left {
        padding-left: 0;
        flex: 1;
        min-width: 0;
    }
    
    .business-name-section {
        flex: 1;
        min-width: 0;
    }
    
    .business-name-section h1 {
        font-size: 20px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .business-status-section {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
}

.business-info-content {
    padding: 25px;
}


.business-description {
    margin-left: 0;
    padding-left: 0;
    clear: both;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 25px 15px 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #FCD34D;
    font-size: 18px;
}

.rating-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.business-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.business-location i {
    color: var(--primary-color);
}

.business-status-container {
    display: flex;
    align-items: center;
}

.business-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.business-status i {
    font-size: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.business-status-open {
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
    box-shadow: 0 0 8px rgba(4, 120, 87, 0.3), 0 0 16px rgba(4, 120, 87, 0.2);
}

.business-status-open i {
    color: #047857;
    text-shadow: 0 0 6px rgba(4, 120, 87, 0.8), 0 0 12px rgba(4, 120, 87, 0.6);
}

.business-status-closed {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3), 0 0 16px rgba(239, 68, 68, 0.2);
}

.business-status-closed i {
    color: #EF4444;
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.8), 0 0 12px rgba(239, 68, 68, 0.6);
}

.business-status-inactive {
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.business-status-inactive i {
    color: #000000;
    text-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.business-description {
    margin: 0 25px 20px 25px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset);
    clear: both;
    margin-top: 20px;
}

.business-description p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.business-branches-section {
    margin: 0 25px 20px 25px;
}

.branches-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branches-section-title i {
    color: var(--primary-color);
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.branch-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-inset);
    transition: var(--transition);
}

.branch-item:hover {
    box-shadow: var(--shadow-light);
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.branch-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-name i {
    color: var(--primary-color);
    font-size: 14px;
}

.branch-address {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}

.branch-city {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.branch-hours {
    font-size: 13px;
    color: var(--text-secondary);
+    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-hours i {
    color: var(--accent-purple);
    font-size: 12px;
}

.branch-phone {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-phone i {
    color: var(--primary-color);
    font-size: 12px;
}

.promo-banner {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(96, 165, 250, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: var(--radius-md);
    margin: 0 25px 20px 25px;
}

.promo-banner p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.book-appointment-container {
    margin: 0 25px 25px 25px;
    display: flex;
    justify-content: center;
}

.btn-book-appointment {
    width: 100%;
    max-width: 400px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-medium);
}

.btn-book-appointment:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.btn-book-appointment i {
    font-size: 20px;
}

.booking-header {
    text-align: center;
    margin: 0 auto 25px auto;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.booking-header.hidden {
    display: none;
}

.booking-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.booking-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===================================
   BOOKING WIZARD
   =================================== */

.booking-wizard {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 1200px;
    padding-left: 30px;
    padding-right: 30px;
    display: block;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.booking-wizard.hidden {
    display: none;
}

.wizard-step.hidden {
    display: none;
}

.wizard-step {
    display: block;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-primary);
}

.wizard-step:last-child {
    border-bottom: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-inset);
}

.step-number.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.step-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

/* ===================================
   SEARCH BOX
   =================================== */

.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    box-shadow: var(--shadow-inset);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    box-shadow: var(--shadow-medium);
}

/* ===================================
   STEP 1: SERVICES
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    border-left: 4px solid #000000;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card.selected {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-price {
    font-size: 22px;
    font-weight: bold;
}

.service-card .service-price {
    color: #000000;
}

/* ===================================
   STEP 2: BRANCHES
   =================================== */

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.branch-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.branch-card:nth-child(1) {
    border-left: 4px solid var(--secondary-color);
}

.branch-card:nth-child(2) {
    border-left: 4px solid var(--accent-orange);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.branch-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.1), rgba(96, 165, 250, 0.1));
}

.branch-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.branch-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ===================================
   STEP 3: PROFESSIONALS
   =================================== */

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.professional-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.professional-card:nth-child(1) .professional-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
}

.professional-card:nth-child(2) .professional-avatar {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-teal));
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.professional-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(192, 132, 252, 0.1));
}

.professional-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.professional-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
}

.professional-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
    border: 2px solid #000000;
}

.professional-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.professional-specialty {
    font-size: 14px;
    color: var(--text-secondary);
}

.professional-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.professional-rating .stars i {
    font-size: 14px;
    color: #FFD93D;
}

.professional-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   STEP 4: DATE SELECTOR
   =================================== */

.date-selector-container {
    display: flex;
    justify-content: center;
}

.calendar-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-header h4 {
    font-size: 16px;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-inset);
    color: var(--text-primary);
    flex-shrink: 0;
}

.calendar-nav-btn:hover {
    box-shadow: var(--shadow-light);
    background: var(--primary-color);
    color: white;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 0;
}

.calendar-day-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.calendar-day-item.selected {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.calendar-day-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-label {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-secondary);
}

.calendar-day-item.selected .day-label {
    color: white;
}

.day-number {
    font-size: 16px;
    font-weight: bold;
}

/* ===================================
   STEP 5: TIME SELECTOR
   =================================== */

.time-slots-container {
    max-width: 900px;
    margin: 0 auto;
}

.selected-date-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.selected-date-info i {
    color: var(--primary-color);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.time-slot {
    padding: 15px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.time-slot:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.time-slot.selected {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(192, 132, 252, 0.15));
    border-color: var(--primary-color);
    cursor: default;
}

.time-slot.selected:hover {
    transform: none;
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===================================
   STEP 6: CONFIRM
   =================================== */

.booking-summary {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

.summary-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-light);
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-label i {
    color: var(--primary-color);
}

.summary-value {
    font-weight: bold;
    color: var(--text-primary);
}

.summary-total {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
}

.booking-form {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.booking-form h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    box-shadow: var(--shadow-inset);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-medium);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===================================
   NAVIGATION BUTTONS
   =================================== */

.wizard-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.btn-book-appointment {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
}

.btn-book-appointment:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--primary-color));
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-outline:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.btn-success {
    background: #16A34A !important;
    color: white !important;
    font-weight: 600;
}

.btn-success:hover {
    background: #15803D !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

/* ===================================
   MODAL
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-dark);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #16A34A !important;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-booking-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.modal-booking-info .summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #E0E0E0;
}

.modal-booking-info .summary-item:last-child {
    border-bottom: none;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 180px;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.modal-buttons .btn-success {
    order: 2;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--footer-bg-color, var(--bg-dark));
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    align-content: start;
}

.footer-content > * {
    margin-top: 0;
    padding-top: 0;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    margin-top: 0;
}

.footer-logo-container {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    transform: translateY(-8px);
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    height: auto;
    max-width: 200px;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 1.2;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-social-icon i {
    font-size: 18px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0;
    align-self: flex-start;
}

.footer-section h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.2;
    align-self: flex-start;
    vertical-align: top;
    height: auto;
    min-height: 0;
    display: block;
    font-weight: 600;
}

/* Align section titles with logo - ensure they start at the same vertical position */
.footer-content {
    align-items: start;
    align-content: start;
}

/* Make sure first element in each column aligns */
.footer-logo-section > *:first-child,
.footer-section > h4:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Specific alignment for logo container and section titles */
.footer-logo-container {
    align-self: start;
}

.footer-section h4 {
    align-self: start;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-right: 8px;
    color: var(--footer-icon-color, var(--primary-color));
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
}

/* ===================================
   SELECTION SUMMARY
   =================================== */

.selection-summary {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(96, 165, 250, 0.1));
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
}

.selection-summary.hidden {
    display: none;
}

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

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.btn-change {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-change:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 968px) {
    .services-grid,
    .branches-grid,
    .professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-content,
    .client-main {
        padding: 20px 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .client-main .container,
    .main-content .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .footer .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .business-info {
        padding: 0;
    }
    
    .business-cover {
        height: 200px;
    }
    
    .business-header {
        margin: 15px 20px 12px 20px;
    }
    
    .business-description {
        margin: 0 20px 15px 20px;
        padding: 12px;
    }
    
    .business-description p {
        font-size: 14px;
    }
    
    .business-branches-section {
        margin: 0 20px 15px 20px;
    }
    
    .branches-section-title {
        font-size: 16px;
    }
    
    .branch-item {
        padding: 12px;
    }
    
    .branch-name {
        font-size: 15px;
    }
    
    .branch-address {
        font-size: 13px;
    }
    
    .branch-city {
        font-size: 12px;
    }

    .branch-hours {
        font-size: 12px;
    }
    
    .branch-phone {
        font-size: 12px;
    }
    
    .promo-banner {
        margin: 0 20px 20px 20px;
        padding: 12px;
    }
    
    .book-appointment-container {
        margin: 0 20px 20px 20px;
    }
    
    .btn-book-appointment {
        padding: 16px 25px;
        font-size: 16px;
    }
    
    .booking-wizard {
        padding: 20px;
    }
    
    .services-grid,
    .branches-grid,
    .professionals-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-container {
        overflow-x: visible;
    }
    
    .calendar-days {
        gap: 8px;
    }
    
    .calendar-day-item {
        padding: 6px 2px;
        min-width: 35px;
    }
    
    .day-label {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .calendar-header h4 {
        font-size: 14px;
        min-width: auto;
    }
    
    .calendar-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wizard-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer {
        background: var(--footer-bg-color, var(--bg-dark)) !important;
        background-color: var(--footer-bg-color, var(--bg-dark)) !important;
    }
}

@media (max-width: 480px) {
    .footer {
        background: var(--footer-bg-color, var(--bg-dark)) !important;
        background-color: var(--footer-bg-color, var(--bg-dark)) !important;
    }
    
    .booking-header h2 {
        font-size: 24px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    .calendar-days {
        gap: 5px;
    }
    
    .calendar-day-item {
        padding: 5px 1px;
        min-width: 30px;
    }
    
    .day-label {
        font-size: 8px;
        margin-bottom: 1px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .calendar-header {
        margin-bottom: 15px;
    }
    
    .calendar-header h4 {
        font-size: 12px;
    }
    
    .calendar-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .calendar-container {
        padding: 0;
    }
    
    .business-cover {
        height: 150px;
    }
    
    .business-header {
        margin: 12px 15px 10px 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .business-description {
        margin: 0 15px 12px 15px;
        padding: 10px;
    }
    
    .business-description p {
        font-size: 13px;
    }
    
    .business-branches-section {
        margin: 0 15px 12px 15px;
    }
    
    .branches-section-title {
        font-size: 14px;
    }
    
    .branch-item {
        padding: 10px;
    }
    
    .branch-name {
        font-size: 14px;
    }
    
    .branch-address {
        font-size: 12px;
    }
    
    .branch-city {
        font-size: 11px;
    }

    .branch-hours {
        font-size: 11px;
    }
    
    .branch-phone {
        font-size: 11px;
    }
    
    .promo-banner {
        margin: 0 15px 15px 15px;
        padding: 10px;
    }
    
    .promo-banner p {
        font-size: 12px;
    }
    
    .book-appointment-container {
        margin: 0 15px 15px 15px;
    }
    
    .btn-book-appointment {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-book-appointment i {
        font-size: 18px;
    }
}
