/* ============================================================
 * DBMC WIDGET STYLES - IMPROVED APPEARANCE
 * ============================================================
 * This file contains enhanced widget styling with:
 * - Rounded corners (8-10px vs 4-6px)
 * - Softer shadows for visual depth
 * - Increased padding and spacing
 * - Softer border colors
 * 
 * For original styling, use widget-styles.css instead.
 * ============================================================ */

/* DBMC Widget Container - Enhanced */
.dbmc-widget {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f9f9f9;
    border-radius: 15px; /* More rounded */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* Enhanced shadow */
}

.dbmc-widget h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.dbmc-widget p {
    color: #666;
    margin-bottom: 20px;
}

.dbmc-error {
    background: #f44336;
    color: white;
    padding: 12px;
    border-radius: 10px; /* More rounded */
    margin-bottom: 20px;
}

/* Form Groups - Spacing */
.dbmc-form-group {
    margin-bottom: 20px;
}

/* Form Sections - Enhanced with shadow and rounded corners */
.dbmc-form-section {
    background: #fafafa;
    padding: 15px;
    border-radius: 12px; /* More rounded */
    border: 1px solid #e8e8e8; /* Softened from #e5e5e5 */
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06); /* Added subtle shadow */
}

.dbmc-form-section .dbmc-form-group:last-child {
    margin-bottom: 0;
}

.dbmc-form-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

.dbmc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dbmc-step-header h2 {
    margin: 0;
}

.dbmc-step-indicators {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.dbmc-step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dbmc-step-indicator.active {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.dbmc-step-indicator.completed {
    background: #5cb85c;
    color: white;
}

@media (max-width: 600px) {
    .dbmc-step-header {
        margin-bottom: 10px;
    }
    
    .dbmc-step-indicators {
        gap: 8px;
    }
    
    .dbmc-step-indicator {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

.dbmc-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.dbmc-form-row .dbmc-form-group {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .dbmc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dbmc-form-row .dbmc-form-group {
        margin-bottom: 15px;
    }
}

.dbmc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

/* Radio Group - Spacing */
.dbmc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

/* Radio Labels - More rounded corners */
.dbmc-radio-label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* More rounded */
    transition: all 0.2s ease;
    line-height: 1;
}

.dbmc-radio-label:hover {
    background: #f5f5f5;
    border-color: #428bca;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Added subtle hover shadow */
}

.dbmc-radio-label input[type="radio"] {
    margin-right: 8px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Checkbox Grid - Spacing */
.dbmc-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

/* Checkbox Labels - More rounded corners */
.dbmc-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
    padding: 6px;
    border-radius: 8px; /* More rounded */
    transition: background 0.2s ease;
    line-height: 1;
}

.dbmc-checkbox-label:hover {
    background: #f5f5f5;
}

.dbmc-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Input Fields - More rounded corners */
.dbmc-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px; /* More rounded */
    font-size: 14px;
    box-sizing: border-box;
}

.dbmc-input:focus {
    outline: none;
    border-color: #428bca;
    box-shadow: 0 0 0 3px rgba(66, 139, 202, 0.1); /* Added focus glow */
}

.dbmc-input-large {
    font-size: 18px;
    padding: 12px;
    text-transform: uppercase;
}

/* UK Number Plate Styling */
.dbmc-registration-plate-container {
    text-align: center;
    margin-bottom: 20px;
}

.dbmc-plate-label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.dbmc-registration-plate {
    width: 270px;
    height: 70px;
    background: #FFD700;
    border: 3px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    overflow: hidden;
}

.dbmc-gb-badge {
    width: 50px;
    height: 100%;
    background: #003399;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px 0 0 3px;
    flex-shrink: 0;
}

.dbmc-plate-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    padding: 0 15px;
    text-align: left;
    letter-spacing: 1px;
    outline: none;
}

.dbmc-plate-input::placeholder {
    color: rgba(0,0,0,0.3);
    font-weight: bold;
}

.dbmc-plate-input:focus {
    outline: 2px solid #428bca;
    outline-offset: 2px;
}

/* Remove number input spinner */
.dbmc-plate-input::-webkit-outer-spin-button,
.dbmc-plate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dbmc-plate-input[type=number] {
    -moz-appearance: textfield;
}

/* Responsive number plate */
@media (max-width: 600px) {
    .dbmc-registration-plate {
        width: 220px;
        height: 60px;
    }
    
    .dbmc-gb-badge {
        width: 40px;
        font-size: 12px;
    }
    
    .dbmc-plate-input {
        font-size: 24px;
        padding: 0 10px;
        letter-spacing: 1px;
    }
}

/* Buttons - More rounded corners */
.dbmc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px; /* More rounded */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbmc-btn-primary {
    background: #428bca;
    color: white;
}

.dbmc-btn-primary:hover {
    background: #357abd;
    box-shadow: 0 2px 6px rgba(66, 139, 202, 0.3); /* Added hover shadow */
}

.dbmc-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.dbmc-btn-secondary:hover {
    background: #e0e0e0;
}

.dbmc-btn-success {
    background: #5cb85c;
    color: white;
}

.dbmc-btn-success:hover {
    background: #4cae4c;
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.3); /* Added hover shadow */
}

.dbmc-btn-large {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.dbmc-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dbmc-button-group .dbmc-btn {
    flex: 1;
}

.dbmc-text-small {
    font-size: 12px;
    color: #999;
}

/* Vehicle Summary Styles - Enhanced */
.dbmc-vehicle-summary {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px; /* More rounded */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Added subtle shadow */
}

.dbmc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dbmc-summary-row:last-child {
    border-bottom: none;
}

.dbmc-summary-label {
    font-weight: bold;
    color: #666;
}

.dbmc-summary-value {
    color: #333;
}

/* Image Upload Styles - Enhanced */
.dbmc-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 12px; /* More rounded */
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbmc-drop-zone:hover,
.dbmc-drag-over {
    border-color: #428bca;
    background: #f0f8ff;
}

.dbmc-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.dbmc-image-preview {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px; /* More rounded */
    overflow: hidden;
}

.dbmc-image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.dbmc-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.dbmc-progress-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dbmc-progress-fill {
    height: 100%;
    background: #5cb85c;
    transition: width 0.3s ease;
}

/* Success Screen */
.dbmc-step-success {
    text-align: center;
}

.dbmc-success-icon {
    font-size: 64px;
    color: #5cb85c;
    margin-bottom: 20px;
}

.dbmc-success-details {
    background: white;
    padding: 20px;
    border-radius: 12px; /* More rounded */
    margin-top: 20px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Added subtle shadow */
}

/* Responsive */
@media (max-width: 600px) {
    .dbmc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .dbmc-widget {
        padding: 15px;
    }
}
