* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

h1 {
    background: #d32f2f;
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    padding: 0 30px 30px;
    color: #666;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

select {
    padding: 14px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 40px 40px 30px;
}

button {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#checkBtn {
    background: #d32f2f;
    color: white;
}

#checkBtn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

#resetBtn {
    background: #555;
    color: white;
}

#resetBtn:hover {
    background: #333;
    transform: translateY(-2px);
}

.result-hidden {
    display: none;
}

#result {
    margin: 30px 40px;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.compatible {
    background: #e8f5e8;
    border: 2px solid #4caf50;
}

.incompatible {
    background: #ffebee;
    border: 2px solid #f44336;
}

#resultTitle {
    font-size: 2rem;
    margin-bottom: 15px;
}

#resultMessage {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 500;
}

#resultDetails {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info {
    padding: 20px 40px 40px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 1.8rem;
    }
}