.cert-lookup-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.cert-lookup-form {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cert-lookup-form h2 {
    margin-top: 0;
    color: #1a3a52;
    font-size: 24px;
    margin-bottom: 10px;
}

.cert-lookup-form > p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.cert-lookup-btn {
    width: 100%;
    padding: 14px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cert-lookup-btn:hover {
    background: #357abd;
}

.cert-lookup-btn:active {
    transform: translateY(1px);
}

#cert-lookup-loading {
    text-align: center;
    padding: 30px;
    color: #4a90e2;
    font-size: 16px;
}

#cert-lookup-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #4a90e2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

#cert-lookup-result {
    margin-top: 25px;
}

.cert-result-success {
    background: #f0f9ff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    padding: 25px;
    animation: fadeIn 0.5s;
}

.cert-result-success h3 {
    margin-top: 0;
    color: #1a3a52;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
}

.cert-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ed;
}

.cert-info-row:last-child {
    border-bottom: none;
}

.cert-info-label {
    font-weight: 600;
    color: #555;
    width: 250px;
    flex-shrink: 0;
}

.cert-info-value {
    color: #333;
    flex: 1;
}

.cert-info-value.status-yes {
    color: #059669;
    font-weight: 600;
}

.cert-info-value.status-no {
    color: #dc2626;
    font-weight: 600;
}

.cert-info-value.status-pending {
    color: #d97706;
    font-weight: 600;
}

.cert-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    color: #991b1b;
    animation: fadeIn 0.5s;
}

.cert-result-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .cert-lookup-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .cert-lookup-form {
        padding: 20px;
    }
    
    .cert-info-row {
        flex-direction: column;
    }
    
    .cert-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
}