/* Ontario Driver — VIN Decoder UI */

.od-vin-wrap {
    background: #F0F7FF;
    border: 1px solid #C5DCFA;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.od-vin-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A2B4A;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.od-vin-wrap .od-vin-sub {
    font-size: 12px;
    color: #5A6B82;
    font-weight: 400;
    margin-left: 4px;
}

.od-vin-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.od-vin-input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #B5CFED;
    border-radius: 8px;
    font-size: 15px;
    font-family: "SF Mono", "Fira Code", monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1A2B4A;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.od-vin-input:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.od-vin-input.od-error {
    border-color: #D32F2F;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.od-vin-btn {
    height: 44px;
    padding: 0 20px;
    background: #1976D2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
}

.od-vin-btn:hover { background: #1565C0; }
.od-vin-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.od-vin-btn .od-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: od-spin 0.7s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes od-spin { to { transform: rotate(360deg); } }

.od-vin-message {
    margin-top: 10px;
    font-size: 13px;
    border-radius: 6px;
    padding: 8px 12px;
    display: none;
}

.od-vin-message.od-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
    display: block;
}

.od-vin-message.od-error-msg {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
    display: block;
}

.od-vin-message strong { font-weight: 600; }

.od-vin-char-count {
    font-size: 11px;
    color: #8A9BB0;
    margin-top: 5px;
    text-align: right;
}

.od-vin-char-count.od-complete { color: #2E7D32; font-weight: 600; }
