/* Base Styles */
.cleaning-booking-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Form Header */
.cleaning-booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.cleaning-booking-form h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.cleaning-booking-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 3px;
}

/* Form Layout */
.cleaning-booking-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.cleaning-booking-form .form-group {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 25px;
    position: relative;
}

/* Labels */
.cleaning-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Input Fields */
.cleaning-booking-form input[type="text"],
.cleaning-booking-form input[type="email"],
.cleaning-booking-form input[type="tel"],
.cleaning-booking-form input[type="date"],
.cleaning-booking-form input[type="time"],
.cleaning-booking-form input[type="url"],
.cleaning-booking-form select,
.cleaning-booking-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cleaning-booking-form input[type="text"]:focus,
.cleaning-booking-form input[type="email"]:focus,
.cleaning-booking-form input[type="tel"]:focus,
.cleaning-booking-form input[type="date"]:focus,
.cleaning-booking-form input[type="time"]:focus,
.cleaning-booking-form input[type="url"]:focus,
.cleaning-booking-form select:focus,
.cleaning-booking-form textarea:focus {
    border-color: #4facfe;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
    outline: none;
}

/* Textarea Specific Styles */
.cleaning-booking-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select Dropdown Arrow */
.cleaning-booking-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Submit Button */
.cleaning-booking-form .form-submit {
    text-align: center;
    margin-top: 20px;
}

.cleaning-booking-form button.booking-submit {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 172, 254, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cleaning-booking-form button.booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 172, 254, 0.3);
}

.cleaning-booking-form button.booking-submit:active {
    transform: translateY(0);
}

.cleaning-booking-form button.booking-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cleaning-booking-form button.booking-submit:hover::after {
    opacity: 1;
}

/* Loading State */
.cleaning-booking-form button.booking-submit.loading {
    padding-right: 50px;
}

.cleaning-booking-form button.booking-submit.loading::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Response Messages */
#cbs-response-message {
    margin-top: 25px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#cbs-response-message .success-message {
    background: #f0fff4;
    color: #2f855a;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    display: inline-flex;
    align-items: center;
}

#cbs-response-message .success-message::before {
    content: '✓';
    margin-right: 10px;
    font-weight: bold;
}

#cbs-response-message .error-message {
    background: #fff5f5;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #f56565;
    display: inline-flex;
    align-items: center;
}

#cbs-response-message .error-message::before {
    content: '!';
    margin-right: 10px;
    font-weight: bold;
}

/* Required Field Indicator */
.cleaning-booking-form label.required::after {
    content: '*';
    color: #e53e3e;
    margin-left: 4px;
}

/* Date and Time Input Customization */
.cleaning-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.cleaning-booking-form input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cleaning-booking-form {
        padding: 25px 20px;
        margin: 20px auto;
    }
    
    .cleaning-booking-form .form-group {
        min-width: 100%;
        margin: 0 0 20px 0;
    }
    
    .cleaning-booking-form .form-row {
        margin: 0;
    }
    
    .cleaning-booking-form h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

/* Floating Label Effect (Optional) */
.cleaning-booking-form .float-label {
    position: relative;
}

.cleaning-booking-form .float-label label {
    position: absolute;
    top: 14px;
    left: 16px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 5px;
    border-radius: 4px;
}

.cleaning-booking-form .float-label input:focus + label,
.cleaning-booking-form .float-label input:not(:placeholder-shown) + label,
.cleaning-booking-form .float-label textarea:focus + label,
.cleaning-booking-form .float-label textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #4facfe;
    background: white;
}

.cleaning-booking-form .float-label input,
.cleaning-booking-form .float-label textarea {
    padding-top: 18px;
}