/* Global Variables */
:root {
    --primary-color: #2E3A59; /* Dark Blue */
    --secondary-color: #EC6E4C; /* Orange */
    --accent-color: #31A24C; /* Green */
    --light-background: #F8F9FA; /* Light Gray */
    --white: #FFFFFF;
    --text-color: #333; /* Dark Gray for text */
    --border-color: #E0E0E0; /* Light Gray Border */
    --shadow-light: rgba(0, 0, 0, 0.05); /* Light Shadow */
    --shadow-medium: rgba(0, 0, 0, 0.1); /* Medium Shadow */
    --error-color: #dc3545; /* Red for errors */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background-color: var(--light-background);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    padding: 20px; /* Add some padding around the content */
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.8em;
}

h1 { font-size: 3em; margin-bottom: 0.5em;}
p { margin-bottom: 1.5em; font-size: 1.1em; color: #555; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #288a40; /* Slightly darker accent on hover */
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    text-decoration: none; /* Remove underline on button links */
    margin: 10px; /* Space between buttons */
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none; /* Prevent underline on hover */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(236, 110, 76, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(236, 110, 76, 0.3);
    color: var(--white); /* Maintain white text color on hover */
}

.btn-outline {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 58, 89, 0.3);
    color: var(--white); /* Maintain white text color on hover */
}

/* Container for the main content */
.main-content-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 25px;
}
.logo img {
    max-width: 150px; /* Adjust logo size */
    height: auto;
}

.cta-buttons {
    margin-top: 30px;
}

/* Footer */
.footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #777;
}

/* Toast Messages */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000; /* Higher z-index */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadein 0.5s forwards, fadeout 0.5s forwards 2.5s;
    min-width: 250px;
    max-width: 350px;
    word-wrap: break-word;
}
.toast-success { background-color: var(--accent-color); }
.toast-error { background-color: var(--error-color); }
.toast-info { background-color: var(--primary-color); }

@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Slightly less transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Hidden by default */
}
.spinner {
    border: 6px solid var(--border-color); /* Thicker border */
    border-top: 6px solid var(--accent-color); /* Thicker accent */
    border-radius: 50%;
    width: 60px; /* Slightly larger */
    height: 60px; /* Slightly larger */
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    p { font-size: 1em; }
    .btn {
        padding: 10px 20px;
        font-size: 1em;
        margin: 8px;
    }
    .main-content-wrapper {
        padding: 30px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    .btn {
        width: 80%; /* Make buttons full width on small screens */
        margin: 5px auto;
        display: block;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}