/* ============================================= */
/* WCC Car Purchase Form Styles - Responsive */
/* ============================================= */

.wcc-car-purchase-form-container {
    width: 100%;
    /* Container styling handled by parent theme/template */
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.wcc-car-purchase-form-container h2 {
    /* Headers removed in HTML logic */
    display: none;
}

.wcc-car-purchase-form-container > p {
    /* Headers removed in HTML logic */
    display: none;
}

.wcc-car-purchase-form {
    width: 100%;
    margin: 0 auto;
}

/* Form Groups */
.wcc-form-group {
    margin-bottom: 0; /* Handled by grid gap */
    width: 100%;
    max-width: none; /* Allow full width for grid */
}

.wcc-form-group label {
    display: block;
    /* Styles handled by Tailwind classes in HTML */
}

/* Reset default input styles to let Tailwind take over */
.wcc-form-group input[type="text"],
.wcc-form-group input[type="email"],
.wcc-form-group input[type="tel"],
.wcc-form-group input[type="number"],
.wcc-form-group select,
.wcc-form-group textarea {
    box-sizing: border-box;
    /* Other styles handled by Tailwind classes */
}

/* Specific fix for asking price padding */
#asking_price {
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: left !important;
} 

/* Centered Kenteken Field - Uses wcc-kenteken-centered from wcc-core.css */
/* Only car-purchase specific overrides here */
.wcc-car-purchase-form .wcc-kenteken-centered {
    margin-bottom: 20px;
}

/* Styled License Plate Field - Uses .wcc-numberplate-frame from wcc-core.css */
/* Removed placeholder overrides - now uses global kenteken styles from wcc-core.css */

.wcc-form-group input:focus,
.wcc-form-group select:focus,
.wcc-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wcc-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.wcc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* ========== CONDITION SLIDER STYLING ========== */
.wcc-condition-slider-container {
    margin-top: 15px;
}

.wcc-condition-slider {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(to right, #ff4444 0%, #ff8800 25%, #ffdd00 50%, #88dd00 75%, #00cc00 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    margin: 15px 0;
}

.wcc-condition-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.wcc-condition-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.wcc-condition-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.wcc-condition-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.wcc-condition-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.wcc-condition-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.wcc-condition-label {
    text-align: center;
    font-weight: 500;
}

.wcc-condition-label small {
    display: block;
    font-weight: normal;
    color: #999;
    margin-top: 2px;
    font-size: 11px;
}

.wcc-condition-value {
    text-align: center;
    font-weight: 600;
    color: #333;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 18px;
    margin-top: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#car_condition_value {
    font-weight: 700;
    font-size: 32px;
    color: #4CAF50;
    transition: color 0.1s ease;
    font-family: 'Courier New', monospace;
    width: 50px;
    text-align: center;
}

/* File Upload Styles */
.wcc-file-upload-area {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.wcc-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px dashed #1976D2;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.wcc-upload-button:hover {
    background-color: #e3f2fd;
    border-color: #004F9E;
}

.wcc-upload-icon {
    font-size: 1.5em;
}

.wcc-upload-text {
    font-weight: 500;
    color: #1976D2;
    font-size: 0.95em;
}

.wcc-upload-info {
    margin-bottom: 10px;
}

.wcc-upload-info small {
    color: #666;
    font-size: 0.85em;
}

/* File Preview Styles */
.wcc-file-preview {
    margin-top: 12px;
    max-width: 100%;
}

.wcc-preview-header {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.wcc-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #f0f9ff;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: left;
}

.wcc-file-item.error {
    background-color: #fef2f2;
    color: #dc2626;
}

.wcc-warning {
    color: #f59e0b;
    background-color: #fef3c7;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 6px;
    font-size: 0.85em;
}

/* Submit Button */
.wcc-submit-btn {
    background: #007cba;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 20px;
    width: 100%;
}

.wcc-submit-btn:hover {
    background: #005a87;
}

.wcc-submit-btn:active {
    transform: scale(0.98);
}

.wcc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Response Messages */
.wcc-form-response {
    margin: 20px 0;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.wcc-form-response.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


.wcc-form-response.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.wcc-car-purchase-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Required Field Indicator */
.wcc-form-group label:after {
    content: "";
}

/* 
.wcc-form-group input:required + label:after,
.wcc-form-group label:has(+ input:required):after {
    content: " *";
    color: #d32f2f;
} */

/* RDW Data Display Section */
.wcc-rdw-data-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
}

.wcc-rdw-data-section h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.wcc-rdw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.wcc-rdw-item {
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
}

.wcc-rdw-item strong {
    display: block;
    color: #4CAF50;
    margin-bottom: 4px;
    font-weight: 600;
}

.wcc-rdw-item span {
    color: #333;
    font-weight: 500;
}

#wcc_rdw_status_message {
    font-size: 0.9em;
    margin: 8px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .wcc-rdw-grid {
        grid-template-columns: 1fr;
    }
}

/* GDPR Consent Checkbox Styles */
.wcc-gdpr-consent-group {
    margin: 15px auto;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-width: 500px;
}

.wcc-gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.4;
}

.wcc-gdpr-consent input[type="checkbox"] {
    margin-top: 1px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #4CAF50;
}

.wcc-consent-text {
    color: #666;
    font-size: 11px;
}

.wcc-consent-text a {
    color: #4CAF50;
    text-decoration: underline;
}

.wcc-consent-text a:hover {
    color: #388e3c;
}

.wcc-gdpr-consent input[type="checkbox"]:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* ============================================= */
/* New Form Styling Fixes (Tailwind Support)     */
/* ============================================= */

/* Required Asterisk for labels with wcc-req class */
.wcc-req::after {
    content: " *";
    color: #ef4444; /* Tailwind red-500 */
    font-weight: bold;
}

/* Range Input Fix - Ensure full width in containers */
input[type="range"].w-full {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Price Input Padding Fix - REMOVED (Conflicted with new layout) */

/* GDPR Consent Alignment Fixes */
.wcc-car-purchase-form .wcc-gdpr-consent-group label {
    display: flex !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.75rem !important;
}

.wcc-car-purchase-form .wcc-gdpr-consent-group input[type="checkbox"] {
    margin-top: 0.25rem !important; /* Align checkbox with top of text line */
    width: 1.25rem !important;
    height: 1.25rem !important;
    flex-shrink: 0 !important;
}

/* Condition Slider Container Width Override */
.wcc-condition-slider-container {
    width: 100%;
    max-width: 350px !important; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Force Slider Full Width of its container */
input[type="range"]#car_condition {
    width: 100% !important;
    display: block !important;
    max-width: none !important;
    box-sizing: border-box !important;
}
