/* Vehicle Registration Form Styles */

.vrm-lookup-field input {
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 10px;
}

#dvla-lookup-btn {
    margin: 15px 0;
    padding: 10px 20px;
    font-size: 14px;
}

#dvla-lookup-status {
    margin: 15px 0;
}

#dvla-lookup-status p {
    margin: 0;
    padding: 12px 15px;
    border-radius: 4px;
}

#dvla-lookup-status .status-success p {
    color: #155724;
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

#dvla-lookup-status .status-error p {
    color: #721c24;
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

#dvla-lookup-status .status-loading p {
    color: #004085;
    background-color: #cce5ff;
    border-left: 4px solid #0066cc;
}

/* Readonly field styling */
.dvla-auto-field input[readonly],
.dvla-auto-field select[readonly],
.dvla-auto-field textarea[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Manual override section */
.acf-field[data-name="manual_override"] {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.acf-field[data-name="manual_override"].visible {
    display: block;
}

/* Hidden fields */
.acf-field[data-name="dvla_raw_data"] {
    display: none !important;
}

/* My Vehicles List */
.cl-vehicle-list {
    margin: 20px 0;
}

.cl-vehicle-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.cl-vehicle-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.cl-vehicle-status {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
}

.cl-vehicle-status.active {
    background: #d4edda;
    color: #155724;
}

.cl-vehicle-status.sold {
    background: #f8d7da;
    color: #721c24;
}

.cl-vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cl-vehicle-detail {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 3px;
}

.cl-vehicle-detail-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.cl-vehicle-detail-value {
    font-size: 16px;
    font-weight: 500;
}

.cl-vehicle-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cl-vehicle-actions a {
    margin-right: 10px;
}

.cl-vehicles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cl-no-vehicles {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cl-form-intro {
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cl-form-intro p {
    margin: 5px 0;
}

.cl-success-message {
    padding: 20px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cl-success-message p {
    margin: 10px 0;
    color: #155724;
}

.cl-success-message strong {
    font-size: 18px;
}

.cl-error-message {
    padding: 20px;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cl-error-message p {
    margin: 10px 0;
    color: #721c24;
}

/* Vehicle Registration Form */

.acf-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.acf-form .acf-fields {
    border-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cl-vehicle-header,
    .cl-vehicles-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cl-vehicle-status {
        margin-top: 10px;
    }
    
    .cl-vehicle-details {
        grid-template-columns: 1fr;
    }
}
