/* WooCommerce Service Booking - Modern Styles */

/* Form Container */
.wcsb-booking-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 5px;
    box-sizing: border-box !important;
}


.wcsb-product-page-wrapper .wcsb-booking-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    margin: 20px 0;
    padding: 25px;
}

/* Form Header */
.wcsb-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
}

.wcsb-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.wcsb-form-subtitle {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
}

/* Form Groups */
.wcsb-form-group {
    margin-bottom: 20px;
}

.wcsb-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.wcsb-form-col-6 {
    flex: 1;
    min-width: 0;
}

/* Labels */
.wcsb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.wcsb-required {
    color: #e74c3c;
}

/* Input Fields */
.wcsb-input,
.wcsb-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.wcsb-input:focus,
.wcsb-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Button */
.wcsb-button {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wcsb-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wcsb-button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.wcsb-button:disabled {
    background: #2183CE;
    cursor: not-allowed;
    transform: none;
}

.wcsb-button-icon {
    font-size: 20px;
}

/* Price Display */
.wcsb-price-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.wcsb-price-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.wcsb-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

/* Messages */
.wcsb-availability-message {
    margin: 20px 0;
}

.wcsb-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: none;
    color: #00695c;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.wcsb-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: none;
    color: #c62828;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.wcsb-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: none;
    color: #2e7d32;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Rush Option */
.wcsb-rush-option {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: none;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.wcsb-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wcsb-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.wcsb-checkbox-label {
    font-weight: 600;
    color: #2c3e50;
}

.wcsb-rush-description {
    margin: 10px 0 0 30px;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .wcsb-booking-form {
        padding: 20px;
        margin: 20px 10px;
        border-radius: 12px;
        border: none !important;
        box-shadow: none !important;
    }
    
    .wcsb-product-page-wrapper .wcsb-booking-form {
        padding: 20px;
    }
    
    .wcsb-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .wcsb-form-title {
        font-size: 18px;
    }
    
    .wcsb-form-subtitle {
        font-size: 14px;
    }
    
    .wcsb-price-amount {
        font-size: 28px;
    }
    
    .wcsb-button {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .wcsb-input,
    .wcsb-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* iPhone specific fixes */
@media only screen 
    and (min-device-width: 375px) 
    and (max-device-width: 812px) 
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .wcsb-form-col-6 {
        flex-basis: 100%;
    }
    
    .wcsb-input,
    .wcsb-select {
        -webkit-appearance: none;
        appearance: none;
    }
}