/**
 * Professional Booking System - Frontend Styles
 */

/* Container */
.pbs-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Group */
.pbs-form-group {
    margin-bottom: 20px;
}

.pbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.pbs-form-group input,
.pbs-form-group select,
.pbs-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pbs-form-group input:focus,
.pbs-form-group select:focus,
.pbs-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

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

/* Service Select */
.pbs-service-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Calendar */
.pbs-calendar {
    margin: 20px 0;
}

.pbs-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pbs-calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #0073aa;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.pbs-calendar-header button:hover {
    color: #005a87;
}

.pbs-month-year {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Calendar Days */
.pbs-calendar-days {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}

.pbs-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    color: #666;
}

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

.pbs-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pbs-day:hover:not(.disabled) {
    border-color: #0073aa;
    background: #f0f7ff;
}

.pbs-day.today {
    border: 2px solid #0073aa;
    color: #0073aa;
    font-weight: 700;
}

.pbs-day.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pbs-day.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Times */
.pbs-times-container {
    margin: 20px 0;
}

.pbs-times-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.pbs-time-slot {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pbs-time-slot:hover:not(.disabled) {
    border-color: #0073aa;
    background: #f0f7ff;
    color: #0073aa;
}

.pbs-time-slot.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.pbs-time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.pbs-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Buttons */
.pbs-submit-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 20px;
}

.pbs-submit-btn:hover:not(:disabled) {
    background: #005a87;
}

.pbs-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notifications */
.pbs-notification {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbs-notification.pbs-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.pbs-notification.pbs-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.pbs-notification.pbs-loading {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* Responsive */
@media (max-width: 768px) {
    .pbs-booking-form {
        padding: 20px;
    }

    .pbs-calendar-days {
        padding: 10px;
    }

    .pbs-times-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

@media (max-width: 480px) {
    .pbs-booking-form {
        padding: 15px;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .pbs-times-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .pbs-submit-btn {
        margin-top: 15px;
        padding: 10px;
        font-size: 14px;
    }
}

/* Loading Animation */
@keyframes pbs-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.pbs-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #33c;
    animation: pbs-spin 0.6s linear infinite;
}

/* Service Info */
.pbs-service-info {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.pbs-service-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.pbs-service-info .pbs-service-price {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.pbs-service-info .pbs-service-duration {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.pbs-service-info .pbs-service-description {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    line-height: 1.4;
}
