/* Appointment Booking System - Frontend Styles */

.abs-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.abs-booking-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.abs-form-section {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #783766;
}

.abs-form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
}

.abs-form-group {
    margin-bottom: 20px;
}

.abs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.abs-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.abs-form-control:focus {
    border-color: #783766;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.abs-form-control.error {
    border-color: #f44336;
}

.abs-error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.abs-error-message.show {
    display: block;
}

.abs-required {
    color: #f44336;
}

.abs-service-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.abs-category-btn {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #783766;
    color: #783766;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.abs-category-btn:hover,
.abs-category-btn.active {
    background: #783766;
    color: white;
}

.abs-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.abs-service-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.abs-service-card:hover {
    border-color: #783766;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.abs-service-card.selected {
    border-color: #783766;
    background: rgba(76, 175, 80, 0.05);
}

.abs-service-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.abs-service-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.abs-service-price {
    font-weight: 700;
    color: #783766;
    font-size: 1.2em;
}

.abs-service-duration {
    color: #777;
    font-size: 14px;
}

.abs-date-picker {
    background: white;
}

.abs-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.abs-time-slot {
    padding: 12px;
    text-align: center;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.abs-time-slot:hover {
    background: #e8f5e9;
    border-color: #783766;
}

.abs-time-slot.selected {
    background: #783766;
    color: white;
    border-color: #783766;
}
.abs-time-slots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.abs-time-slot {
    min-width: 160px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abs-time-slot:hover {
    border-color: #7b2d5c;
    background-color: #faf5f8;
}

.abs-time-slot.selected {
    background-color: #7b2d5c;
    border-color: #7b2d5c;
}

.abs-time-text {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #222;
}

.abs-time-slot.selected .abs-time-text {
    color: #fff;
}

.abs-slot-available {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.abs-time-slot.selected .abs-slot-available {
    color: #f1d6e6;
}


.abs-time-slot.unavailable {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.abs-time-slot.unavailable:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.abs-discount-section {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.abs-discount-input {
    display: flex;
    gap: 10px;
}

.abs-discount-input input {
    flex: 1;
}

.abs-discount-success {
    color: #783766;
    font-weight: 600;
    margin-top: 10px;
}

.abs-pricing-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.abs-price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.abs-price-item:last-child {
    border-bottom: none;
}

.abs-price-item.total {
    font-weight: 700;
    font-size: 1.2em;
    color: #333;
}

.abs-payment-methods {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.abs-payment-method {
    display: none;
}

.abs-payment-method.active {
    display: block;
}

.abs-paypal-button-container {
    margin-top: 20px;
}

.abs-razorpay-button {
    width: 100%;
    padding: 15px;
    background: #528FF0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.abs-razorpay-button:hover {
    background: #3a7ae0;
}

.abs-razorpay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.abs-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.abs-loading.active {
    display: block;
}

.abs-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #783766;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.abs-alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.abs-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.abs-alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.abs-alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.abs-button {
    display: inline-block;
    padding: 12px 30px;
    background: #783766;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.abs-button:hover {
    background: #C497A2;
    color: white;
}

.abs-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.abs-button-secondary {
    background: #6c757d;
}

.abs-button-secondary:hover {
    background: #545b62;
}

.abs-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.abs-step-indicator:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.abs-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.abs-step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    transition: all 0.3s;
}

.abs-step.active .abs-step-number {
    background: #783766;
    color: white;
}

.abs-step.completed .abs-step-number {
    background: #81c784;
    color: white;
}

.abs-step-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.abs-step.active .abs-step-label {
    color: #783766;
}

.abs-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .abs-booking-container {
        padding: 20px;
        margin: 10px;
    }

    .abs-services-grid {
        grid-template-columns: 1fr;
    }

    .abs-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .abs-step-indicator {
        flex-wrap: wrap;
    }

    .abs-step {
        flex: 0 0 25%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .abs-booking-container {
        padding: 15px;
    }

    .abs-form-section {
        padding: 15px;
    }

    .abs-step {
        flex: 0 0 50%;
    }
}
.abs-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.abs-loading.active {
    display: block;
}

.abs-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: abs-spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes abs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}