* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-wrapper {
    width: 100%;
    max-width: 500px;
}

.card {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.logo {
    width: 80px;
    margin-bottom: 15px;
}

.school-name {
    font-size: 24px;
    font-weight: 600;
    color: #005792;
    margin-bottom: 5px;
}

.location {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.exam-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #0073e6;
}

.result-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: left;
}

.result-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #cce4f7;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
}

.result-form button,
.back-button {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.result-form button:hover,
.back-button:hover {
    background-color: #005bb5;
}

.result-card {
    padding-top: 25px;
}

.result-box {
    background-color: #f0f9f5;
    border: 2px solid #d6eadf;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 16px;
    text-align: left;
}

.result-box p {
    margin-bottom: 10px;
}

.passed {
    color: green;
    font-weight: 600;
}

.failed {
    color: red;
    font-weight: 600;
}

.not-found {
    color: #e63946;
    font-size: 16px;
    margin-top: 20px;
}

/* 🔁 Responsive Design */
@media screen and (max-width: 500px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .main-wrapper {
        max-width: 100%;
    }

    .card {
        margin-top: 60px;
        padding: 20px 15px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .logo {
        width: 60px;
    }

    .school-name {
        font-size: 20px;
    }

    .location {
        font-size: 14px;
    }

    .exam-title {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .result-form label {
        font-size: 14px;
    }

    .result-form input[type="text"] {
        font-size: 15px;
        padding: 8px;
    }

    .result-form button {
        font-size: 15px;
        padding: 9px 16px;
    }
}
.result-form select {
    width: 100%;
    padding: 10px;
    border: 2px solid #cce4f7;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    background-color: #fff;
    color: #333;
    appearance: none;
}
.result-form select:invalid {
    color: #888; /* Gray text for default option */
}
.result-form button:hover {
    background-color: #0056b3;
}