/* DVLA Lookup Tool Styles */

.cl-dvla-lookup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Lookup Form */
.cl-lookup-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.cl-lookup-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
}

.cl-lookup-intro {
    margin-bottom: 25px;
    color: #666;
}

.cl-lookup-intro p {
    margin: 0;
}

.cl-lookup-search {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cl-lookup-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

.cl-lookup-input:focus {
    outline: none;
    border-color: #28a745;
}

.cl-lookup-button {
    padding: 12px 30px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.cl-lookup-button:hover {
    background: #218838;
}

.cl-lookup-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cl-lookup-button-secondary {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.cl-lookup-button-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Status Messages */
.cl-lookup-status {
    margin-top: 15px;
}

.cl-lookup-status p {
    margin: 0;
    padding: 12px 20px;
    border-radius: 4px;
}

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

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

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

.cl-status-info p {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Results Display */
.cl-lookup-results {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cl-results-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #28a745;
}

.cl-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.cl-result-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cl-result-group h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #28a745;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cl-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.cl-result-item:last-child {
    border-bottom: none;
}

.cl-result-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.cl-result-value {
    font-weight: 600;
    color: #212529;
    text-align: right;
    font-size: 14px;
}

.cl-export-warning {
    color: #dc3545 !important;
    font-weight: 700;
}

.cl-lookup-actions {
    text-align: center;
    margin: 25px 0;
}

.cl-lookup-disclaimer {
    text-align: center;
    color: #6c757d;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cl-lookup-disclaimer p {
    margin: 0;
}

/* Login Required Message */
.cl-lookup-login-required {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.cl-lookup-login-required p {
    margin: 15px 0;
    font-size: 16px;
    color: #666;
}

.cl-lookup-login-required .button {
    display: inline-block;
    padding: 12px 30px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.cl-lookup-login-required .button:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cl-dvla-lookup-container {
        padding: 10px;
    }
    
    .cl-lookup-form,
    .cl-lookup-results {
        padding: 20px;
    }
    
    .cl-lookup-search {
        flex-direction: column;
    }
    
    .cl-lookup-button {
        width: 100%;
    }
    
    .cl-results-grid {
        grid-template-columns: 1fr;
    }
    
    .cl-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cl-result-value {
        text-align: left;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cl-lookup-title {
        font-size: 22px;
    }
    
    .cl-lookup-input {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .cl-results-title {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .cl-lookup-form,
    .cl-lookup-actions,
    .cl-lookup-button,
    .cl-lookup-button-secondary {
        display: none;
    }
    
    .cl-lookup-results {
        box-shadow: none;
        border: 1px solid #000;
    }
}
