/* =====================================================
   END OF TENANCY CLEANING STYLES
   Designed for shared student houses in Bristol
   ===================================================== */

/* Main Cleaning Card */
.cleaning-service-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    margin: 12px 0;
    border: 2px solid #10B981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    position: relative;
    overflow: hidden;
}

.cleaning-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981, #06D6A0, #10B981);
}

.dark-mode .cleaning-service-card {
    background: #1E293B;
    border-color: #10B981;
}

/* Header Section */
.cleaning-header {
    text-align: center;
    margin-bottom: 20px;
}

.cleaning-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.cleaning-title {
    font-size: 22px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 4px;
}

.cleaning-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.cleaning-tagline {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

/* Trust Badges */
.cleaning-trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #10B981;
}

.trust-badge i {
    font-size: 14px;
}

/* Services List */
.cleaning-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 12px;
}

.cleaning-service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

.cleaning-service-item i {
    color: #10B981;
    font-size: 12px;
}

/* House Configuration Form */
.cleaning-config-section {
    margin: 20px 0;
}

.cleaning-config-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.cleaning-config-title i {
    color: #10B981;
}

.cleaning-config-group {
    margin-bottom: 16px;
}

.cleaning-config-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.cleaning-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cleaning-option-btn {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}

.cleaning-option-btn:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.cleaning-option-btn.selected {
    border-color: #10B981;
    background: #10B981;
    color: white;
}

.dark-mode .cleaning-option-btn {
    border-color: #475569;
    background: #334155;
}

.dark-mode .cleaning-option-btn:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.2);
}

.dark-mode .cleaning-option-btn.selected {
    background: #10B981;
    color: white;
}

/* Toggle Switches */
.cleaning-toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

.cleaning-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.cleaning-toggle-label i {
    color: #10B981;
    font-size: 16px;
}

.cleaning-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.cleaning-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cleaning-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.cleaning-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cleaning-toggle input:checked + .cleaning-toggle-slider {
    background-color: #10B981;
}

.cleaning-toggle input:checked + .cleaning-toggle-slider:before {
    transform: translateX(24px);
}

/* Pricing Section */
.cleaning-price-section {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    text-align: center;
}

.cleaning-price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.cleaning-price-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cleaning-price-note {
    font-size: 12px;
    opacity: 0.8;
}

.cleaning-price-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-size: 13px;
}

.price-breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* Payment Options */
.cleaning-payment-options {
    margin: 20px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #10B981;
}

.payment-option.selected {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.05);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.payment-option.selected .payment-option-radio {
    border-color: #10B981;
    background: #10B981;
}

.payment-option.selected .payment-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.payment-option-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.payment-option-details p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.payment-option-badge {
    background: #10B981;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.dark-mode .payment-option {
    border-color: #475569;
}

.dark-mode .payment-option.selected {
    background: rgba(16, 185, 129, 0.1);
}

/* Features List */
.cleaning-features {
    margin: 20px 0;
}

.cleaning-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.cleaning-feature-icon {
    width: 32px;
    height: 32px;
    background: #10B981;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.cleaning-feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.cleaning-feature-text p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Book Button */
.cleaning-book-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cleaning-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cleaning-book-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Date/Time Picker */
.cleaning-datetime-section {
    margin: 20px 0;
}

.cleaning-date-input,
.cleaning-time-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.cleaning-date-input:focus,
.cleaning-time-input:focus {
    outline: none;
    border-color: #10B981;
}

.dark-mode .cleaning-date-input,
.dark-mode .cleaning-time-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

/* Address Input */
.cleaning-address-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    margin-bottom: 10px;
    transition: border-color 0.2s;
    resize: vertical;
    min-height: 80px;
}

.cleaning-address-input:focus {
    outline: none;
    border-color: #10B981;
}

.dark-mode .cleaning-address-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

/* Live Tracker Preview */
.cleaning-tracker-preview {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 214, 160, 0.1) 100%);
    border: 1px dashed #10B981;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.tracker-preview-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #10B981;
    margin-bottom: 8px;
}

.tracker-preview-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* Booking Confirmation */
.cleaning-confirmation {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 2px solid #10B981;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10B981 0%, #06D6A0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirmation-icon i {
    font-size: 32px;
    color: white;
}

.confirmation-title {
    font-size: 20px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 8px;
}

.confirmation-message {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.confirmation-details {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    padding: 16px;
    text-align: left;
    margin-bottom: 16px;
}

.confirmation-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.confirmation-detail-row:last-child {
    border-bottom: none;
}

.confirmation-detail-label {
    font-size: 13px;
    color: var(--text-light);
}

.confirmation-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* Contact Input */
.cleaning-contact-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    margin-bottom: 10px;
}

.cleaning-contact-input:focus {
    outline: none;
    border-color: #10B981;
}

.dark-mode .cleaning-contact-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

/* Safety Guarantee */
.cleaning-safety-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dark-mode .cleaning-safety-banner {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

.cleaning-safety-icon {
    font-size: 24px;
}

.cleaning-safety-text {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

.dark-mode .cleaning-safety-text {
    color: #fef3c7;
}

/* Responsive */
@media (max-width: 480px) {
    .cleaning-service-card {
        padding: 16px;
        margin: 8px 0;
    }
    
    .cleaning-services-grid {
        grid-template-columns: 1fr;
    }
    
    .cleaning-trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .cleaning-options {
        justify-content: center;
    }
    
    .cleaning-price-amount {
        font-size: 28px;
    }
}

/* Loading State */
.cleaning-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.cleaning-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: #10B981;
    border-radius: 50%;
    animation: cleaningSpin 1s linear infinite;
}

@keyframes cleaningSpin {
    to {
        transform: rotate(360deg);
    }
}

.cleaning-loading-text {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-light);
}