/* Nina's Beauty - Booking Modal Styles */

/* Modal Base */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.booking-modal-content {
    background-color: var(--bg-white);
    margin: 2% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.booking-close {
    color: var(--text-dark);
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.booking-close:hover,
.booking-close:focus {
    color: var(--primary-color);
}

.booking-modal-content h2 {
    color: var(--dark-pink);
    margin-bottom: 2rem;
    text-align: center;
}

/* Booking Steps Indicator */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--bg-light);
    z-index: 0;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-step.active .step-number {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.booking-step.completed .step-number {
    background: var(--dark-pink);
    color: var(--text-light);
}

.step-title {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Step Content */
.booking-content {
    min-height: 400px;
}

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

.booking-step-content.active {
    display: block;
    animation: fadeInContent 0.3s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.booking-step-content h3 {
    color: var(--dark-pink);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Service Selector */
.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-option.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--dark-pink);
    color: var(--text-light);
    transform: scale(1.05);
}

.service-icon {
    font-size: 2.5rem;
}

.service-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.service-duration {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Date Input */
.booking-date-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-bottom: 1rem;
}

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

.booking-help {
    text-align: center;
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Loading State */
.booking-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.no-slots,
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 10px;
}

.error-message {
    background: #fee;
    color: #c33;
}

.booking-warning {
    grid-column: 1 / -1;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.booking-summary h4 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
}

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

/* Buttons */
.booking-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.booking-buttons .btn {
    flex: 1;
}

.booking-next:disabled,
.booking-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Toast */
.booking-success-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--dark-pink), var(--primary-color));
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: bottom 0.3s ease;
}

.booking-success-toast.show {
    bottom: 30px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }

    .booking-steps {
        margin-bottom: 1.5rem;
    }

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

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

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

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .booking-modal-content {
        padding: 1rem;
    }

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

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

    .booking-steps::before {
        display: none;
    }

    .step-title {
        display: none;
    }
}

