/* Vehicle Recall Checker Styles */

.vrc-container {
    background-color: #000;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.vrc-container * {
    box-sizing: border-box;
}

/* Header */
.vrc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.vrc-header h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.vrc-warning-icon {
    color: #c41230;
    font-size: 36px;
    line-height: 1;
}

/* Content Layout */
.vrc-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* License Plate Section */
.vrc-plate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vrc-license-plate {
    width: 220px;
    height: 120px;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 3px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    position: relative;
}

.vrc-plate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vrc-plate-dot {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
}

.vrc-plate-state-display {
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vrc-plate-input {
    width: 100%;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a237e;
    background: transparent;
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.vrc-plate-input::placeholder {
    color: #999;
}

.vrc-plate-bottom {
    width: 60%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

.vrc-plate-label {
    color: #fff;
    font-size: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vrc-info-icon {
    color: #888;
    cursor: help;
    font-size: 14px;
}

.vrc-state-select-wrapper {
    margin-top: 15px;
    position: relative;
}

.vrc-state-select {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    min-width: 180px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.vrc-state-select:focus {
    outline: none;
    border-color: #c41230;
}

/* Form Section */
.vrc-form-section {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.vrc-priority-text {
    text-align: center;
    margin-bottom: 20px;
}

.vrc-priority-text h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.vrc-error-message {
    color: #c41230;
    font-size: 14px;
    margin: 0;
    min-height: 20px;
}

.vrc-form-fields {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
}

.vrc-field-row {
    width: 100%;
}

.vrc-field-row-double {
    display: flex;
    gap: 15px;
}

.vrc-field-wrapper {
    flex: 1;
    position: relative;
}

.vrc-field-row-double .vrc-input:not(.vrc-field-wrapper .vrc-input) {
    flex: 1;
}

.vrc-input {
    width: 100%;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
}

.vrc-input:focus {
    outline: none;
    border-color: #c41230;
}

.vrc-input.vrc-input-error {
    border-color: #c41230;
}

.vrc-input::placeholder {
    color: #999;
}

.vrc-field-error {
    display: none;
    color: #c41230;
    font-size: 12px;
    margin-top: 5px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.vrc-field-wrapper.has-error .vrc-field-error {
    display: block;
}

.vrc-submit-btn {
    width: 100%;
    background-color: #c41230;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.vrc-submit-btn:hover {
    background-color: #a00f28;
}

.vrc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vrc-disclaimer {
    color: #888;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    margin-top: 20px;
}

.vrc-terms-link {
    color: #888;
    text-decoration: underline;
}

.vrc-terms-link:hover {
    color: #fff;
}

/* Modal Styles */
.vrc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.vrc-modal.active {
    display: block;
}

.vrc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.vrc-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.vrc-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 10px;
    transition: color 0.2s;
}

.vrc-modal-close:hover {
    color: #c41230;
}

.vrc-modal-body {
    width: 100%;
    max-width: 900px;
}

.vrc-modal-title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

/* Recalls List Container */
.vrc-recalls-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #c41230 #222;
}

.vrc-recalls-list::-webkit-scrollbar {
    width: 8px;
}

.vrc-recalls-list::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.vrc-recalls-list::-webkit-scrollbar-thumb {
    background: #c41230;
    border-radius: 4px;
}

.vrc-recalls-list::-webkit-scrollbar-thumb:hover {
    background: #a00f28;
}

/* Recall Item */
.vrc-recall-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.vrc-recall-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Recall Info Grid */
.vrc-recall-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.vrc-recall-info-item {
    padding: 20px;
    text-align: center;
    border-right: 1px solid #444;
}

.vrc-recall-info-item:last-child {
    border-right: none;
}

.vrc-recall-info-item.vrc-recall-info-item-full {
    grid-column: 1 / -1;
    border-right: none;
}

.vrc-recall-info-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.vrc-recall-info-value {
    color: #ccc;
    font-size: 14px;
}

/* Recall Description */
.vrc-recall-description-section {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    padding: 30px;
}

.vrc-section-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 15px 0;
}

.vrc-recall-description-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 25px 0;
}

.vrc-recall-description-section p:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.vrc-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vrc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #c41230;
    color: #fff;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 200px;
}

.vrc-action-btn:hover {
    background-color: #a00f28;
    color: #fff;
    text-decoration: none;
}

.vrc-action-icon {
    font-size: 16px;
}

/* Loading State */
.vrc-loading {
    position: relative;
    pointer-events: none;
}

.vrc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: vrc-spin 0.8s linear infinite;
}

@keyframes vrc-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .vrc-header h2 {
        font-size: 22px;
    }
    
    .vrc-warning-icon {
        font-size: 26px;
    }
    
    .vrc-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .vrc-form-section {
        width: 100%;
        min-width: unset;
    }
    
    .vrc-field-row-double {
        flex-direction: column;
        gap: 25px;
    }
    
    .vrc-recalls-list {
        max-height: 50vh;
    }
    
    .vrc-recall-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vrc-recall-info-item {
        border-bottom: 1px solid #444;
    }
    
    .vrc-recall-info-item:nth-child(2) {
        border-right: none;
    }
    
    .vrc-recall-info-item:nth-child(3),
    .vrc-recall-info-item:nth-child(4) {
        border-bottom: none;
    }
    
    .vrc-modal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .vrc-action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .vrc-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .vrc-modal-content {
        padding: 50px 15px;
    }
    
    .vrc-recall-description-section {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .vrc-container {
        padding: 30px 15px;
    }
    
    .vrc-header {
        flex-wrap: wrap;
    }
    
    .vrc-header h2 {
        font-size: 18px;
        width: 100%;
        order: 2;
    }
    
    .vrc-warning-icon {
        order: 1;
    }
    
    .vrc-warning-icon:last-child {
        display: none;
    }
    
    .vrc-license-plate {
        width: 180px;
        height: 100px;
    }
    
    .vrc-plate-input {
        font-size: 28px;
    }
    
    .vrc-priority-text h3 {
        font-size: 18px;
    }
    
    .vrc-recalls-list {
        max-height: 45vh;
        padding-right: 5px;
    }
    
    .vrc-recall-info-grid {
        grid-template-columns: 1fr;
    }
    
    .vrc-recall-info-item {
        border-right: none;
        border-bottom: 1px solid #444;
        padding: 15px;
    }
    
    .vrc-recall-info-item:last-child {
        border-bottom: none;
    }
    
    .vrc-recall-description-section {
        padding: 15px;
    }
    
    .vrc-recall-description-section p {
        font-size: 13px;
    }
    
    .vrc-modal-title {
        font-size: 20px;
    }
    
    .vrc-section-title {
        font-size: 16px;
    }
}
