/* Public Frontend CSS Styles */

.ab-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ab-booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.ab-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 10px;
}

.ab-step.active {
    color: #2271b1;
    font-weight: 600;
}

.ab-step.completed {
    color: #00a32a;
}

.ab-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-bottom: 5px;
}

.ab-step.active .ab-step-number {
    background: #2271b1;
    color: #fff;
}

.ab-step.completed .ab-step-number {
    background: #00a32a;
    color: #fff;
}

/* Astrologer cards */
.ab-astrologers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ab-astrologer-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ab-astrologer-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ab-astrologer-card.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

.ab-astrologer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.ab-astrologer-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ab-astrologer-specialization {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Service cards */
.ab-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ab-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ab-service-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ab-service-card.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

.ab-service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ab-service-duration {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.ab-service-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

/* Calendar */
.ab-calendar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Time slots */
.ab-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ab-time-slot {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ab-time-slot:hover {
    background: #f0f6fc;
}

.ab-time-slot.selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.ab-time-slot.booked {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.ab-time-slot.unavailable {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Form */
.ab-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.ab-form-group {
    margin-bottom: 20px;
}

.ab-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ab-form-input,
.ab-form-select,
.ab-form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.ab-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.ab-form-checkbox {
    margin-right: 5px;
}

.ab-submit-button {
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ab-submit-button:hover {
    background: #135e96;
}

.ab-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.ab-submit-button:disabled:hover {
    background: #ccc;
}

/* Messages */
.ab-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.ab-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ab-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ab-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading spinner */
.ab-loading {
    text-align: center;
    padding: 40px;
}

.ab-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ab-booking-steps {
        flex-direction: column;
    }
    
    .ab-astrologers-grid,
    .ab-services-grid {
        grid-template-columns: 1fr;
    }
    
    .ab-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Payment Step */
.ab-payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.ab-payment-option {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.ab-payment-option:hover {
    border-color: #2271b1;
}

#ab-payment-summary {
    background: #f0f6fc;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#ab-payment-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

#ab-payment-loading p {
    font-size: 16px;
}

#ab-paypal-button-container {
    min-height: 50px;
}
