:root {
    --primary-color: #12D488;
    --primary-dark: #10B874;
    --secondary-color: #2C3E50;
    --text-dark: #1A202C;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.

24);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: #D8D8D8;
    min-height: 100vh;
    padding: 20px;
}

.booking-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.booking-container {
    background: #F8F9FA;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

/* Header */
.booking-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.booking-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.booking-header .logo i {
    font-size: 2.5rem;
}

.booking-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.booking-header .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: var(--bg-light);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.4);
}

.progress-step.completed .step-circle {
    background: var(--primary-dark);
    color: white;
}

.progress-step span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
}

.progress-step.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    height: 2px;
    flex: 1;
    background: var(--border-color);
    margin: 0 10px;
    margin-bottom: 30px;
}

.progress-step.completed + .progress-line {
    background: var(--primary-color);
}

/* Booking Steps */
.booking-steps {
    padding: 40px;
    min-height: 500px;
}

/* Location Selector */
.location-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.location-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.15);
}

.location-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.location-selector label i {
    color: var(--primary-color);
    margin-right: 8px;
}

.location-selector .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-selector .form-select:hover {
    border-color: var(--primary-color);
}

.location-selector .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 212, 136, 0.1);
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

.step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

/* Services Grid */
.category-group {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: rgba(18, 212, 136, 0.05);
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.service-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.service-meta .duration {
    color: var(--text-light);
}

.service-meta .price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-check {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card.selected .service-check {
    opacity: 1;
}

/* Calendar & Timeslots */
.datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calendar-section,
.timeslots-section {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
}

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

.calendar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.month-nav {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.month-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.calendar-day.day-name {
    font-weight: 600;
    color: var(--text-light);
    cursor: default;
    font-size: 0.8rem;
}

.calendar-day.disabled {
    color: #CBD5E0;
    cursor: not-allowed;
}

.calendar-day:not(.disabled):not(.day-name):hover {
    background: var(--primary-color);
    color: white;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.today {
    border-color: var(--primary-color);
    font-weight: 600;
}

.timeslots-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.selected-date-info {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.timeslot {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 50px;
}

.timeslot .slot-time {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeslot .slot-time i {
    margin-right: 6px;
}

.timeslot .slot-available {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
}

.timeslot:hover {
    border-color: var(--primary-color);
    background: rgba(18, 212, 136, 0.1);
}

.timeslot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timeslot.selected .slot-available {
    color: rgba(255, 255, 255, 0.85);
}

/* Booked slots - faded/grayed out with waiting list label */
.timeslot.booked {
    opacity: 0.5;
    cursor: pointer;
    position: relative;
}

.timeslot.booked:hover {
    opacity: 0.7;
}

.timeslot.booked .slot-available {
    font-size: 0.55rem;
    line-height: 1.15;
    text-align: center;
}

/* Selected waiting list slot - yellow border only */
.timeslot.waiting-list-selected {
    opacity: 1 !important;
    border-color: #ffc107 !important;
    border-width: 2px !important;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.staff-card {
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.staff-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.staff-card.selected {
    border-color: var(--primary-color);
    background: rgba(18, 212, 136, 0.05);
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.2);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.staff-card.selected .staff-avatar {
    border-color: var(--primary-color);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.staff-specialty {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.staff-exp {
    font-size: 0.85rem;
    color: var(--text-light);
}

.staff-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card.selected .staff-check {
    opacity: 1;
}

/* Booking Summary */
.booking-summary-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.summary-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
}

.summary-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.summary-item .value {
    font-weight: 500;
    color: var(--text-dark);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid var(--primary-color);
}

.summary-total .label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.summary-total .value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Customer Form */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 212, 136, 0.1);
}

/* Invalid/Error states - soft red border */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown),
.form-group input.error,
.form-group textarea.error {
    border-color: #f8b4b4;
    background-color: #fff5f5;
}

.form-group input:invalid:not(:placeholder-shown):focus,
.form-group textarea:invalid:not(:placeholder-shown):focus,
.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.15);
}

/* Valid state - subtle green */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #9ae6b4;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #9ae6b4;
}

/* Buttons */
.booking-actions {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.3);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1.1rem;
    padding: 15px 40px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 212, 136, 0.4);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

.success-message h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Waiting List Modal */
.waiting-list-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.waiting-list-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.waiting-list-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.waiting-list-modal-icon {
    text-align: center;
    font-size: 4rem;
    color: #ffa500;
    margin-bottom: 20px;
}

.waiting-list-modal-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.waiting-list-modal-text {
    text-align: center;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.waiting-list-modal-time {
    background: rgba(255, 165, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
    border-left: 4px solid #ffa500;
}

.waiting-list-modal-time strong {
    color: #ff8c00;
    font-size: 1.2rem;
}

.waiting-list-modal-buttons {
    display: flex;
    gap: 15px;
}

.waiting-list-modal-buttons button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waiting-list-modal-cancel {
    background: #e9ecef;
    color: #495057;
}

.waiting-list-modal-cancel:hover {
    background: #dee2e6;
}

.waiting-list-modal-confirm {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
}

.waiting-list-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .booking-container {
        border-radius: 15px;
    }

    .booking-header {
        padding: 20px;
    }

    .booking-header h1 {
        font-size: 1.5rem;
    }

    .progress-bar {
        padding: 20px 15px;
        flex-wrap: wrap;
    }

    .progress-step {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .progress-line {
        display: none;
    }

    .booking-steps {
        padding: 20px;
    }

    .step-title {
        font-size: 1.4rem;
    }

    .datetime-container,
    .booking-summary-section {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .timeslots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-actions {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Payment Section */
.payment-section {
    max-width: 700px;
    margin: 0 auto;
}

.payment-methods-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.payment-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(18, 212, 136, 0.05) 0%, rgba(16, 184, 116, 0.05) 100%);
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.payment-check {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card.selected .payment-check {
    opacity: 1;
}

/* PayPal Button */
#paypal-button-container {
    margin: 0 auto;
}

/* Wider payment section */
.payment-section {
    max-width: 800px;
    margin: 0 auto;
}

#payment-button-container {
    max-width: 500px;
    margin: 2rem auto 0;
}

/* Responsive Payment */
@media (max-width: 768px) {
    .payment-methods-wrapper {
        grid-template-columns: 1fr;
    }

    .payment-section {
        max-width: 100%;
    }
}

/* Location Cards */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.location-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.location-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.location-card.selected {
    border-color: var(--primary-color);
    background: rgba(18, 212, 136, 0.05);
    box-shadow: 0 4px 12px rgba(18, 212, 136, 0.2);
}

.location-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
}

.location-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.location-check {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.location-card.selected .location-check {
    opacity: 1;
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
