/* Service Booking Pro - Frontend Styles */

:root {
    --sbp-primary: #2ecc71;
    --sbp-primary-dark: #27ae60;
    --sbp-border: #e0e0e0;
    --sbp-bg: #f8f9fa;
    --sbp-text: #333;
    --sbp-text-light: #666;
}

.sbp-form-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--sbp-text);
}

.sbp-form-column {
    flex: 1;
    min-width: 0;
}

.sbp-form-column > div {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sbp-form-column h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--sbp-text);
}

.sbp-form-column > div > p {
    color: var(--sbp-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.sbp-booking-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--sbp-text);
}

.service-option {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid var(--sbp-border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.service-option:hover {
    border-color: var(--sbp-primary);
    background-color: #f9fff9;
}

.service-option input[type="radio"]:checked {
    accent-color: var(--sbp-primary);
}

.service-option label {
    cursor: pointer;
    display: block;
    margin: 0;
}

.service-option label span:first-of-type {
    font-weight: bold;
    font-size: 16px;
    color: var(--sbp-text);
}

.service-option label span:last-of-type {
    float: right;
    font-weight: bold;
    color: var(--sbp-primary);
    font-size: 16px;
}

.service-option p {
    margin: 8px 0 0 30px;
    color: var(--sbp-text-light);
    font-size: 14px;
}

.addon-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.widefat {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--sbp-border);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.widefat:focus {
    outline: none;
    border-color: var(--sbp-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.sbp-booking-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--sbp-text);
    font-size: 14px;
}

.sbp-booking-form > div {
    margin-bottom: 30px;
}

.sbp-booking-form > div:last-child {
    margin-bottom: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--sbp-border);
}

.sbp-booking-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: var(--sbp-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sbp-booking-form button[type="submit"]:hover {
    background: var(--sbp-primary-dark);
}

.sbp-booking-form button[type="submit"]:active {
    transform: scale(0.98);
}

.sbp-summary-column {
    width: 320px;
    position: relative;
}

#sbp-summary {
    background: var(--sbp-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--sbp-border);
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#sbp-summary h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--sbp-text);
}

#sbp-summary > div:first-of-type {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sbp-border);
}

#sbp-summary .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

#sbp-summary .info-row span:first-child {
    color: var(--sbp-text-light);
}

#sbp-summary .info-row span:last-child {
    font-weight: bold;
    color: var(--sbp-text);
}

#sbp-summary .pricing-section {
    margin-bottom: 15px;
}

#sbp-summary .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#sbp-summary .price-row span:first-child {
    color: var(--sbp-text-light);
}

#sbp-summary .price-row span:last-child {
    font-weight: bold;
    color: var(--sbp-primary);
}

#addons-breakdown {
    display: none;
    margin-bottom: 10px;
}

#addons-list .addon-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

#addons-list .addon-item span:first-child {
    color: var(--sbp-text-light);
}

#addons-list .addon-item span:last-child {
    font-weight: bold;
}

#sbp-summary .total-box {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid var(--sbp-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sbp-summary .total-box span:first-child {
    font-weight: bold;
    font-size: 16px;
}

#sbp-summary .total-box span:last-child {
    font-weight: bold;
    font-size: 20px;
    color: var(--sbp-primary);
}

#sbp-summary .disclaimer {
    font-size: 12px;
    color: #999;
    margin: 15px 0 0 0;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .sbp-form-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .sbp-summary-column {
        width: 100%;
    }
    
    #sbp-summary {
        position: static !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .sbp-form-wrapper {
        padding: 0 15px;
    }
    
    .sbp-form-column > div {
        padding: 20px;
    }
    
    .sbp-form-column h2 {
        font-size: 22px;
    }
    
    .service-option {
        padding: 12px;
    }
    
    .service-option label span:first-of-type {
        font-size: 14px;
    }
    
    .service-option label span:last-of-type {
        float: none;
        display: block;
        margin-top: 8px;
        font-size: 14px;
    }
    
    .sbp-booking-form button[type="submit"] {
        padding: 12px;
        font-size: 14px;
    }
    
    .widefat {
        padding: 8px;
        font-size: 13px;
    }
    
    #sbp-summary {
        padding: 15px;
    }
    
    #sbp-summary h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

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

.service-option {
    animation: slideIn 0.3s ease;
}

.widefat:focus,
.service-option input:focus {
    outline: 2px solid var(--sbp-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
