﻿@charset "utf-8";

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
}

body {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) minmax(0, 1200px) minmax(20px, 1fr);
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.main-nav {
    grid-column: 1 / -1;
    background: white;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-link img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: #4361ee;
}

.nav-link.active {
    color: #4361ee;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4361ee;
}

.nav-button {
    background: #4361ee;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-button:hover {
    background: #3a56d4;
}

/* ===== MAIN CONTENT ===== */
main {
    grid-column: 2;
    width: 100%;
    padding: 30px 20px;
}

/* Add these to your existing CSS */
.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #2b2d42;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

.social-link {
    text-align: center;
    margin-top: 1rem;
}

.social-button {
    display: inline-block;
    background: #4361ee;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.social-button:hover {
    background: #3a56d4;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-bottom: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.2rem;
    color: #2b2d42;
    margin-bottom: 1rem;
}

.hero-features {
    margin: 20px 0;
}

.feature-item {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #2d3748;
}

.subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #4361ee;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #3a56d4;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 300px; /* NEW: Strict width limit */
    margin: 0 auto; /* NEW: Centering */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Changed from 8px */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain; /* NEW: Prevents stretching */
    display: block; /* NEW: Fixes spacing issues */
}
.hero-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ===== LOGIN FORM ===== */
.login-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    /*max-width: 400px; /* Added for better proportion */
    margin: 0 auto; /* NEW: Centering */
}

.login-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto; /* NEW: Centering */
}

.login-card th {
    text-align: center;
    padding-bottom: 1rem;
}

.login-card td {
    padding: 0.5rem 0;
    text-align: center; /* Centers content in cells */
}

.login-card input[type=text], .login-card input[type=password], .login-card input[type=submit] {
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    display: block; /* Changed to block for auto margins */
    margin: 0 auto; /* Centers inputs */
}

.login-card input[type=submit] {
    background: #4361ee;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 50%;
    font-size: 16px;
    transition: background 0.3s;
}

.login-card input[type=submit]:hover {
    background: #3a56d4;
}

.login-links {
    text-align: center;
    padding-top: 1rem;
}

.login-links a {
    color: #4361ee;
    text-decoration: none;
    font-size: 14px;
}

/* Styling for the new alert message */
.alert-message {
    background-color: #fff8e1; /* soft yellow background for attention */
    border: 1px solid #fbc02d; /* warm amber border */
    color: #795548; /* readable dark brown text */
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle depth */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alert-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.alert-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-error {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

/* Make the message text bold and slightly larger for emphasis */
.alert-message strong {
    font-weight: 600;
    font-size: 1.1em;
}

/* Force crisp rendering of Google button */
.g-signin2 > div {
    width: 150px !important;
    height: 40px !important;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    transform: translateZ(0);
}

/* If using dark mode */
.g-signin2 .abcRioButtonContentWrapper {
    border-radius: 4px !important;
    overflow: hidden !important;
}

.custom-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4285F4;
    color: white !important;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    width: 150px;
    height: 40px;
    box-sizing: border-box;
    transition: background 0.3s;
}
.custom-google-btn:hover {
    background: #3367D6;
}

/* ===== HELP SECTION STYLES ===== */
.help-content {
    max-width: 800px;
    margin: 0 auto;
}

.help-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.help-section h2 {
    color: #4361ee;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.help-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
}

.feature-card h3 {
    color: #2b2d42;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.step-image {
    width: 150px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.tip-box {
    background: #f0f7ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4361ee;
    margin: 1rem 0;
}

.step-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Register CSS */
.register-cta {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 0 auto 2rem;
    max-width: 600px;
}

blockquote {
    font-style: italic;
    position: relative;
    padding: 1rem 1rem 1rem 2rem;
    border-left: 3px solid #4361ee;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    margin: 2rem auto;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .register-cta {
        padding: 1.5rem;
    }
    
    blockquote {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .step-container {
        flex-direction: column;
    }
    
    .step-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        max-width: 100%;
    }


    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .testimonial-quote {
        font-size: 1.2rem;
    }
    
    .social-button {
        padding: 10px 20px;
    }
 
	/* NEW CODE (ADDED): */
	.hero-image {
	    max-width: 300px; /* Smaller on mobile */
	    order: -1;
	    margin-bottom: 2rem;
	}    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-link, 
    .nav-button {
        display: block;
        text-align: center;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

/* Add these styles to your main CSS file */
    .contact-content {
        padding: 0 20px;
    }
    
    /* MODAL STYLES - Add these */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        display: none; /* This hides the modal by default */
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-content {
        background-color: #fff;
        padding: 2rem;
        border-radius: 12px;
        width: 90%;
        max-width: 600px;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .modal-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #aaa;
        cursor: pointer;
    }
    
    @media (max-width: 768px) {
        .contact-grid {
            grid-template-columns: 1fr !important;
            gap: 2rem !important;
        }
        
        .faq-grid {
            grid-template-columns: 1fr !important;
        }
    }

/* ===== FOOTER STYLES ===== */
footer {
    grid-column: 1 / -1;
    background: #223;
    color: #ccc;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    margin-top: 1rem;
}