/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    flex-grow: 1;
}

/* Header */
header {
    background: linear-gradient(135deg, #006837, #004d28);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: #004d28 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Forms */
form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="date"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #006837;
    box-shadow: 0 0 8px rgba(0, 104, 55, 0.2);
    outline: none;
}

form input[type="submit"],
.btn-custom,
.btn-cancel {
    width: 100%;
    padding: 12px;
    border: none;
    background: #006837;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

form input[type="submit"]:hover,
.btn-custom:hover {
    background: #004d28;
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #6c757d;
    margin-top: 10px;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

/* Links */
a {
    color: #006837;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004d28;
    text-decoration: underline;
}

/* Headings */
h2 {
    color: #006837;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Alert Box */
.alert {
    padding: 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.closebtn {
    color: #721c24;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.closebtn:hover {
    color: #000;
}

/* O-Level Form Specifics */
.olevel-form .sitting {
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
}

.olevel-form .subject-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.olevel-form .subject-group select {
    flex: 1;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 25px;
    background: linear-gradient(135deg, #28a745, #218838);
    text-align: center;
    line-height: 25px;
    color: white;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem;
    }

    header {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    form input[type="submit"],
    .btn-custom,
    .btn-cancel {
        padding: 10px;
        font-size: 0.9rem;
    }
}
