/* ================================================
   Multi-Step Booking Form Styles
   ================================================ */

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 0 1rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #c9a96e 0%, #d4b883 100%);
    color: #1a1a1a;
    border-color: #c9a96e;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #c9a96e;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #1a1a1a;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    position: relative;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}

.progress-step.completed + .progress-line {
    background: #1a1a1a;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    min-height: 400px;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Barbers Grid */
.barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.barber-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.barber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #c9a96e;
}

.barber-card.selected {
    border-color: #c9a96e;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.1) 0%, rgba(212, 184, 131, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

.barber-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c9a96e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.barber-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.barber-card.selected .barber-avatar {
    border-color: #c9a96e;
}

.barber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.barber-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c9a96e 0%, #d4b883 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.barber-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.barber-specialty {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.barber-rating {
    color: #c9a96e;
    font-size: 0.9rem;
}

/* Services Grid in Booking */
#bookingServicesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card-booking {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.service-card-booking:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #c9a96e;
}

.service-card-booking.selected {
    border-color: #c9a96e;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.1) 0%, rgba(212, 184, 131, 0.05) 100%);
    box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

.service-card-booking.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c9a96e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.service-icon {
    font-size: 2.5rem;
    color: #c9a96e;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.service-duration {
    font-size: 0.9rem;
    color: #666;
}

.service-duration i {
    color: #c9a96e;
    margin-right: 0.3rem;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c9a96e;
}

/* Custom Calendar */
.custom-calendar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.calendar-month {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #c9a96e;
    color: white;
    transform: scale(1.1);
}

.calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-nav-btn:disabled:hover {
    background: #f5f5f5;
    color: #666;
    transform: scale(1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9a96e;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.9rem;
    min-height: 45px;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    border-color: #c9a96e;
    background: rgba(201, 169, 110, 0.1);
    transform: scale(1.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #c9a96e 0%, #d4b883 100%);
    border-color: #c9a96e;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.4);
}

.calendar-day.today {
    border-color: #1a1a1a;
    font-weight: 700;
    position: relative;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: #c9a96e;
    border-radius: 50%;
}

.calendar-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day.sunday {
    color: #e74c3c;
}

.calendar-day.sunday.disabled {
    color: #fcc;
}

/* Closed Days */
.calendar-day.closed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    position: relative;
    cursor: not-allowed;
}

.calendar-day.closed::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
}

.calendar-day.closed:hover {
    background: linear-gradient(135deg, #ff5252 0%, #dd4a5f 100%);
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Time Slots */
.time-slots {
    margin: 2rem 0;
}

.time-slots-hint {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.time-slots-hint.closed-day-message {
    color: #e74c3c;
    font-weight: 500;
    font-style: normal;
    background: #fee;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.time-slot {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover:not(.disabled) {
    border-color: #c9a96e;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.time-slot.selected {
    background: linear-gradient(135deg, #c9a96e 0%, #d4b883 100%);
    border-color: #c9a96e;
    color: white;
    font-weight: 600;
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Confirmation Summary */
.confirmation-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item:hover {
    background: rgba(201, 169, 110, 0.05);
}

.summary-item i {
    font-size: 1.5rem;
    color: #c9a96e;
    margin-right: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.summary-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.summary-value {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.nav-button {
    flex: 1;
    max-width: 250px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prev-button {
    background: #f5f5f5;
    color: #333;
}

.prev-button:hover {
    background: #e0e0e0;
    transform: translateX(-3px);
}

.next-button {
    background: linear-gradient(135deg, #c9a96e 0%, #d4b883 100%);
    color: white;
    margin-left: auto;
}

.next-button:hover {
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
    transform: translateX(3px);
}

.submit-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    margin-left: auto;
}

.submit-button:hover {
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    font-size: 2rem;
    color: #c9a96e;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 100px;
    right: -400px;
    z-index: 9999;
    width: 380px;
    max-width: calc(100vw - 40px);
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-container.show {
    right: 20px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 5px solid #c9a96e;
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.success {
    border-left-color: #4caf50;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification.info {
    border-left-color: #2196f3;
}

.notification-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.notification.success .notification-icon {
    color: #4caf50;
}

.notification.error .notification-icon {
    color: #f44336;
}

.notification.warning .notification-icon {
    color: #ff9800;
}

.notification.info .notification-icon {
    color: #2196f3;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.notification-message {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a96e 0%, #d4b883 100%);
    border-radius: 0 0 0 12px;
    animation: progressBar linear forwards;
}

.notification.success .notification-progress {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
}

.notification.error .notification-progress {
    background: linear-gradient(90deg, #f44336 0%, #e57373 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification.hide {
    animation: slideOut 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification-container {
        width: calc(100vw - 40px);
        top: 80px;
    }

    .notification {
        padding: 1rem;
    }

    .notification-icon {
        font-size: 1.5rem;
    }

    .notification-title {
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .progress-bar {
        padding: 0;
        margin: 2rem 0;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        margin: 0 0.2rem;
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .barbers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #bookingServicesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .calendar-month {
        font-size: 1.2rem;
    }

    .calendar-weekday {
        font-size: 0.75rem;
        padding: 0.3rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-button {
        max-width: 100%;
        width: 100%;
    }

    .next-button,
    .submit-button {
        margin-left: 0;
    }

    .confirmation-summary {
        padding: 1rem;
    }

    .summary-item {
        padding: 1rem;
    }

    .summary-item i {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .progress-bar {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .barber-avatar {
        width: 100px;
        height: 100px;
    }

    #bookingServicesGrid {
        grid-template-columns: 1fr;
    }

    .calendar-month {
        font-size: 1rem;
    }

    .calendar-weekday {
        font-size: 0.65rem;
        padding: 0.2rem;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
