/**
 * autoWASH WordPress Frontend - Public Styles
 */

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

.autowash-booking-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.autowash-booking-form h3 {
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Steps */
.autowash-step {
    margin-bottom: 30px;
}

/* Services */
.autowash-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.autowash-service-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.autowash-service-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.autowash-service-card.selected {
    border-color: #007bff;
    background: #f0f8ff;
}

.autowash-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.autowash-service-header h4 {
    margin: 0;
    font-size: 1.1em;
}

.autowash-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
}

.autowash-duration {
    color: #666;
    font-size: 0.9em;
}

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

.autowash-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.autowash-form-group input,
.autowash-form-group select,
.autowash-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.autowash-form-group input:focus,
.autowash-form-group select:focus,
.autowash-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.autowash-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Time Slots */
.autowash-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.autowash-time-slot {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.autowash-time-slot:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.autowash-time-slot.selected {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Payment Methods */
.autowash-payment-methods {
    margin: 20px 0;
}

.autowash-payment-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.autowash-payment-option input {
    margin-right: 15px;
}

.autowash-payment-option label {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.autowash-payment-option label strong {
    font-size: 1.1em;
}

.autowash-payment-option label span {
    color: #666;
    font-size: 0.9em;
}

.autowash-payment-option input:checked + label {
    color: #007bff;
}

/* Summary */
.autowash-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-item span {
    color: #666;
}

.summary-item strong {
    color: #333;
}

.summary-total {
    border-top: 2px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.summary-total strong {
    color: #28a745;
    font-size: 1.2em;
}

/* Buttons */
.autowash-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.autowash-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.autowash-btn-primary {
    background: #007bff;
    color: #fff;
}

.autowash-btn-primary:hover {
    background: #0056b3;
}

.autowash-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.autowash-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.autowash-btn-secondary:hover {
    background: #545b62;
}

/* Success Message */
.autowash-success {
    text-align: center;
    padding: 40px;
}

.autowash-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

/* Error */
.autowash-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Dashboard */
.autowash-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.autowash-dashboard-header {
    margin-bottom: 30px;
}

.autowash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.autowash-stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.autowash-stat-card h4 {
    color: #666;
    margin: 0 0 10px;
    font-size: 0.9em;
}

.autowash-stat-card .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.autowash-bookings {
    display: grid;
    gap: 15px;
}

.autowash-booking-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.autowash-booking-card.status-pending {
    border-left: 4px solid #ffc107;
}

.autowash-booking-card.status-confirmed {
    border-left: 4px solid #007bff;
}

.autowash-booking-card.status-completed {
    border-left: 4px solid #28a745;
}

.autowash-booking-card.status-cancelled {
    border-left: 4px solid #dc3545;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.booking-id {
    font-weight: bold;
    color: #333;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    text-transform: capitalize;
}

.status-pending .booking-status { background: #fff3cd; color: #856404; }
.status-confirmed .booking-status { background: #cce5ff; color: #004085; }
.status-completed .booking-status { background: #d4edda; color: #155724; }
.status-cancelled .booking-status { background: #f8d7da; color: #721c24; }

.booking-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Loading */
.autowash-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Help text */
.autowash-help {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .autowash-form-row {
        grid-template-columns: 1fr;
    }
    
    .autowash-services {
        grid-template-columns: 1fr;
    }
    
    .autowash-btn {
        padding: 12px 20px;
    }
}
