/* Appointment Booking System - Frontend Styles */

.abs-booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Steps */
.abs-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.abs-step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.abs-step h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Back Button */
.abs-back-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    margin-bottom: 15px;
    text-decoration: none;
}

.abs-back-btn:hover {
    color: #005177;
    text-decoration: underline;
}

/* Staff Selection */
.abs-staff-selection {
    text-align: center;
    padding: 40px 20px;
}

.abs-select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

.abs-select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Buttons */
.abs-button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.abs-button-primary {
    background-color: #0073aa;
    color: white;
}

.abs-button-primary:hover:not(:disabled) {
    background-color: #005177;
}

.abs-button-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.abs-button-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Calendar */
.abs-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.abs-calendar-header h3 {
    margin: 0;
    font-size: 20px;
}

.abs-calendar-nav {
    background: #0073aa;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.abs-calendar-nav:hover {
    background: #005177;
}

#abs-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.abs-calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: #f5f5f5;
    font-size: 14px;
}

.abs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.abs-calendar-day:hover:not(.abs-day-disabled):not(.abs-day-past) {
    background: #e6f2ff;
    border-color: #0073aa;
}

.abs-calendar-day.abs-day-disabled,
.abs-calendar-day.abs-day-past {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.abs-calendar-day.abs-day-empty {
    border: none;
    cursor: default;
}

/* Time Slots */
#abs-selected-date-display {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

#abs-time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.abs-time-slot {
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.abs-time-slot:hover:not(.abs-slot-booked) {
    background: #e6f2ff;
    border-color: #0073aa;
}

.abs-time-slot.abs-slot-booked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Booking Summary */
.abs-booking-summary {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.abs-booking-summary h3 {
    margin-top: 0;
    color: #0073aa;
}

.abs-booking-summary p {
    margin: 8px 0;
}

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

.abs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.abs-form-group input,
.abs-form-group select,
.abs-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.abs-form-group input:focus,
.abs-form-group select:focus,
.abs-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Messages */
.abs-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.abs-message.abs-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.abs-message.abs-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* Success Step */
.abs-success-step {
    text-align: center;
    padding: 60px 20px;
}

.abs-success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
}

.abs-success-step h2 {
    color: #4caf50;
}

/* Notice */
.abs-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .abs-booking-wrapper {
        padding: 15px;
    }
    
    #abs-time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .abs-calendar-day {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #abs-calendar-grid {
        gap: 3px;
    }
    
    .abs-calendar-day-header {
        font-size: 12px;
        padding: 8px 4px;
    }
    
    #abs-time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== RENTAL MODE STYLES ========== */

.abs-duration-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}

.abs-duration-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border: 3px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.abs-duration-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.abs-duration-option.selected {
    border-color: #0073aa;
    background: #e6f2ff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.abs-duration-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.abs-duration-option.disabled:hover {
    border-color: #ddd;
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

.abs-duration-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.abs-duration-label strong {
    font-size: 18px;
    color: #333;
}

.abs-duration-desc {
    font-size: 14px;
    color: #666;
}

.abs-duration-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.abs-total-price {
    font-size: 20px;
    color: #0073aa;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.abs-notice-info {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .abs-duration-option {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .abs-duration-label {
        align-items: center;
    }
}
