/* =================================== */
/* 1. GLOBAL & FORMS PAGE STYLES       */
/* =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9; /* Default light background */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make main content area grow */
.form-cards-container,
.page-content {
    flex-grow: 1;
}

/* Header Section */
header {
    background-color: #00bfae;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 700;
}

/* Navigation Bar */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul.menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    display: block;
}

nav ul li a:hover {
    background-color: #3498db;
    border-radius: 5px;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.hero h2 {
    font-size: 36px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-top: 20px;
}

/* Form Cards Section */
.form-cards-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 20px;
}

.form-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 30%;
    text-align: center;
    padding: 20px;
    padding-top: 50px;
    transition: transform 0.3s ease;
    position: relative;
}

.serial-no {
    background-color: #00bfae;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 18px;
}

.form-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ... (other .form-card styles like h3, p, .btn) ... */

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 5px;
    display: inline-block;
}

.btn:hover {
    background-color: #2980b9;
}

/* Pagination Links */
.pagination {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.pagination .page-active {
    background-color: #00bfae;
    cursor: default;
}

/* No Results Message */
.no-results-message {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #777;
    padding: 50px;
}

/* Footer Section */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto; /* Pushes footer to bottom */
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .form-card {
        width: 100%;
    }
    header h1, .hero h2 {
        font-size: 28px;
    }
    .nav-container {
        justify-content: space-between;
    }
    nav ul.menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
        background-color: #2c3e50;
    }
    nav ul.menu.active {
        display: flex;
    }
    nav ul.menu li {
        text-align: center;
        margin: 10px 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}

/* =================================== */
/* 2. PROFESSIONAL LOGIN PAGE STYLES   */
/* =================================== */

/* This targets the <body> tag when $body_class = 'login-body' */
body.login-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6; /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Hide the main header and nav on the login page */
.login-body header,
.login-body nav {
    display: none;
}

/* Make footer simple on login page */
.login-body footer {
    background: none;
    color: #777;
    padding-top: 0;
}

.login-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.login-card h2 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    text-align: center;
}

.login-card .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group .fas {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
}

.form-control-login {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control-login:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.submit-btn-login {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn-login:hover {
    background-color: #0069d9;
}

.error-message {
    color: #D8000C;
    font-size: 0.9em;
    margin-top: 5px;
}

.general-error-message,
.login-card .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
}

.form-footer {
    margin-top: 25px;
    font-size: 15px;
    color: #555;
    text-align: center;
}

.form-footer p {
    margin: 0;
    font-size: 15px;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* =================================== */
/* 3. CONTACT US PAGE STYLES           */
/* =================================== */

/* This uses $body_class = 'page-content-body' from contact.php */
body.page-content-body {
    background-color: #f4f7f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-content {
    padding: 40px 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

#contact-us {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#contact-us h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5em;
    color: #333;
}

#contact-us .page-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit-btn:hover {
    background-color: #0056b3;
}

.form-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.form-group input.has-error,
.form-group textarea.has-error {
    border-color: #D8000C;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    #contact-us {
        padding: 20px;
    }
    #contact-us h2 {
        font-size: 2em;
    }
}