/**
 * Simple & Elegant Booking Widget Styles
 * Inspired by modern spa/wellness websites
 * Using PT Mono and Roboto Flex fonts
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=PT+Mono:wght@400@700&family=Roboto+Flex:opsz,wght@8..144,300;8..144,400;8..144,500;8..144,600;8..144,700&display=swap');

/* Main Container */
.bsb-simple-booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Roboto Flex', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2c2c;
    position: relative;
}

/* Header */
.bsb-simple-header {
    text-align: center;
    padding: 60px 40px 40px;
    background: linear-gradient(135deg, #f8f6f3 0%, #f1ede8 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bsb-simple-header h2 {
    font-family: 'PT Mono', monospace;
    font-size: 28px;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bsb-simple-header p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Form Wrapper */
.bsb-simple-form-wrapper {
    padding: 50px 40px;
    background: #ffffff;
}

/* Progress Bar */
.bsb-simple-progress {
    margin-bottom: 50px;
}

.bsb-simple-progress-bar {
    width: 100%;
    height: 2px;
    background: #e8e8e8;
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bsb-simple-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b7355 0%, #a68b5b 100%);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.bsb-simple-step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bsb-simple-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: all 0.3s ease;
}

.bsb-simple-step-dot.active {
    background: #8b7355;
    transform: scale(1.2);
}

/* Step Content */
.bsb-simple-step-content h3 {
    font-family: 'PT Mono', monospace;
    font-size: 20px;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0 0 40px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Service Category Tabs */
.bsb-simple-service-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.bsb-simple-tab-button {
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    bottom: -1px;
}

.bsb-simple-tab-button:hover {
    color: #8b7355;
    background: rgba(139, 115, 85, 0.03);
}

.bsb-simple-tab-button.bsb-simple-tab-active {
    color: #2c2c2c;
    border-bottom-color: #8b7355;
    font-weight: 400;
}

.bsb-simple-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease;
}

.bsb-simple-tab-content.bsb-simple-tab-active {
    display: block;
}

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

/* Service Cards */
.bsb-simple-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bsb-simple-service-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bsb-simple-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.bsb-simple-service-card:hover {
    border-color: #8b7355;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.1);
}

.bsb-simple-service-card:hover::before {
    background: linear-gradient(90deg, #8b7355 0%, #a68b5b 100%);
}

.bsb-simple-service-card.selected {
    border-color: #8b7355;
    background: #fafaf9;
}

.bsb-simple-service-card.selected::before {
    background: linear-gradient(90deg, #8b7355 0%, #a68b5b 100%);
}

.bsb-simple-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bsb-simple-service-header h4 {
    font-family: 'PT Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex: 1;
}

.bsb-simple-service-price {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #8b7355;
    margin-left: 20px;
}

.bsb-simple-service-desc {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
    font-weight: 300;
}

.bsb-simple-service-meta {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selected Service Display */
.bsb-simple-selected-service {
    background: #fafaf9;
    border: 1px solid #e8e8e8;
    padding: 20px;
    margin-bottom: 40px;
    text-align: center;
}

/* Date & Time Selection */
.bsb-simple-datetime {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.bsb-simple-date-section,
.bsb-simple-time-section {
    background: #fafaf9;
    padding: 30px;
    border: 1px solid #e8e8e8;
}

.bsb-simple-date-section label,
.bsb-simple-time-section label {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: #2c2c2c;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Date Picker Styling */
#bsb-simple-date-picker .ui-datepicker {
    width: 100%;
    border: none;
    font-family: 'Roboto Flex', sans-serif;
    background: transparent;
}

#bsb-simple-date-picker .ui-datepicker-header {
    background: transparent;
    border: none;
    color: #2c2c2c;
    padding: 10px 0 20px;
    text-align: center;
}

#bsb-simple-date-picker .ui-datepicker-title {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#bsb-simple-date-picker .ui-datepicker-calendar th {
    font-family: 'PT Mono', monospace;
    font-size: 11px;
    color: #666;
    font-weight: 400;
    padding: 10px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#bsb-simple-date-picker .ui-datepicker-calendar td {
    padding: 2px;
}

#bsb-simple-date-picker .ui-datepicker-calendar td a {
    font-family: 'Roboto Flex', sans-serif;
    background: transparent;
    color: #2c2c2c;
    border: 1px solid transparent;
    border-radius: 0;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    display: block;
    margin: 0 auto;
    font-size: 14px;
    transition: all 0.2s ease;
}

#bsb-simple-date-picker .ui-datepicker-calendar td a:hover {
    background: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

#bsb-simple-date-picker .ui-datepicker-calendar td a.ui-state-active {
    background: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

/* Time Slots */
#bsb-simple-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.bsb-simple-time-slot {
    font-family: 'PT Mono', monospace;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #2c2c2c;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bsb-simple-time-slot:hover {
    background: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

.bsb-simple-time-slot.selected {
    background: #8b7355;
    color: #ffffff;
    border-color: #8b7355;
}

.bsb-simple-select-date {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    font-family: 'Roboto Flex', sans-serif;
}

/* Booking Summary */
.bsb-simple-booking-summary {
    background: #fafaf9;
    border: 1px solid #e8e8e8;
    padding: 25px;
    margin-bottom: 40px;
}

.bsb-simple-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.bsb-simple-summary-item:last-child {
    border-bottom: none;
}

.bsb-simple-summary-label {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsb-simple-summary-value {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    font-weight: 500;
}

/* Form Fields */
.bsb-simple-form-fields {
    margin-bottom: 30px;
}

.bsb-simple-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bsb-simple-field {
    margin-bottom: 20px;
}

.bsb-simple-field input,
.bsb-simple-field textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #2c2c2c;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bsb-simple-field input::placeholder,
.bsb-simple-field textarea::placeholder {
    color: #999;
    font-weight: 300;
}

.bsb-simple-field input:focus,
.bsb-simple-field textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

/* Final Summary */
.bsb-simple-final-summary {
    margin-bottom: 40px;
}

.bsb-simple-summary-section {
    background: #fafaf9;
    border: 1px solid #e8e8e8;
    padding: 25px;
    margin-bottom: 20px;
}

.bsb-simple-summary-section h4 {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: #2c2c2c;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.bsb-simple-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.bsb-simple-price-total {
    background: #8b7355;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bsb-simple-total-label {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsb-simple-total-price {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

/* Payment Options */
.bsb-simple-payment-options {
    background: #fafaf9;
    border: 1px solid #e8e8e8;
    padding: 25px;
    margin-bottom: 30px;
}

.bsb-simple-payment-options h4 {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: #2c2c2c;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.bsb-simple-payment-choice {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bsb-simple-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #2c2c2c;
}

.bsb-simple-radio-label input[type="radio"] {
    display: none;
}

.bsb-simple-radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.bsb-simple-radio-label input[type="radio"]:checked + .bsb-simple-radio-custom {
    border-color: #8b7355;
}

.bsb-simple-radio-label input[type="radio"]:checked + .bsb-simple-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #8b7355;
    border-radius: 50%;
}

/* Cancellation Policy */
.bsb-simple-cancellation-policy {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bsb-simple-policy-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bsb-simple-policy-text {
    font-size: 13px;
    line-height: 1.6;
    color: #5d4037;
    font-family: 'PT Mono', monospace;
}

.bsb-simple-policy-text strong {
    color: #f57c00;
    display: block;
    margin-bottom: 4px;
}

/* Navigation Buttons */
.bsb-simple-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.bsb-simple-btn {
    font-family: 'PT Mono', monospace;
    padding: 15px 30px;
    border: none;
    border-radius: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.bsb-simple-btn-primary {
    background: #8b7355;
    color: #ffffff;
}

.bsb-simple-btn-primary:hover:not(:disabled) {
    background: #7a6249;
    transform: translateY(-1px);
}

.bsb-simple-btn-primary:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.bsb-simple-btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #e8e8e8;
}

.bsb-simple-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

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

.bsb-simple-success-icon {
    width: 60px;
    height: 60px;
    background: #8b7355;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 30px;
}

.bsb-simple-success h3 {
    font-family: 'PT Mono', monospace;
    font-size: 20px;
    color: #2c2c2c;
    margin: 0 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bsb-simple-success p {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px;
    font-weight: 300;
}

.bsb-simple-booking-ref {
    background: #fafaf9;
    border: 1px solid #e8e8e8;
    padding: 20px;
    display: inline-block;
}

.bsb-simple-booking-ref span {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.bsb-simple-booking-ref strong {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    color: #8b7355;
    font-weight: 600;
}

/* Loading Overlay */
.bsb-simple-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bsb-simple-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #e8e8e8;
    border-top: 2px solid #8b7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bsb-simple-form-wrapper {
        padding: 30px 20px;
    }
    
    .bsb-simple-header {
        padding: 40px 20px 30px;
    }
    
    .bsb-simple-header h2 {
        font-size: 22px;
    }
    
    .bsb-simple-services {
        grid-template-columns: 1fr;
    }
    
    .bsb-simple-datetime {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bsb-simple-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .bsb-simple-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .bsb-simple-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .bsb-simple-btn {
        width: 100%;
    }
}

/* Hide original steps */
.bsb-simple-step {
    display: none;
}

.bsb-simple-step.active {
    display: block;
}
