/**
 * ============================================================================
 * FILE NAME: style.css
 * LOCATION: wp-content/plugins/spa-booking/assets/css/style.css
 * ============================================================================
 * SPA Booking Frontend Styles - All frontend styling
 */

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

.spa-step {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

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

/* Package Grid */
.spa-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.spa-package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.spa-package-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.spa-package-card.selected {
    border-color: #4CAF50;
    background-color: #f1f8f4;
}

.spa-package-card h4 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #333;
}

.spa-package-description {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.spa-package-pricing h5 {
    font-size: 16px;
    margin: 15px 0 10px 0;
}

.spa-pricing-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.spa-pricing-option:hover {
    background: #f9f9f9;
}

.spa-pricing-option input[type="radio"] {
    margin-right: 10px;
}

.spa-pricing-option .spa-duration {
    flex: 1;
    font-weight: 500;
}

.spa-pricing-option .spa-price {
    font-weight: bold;
    color: #4CAF50;
}

/* Add-ons */
.spa-addons-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.spa-addon-item {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.spa-addon-item:hover {
    border-color: #4CAF50;
    background-color: #f9f9f9;
}

.spa-addon-item input[type="checkbox"] {
    margin-right: 10px;
}

.spa-addon-item input[type="checkbox"]:checked ~ .spa-addon-info {
    color: #4CAF50;
}

.spa-addon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.spa-addon-price {
    font-weight: bold;
    color: #4CAF50;
}

.spa-addon-desc {
    margin: 5px 0 0 25px;
    font-size: 13px;
    color: #666;
}

/* Date & Time Selection */
.spa-datetime-selection {
    margin-bottom: 20px;
}

.spa-form-group {
    margin-bottom: 20px;
}

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

.spa-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.spa-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.spa-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.spa-time-slot {
    padding: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.spa-time-slot:hover {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.spa-time-slot.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

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

.spa-booking-summary h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.spa-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spa-summary-subitem {
    padding: 5px 0 5px 20px;
    color: #666;
}

.spa-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    font-size: 20px;
    color: #4CAF50;
}

/* Payment Form */
#spa-card-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Buttons */
.spa-step-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

.spa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spa-btn-primary {
    background: #4CAF50;
    color: white;
}

.spa-btn-primary:hover:not(:disabled) {
    background: #45a049;
}

.spa-btn-secondary {
    background: #757575;
    color: white;
}

.spa-btn-secondary:hover {
    background: #616161;
}

.spa-btn-success {
    background: #2196F3;
    color: white;
    flex: 1;
}

.spa-btn-success:hover:not(:disabled) {
    background: #0b7dda;
}

/* Success Message */
.spa-success-message {
    text-align: center;
    padding: 40px;
    background: #f1f8f4;
    border-radius: 8px;
}

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

.spa-success-message h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.spa-success-message p {
    color: #666;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .spa-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .spa-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .spa-step-buttons {
        flex-direction: column;
    }
}