/* Asad Barber - Booking System Styles */

:root {
    --primary-color: #c41e3a;
    --primary-hover: #a01830;
    --secondary-color: #1a1a1a;
    --accent-color: #d4af37;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.booking-header {
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-header h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-color);
}

/* Main Content */
.booking-main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.booking-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2.5rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-medium);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    border: 2px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

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

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

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

/* Booking Steps */
.booking-step {
    animation: fadeIn 0.5s;
}

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

.booking-step h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    margin-bottom: 2rem;
}

/* Service Selection */
.service-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-category h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
}

.service-item.selected {
    border-color: var(--primary-color);
    background: rgba(196, 30, 58, 0.05);
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 1rem;
}

.service-name {
    font-weight: 500;
    color: var(--text-dark);
}

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

.service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Booking Summary */
.booking-summary {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.summary-item span:first-child {
    color: #666;
    font-size: 0.9rem;
}

.summary-item span:last-child {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Date & Time Selection */
.datetime-selection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.date-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

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

.time-slot {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: rgba(196, 30, 58, 0.05);
}

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

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

.loading-text {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Customer Form */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* Review Section */
.review-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.review-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-card ul {
    list-style: none;
}

.review-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-card ul li:last-child {
    border-bottom: none;
}

.total-card {
    background: linear-gradient(135deg, var(--primary-color), #9a1829);
    color: white;
}

.total-card h3 {
    color: white;
}

.total-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.duration-info {
    opacity: 0.9;
}

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.important-notice h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.important-notice ul {
    margin-left: 1.5rem;
}

.important-notice li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.booking-reference {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.booking-reference h3 {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.3rem;
}

.next-steps-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.next-steps-card h4 {
    margin-bottom: 1rem;
}

.next-steps-card ol {
    margin-left: 1.5rem;
}

.next-steps-card li {
    margin-bottom: 0.75rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

.btn-submit {
    position: relative;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading.hidden {
    display: none;
}

.btn-loading .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Footer */
.booking-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        padding: 1.5rem;
    }

    .progress-steps {
        margin-bottom: 2rem;
    }

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

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

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

    .review-section {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .step-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-header h1 {
        font-size: 1.4rem;
    }

    .step-label {
        display: none;
    }

    .summary-item span:last-child {
        font-size: 1rem;
    }
}
