.warranty-lookup {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.warranty-lookup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #82bf29, #82be2b, #88d01f);
}

.lookup-input {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.lookup-input::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(50px);
    z-index: -1;
}

#searchTypeSelect {
    height: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 1.2rem;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: "Jost", sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

#searchTypeSelect:hover {
    border-color: #4CAF50;
}

#searchTypeSelect:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

#searchValue {
    height: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 1.2rem;
    font-size: 15px;
    transition: all 0.3s ease;
}

#searchValue:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.warranty-result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.warranty-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.info-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(76, 175, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #82be2a, #45a049);
    opacity: 0.7;
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-label {
    color: #666;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.info-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.warranty-status {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.warranty-status.active {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4CAF50;
}

.warranty-status.expired {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
}

.status-icon {
    font-size: 2.5rem;
}

.warranty-status.active .status-icon {
    color: #4CAF50;
}

.warranty-status.expired .status-icon {
    color: #f44336;
}

.status-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.status-info p {
    margin: 0.5rem 0 0;
    color: #666;
}

#checkButton {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #82be2a 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#checkButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

#checkButton:hover::before {
    left: 100%;
}

#checkButton:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
}

#checkButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message-global {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e6 100%);
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message-global::before {
    content: '⚠️';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.no-result {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .lookup-input {
        grid-template-columns: 1fr;
    }
    
    .warranty-info-grid {
        grid-template-columns: 1fr;
    }
    
    .warranty-status {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
