/* Define the color palette as CSS variables for easy reuse */
:root {
    --envirodex-blue: #5784BD;
    --envirodex-green: #57BD84;
    --text-color: #000000;
    --card-background: #ffffff;
    --font-family: 'Roboto', sans-serif;
}

/* Basic Reset and Body Styling */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    color: var(--text-color);
    overflow-x: hidden; /* Prevents horizontal scroll */
}

body {
    /* The requested background gradient */
    background: linear-gradient(135deg, var(--envirodex-blue), var(--envirodex-green));
    background-size: 200% 200%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header and Logo */
.site-header {
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end; /* Aligns logo to the right */
}

.logo {
    height: 60px; /* Adjust size as needed */
    width: auto;
}

/* Main Content Card */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.content-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    text-align: center;
    /* Fade-in and slide-up animation */
    animation: fadeInSlideUp 1s ease-out forwards;
    opacity: 0;
}

/* Taglines */
.taglines {
    margin-bottom: 30px;
}

.problem {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    font-style: italic;
}

.solution {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--envirodex-blue);
}

/* Form Styling */
.form-title {
    color: var(--envirodex-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 30px;
}

/* Apply consistent styling to all text inputs */
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 80%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--envirodex-blue);
    box-shadow: 0 0 5px rgba(87, 132, 189, 0.5);
}

/* Checkbox Layout and Styling */
.checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.checkbox-group label {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--envirodex-blue);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: var(--envirodex-green);
    display: none; /* Hide default checkbox */
}

/* Custom checkbox styling */
.checkbox-group label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--envirodex-blue);
    border-radius: 4px;
    margin-right: 12px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    background-color: var(--envirodex-green);
    border-color: var(--envirodex-green);
    content: '✔';
    color: white;
    text-align: center;
    line-height: 18px;
    font-size: 14px;
}

.role-description {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
    padding-left: 32px; /* Align with label text */
}

/* Submit Button */
.submit-btn {
    background-color: var(--envirodex-green);
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Pulsing animation */
    animation: pulse 2s infinite;
}

.submit-btn:hover {
    background-color: #4caf75; /* A slightly darker green for hover */
    transform: scale(1.05);
    animation-play-state: paused; /* Pause animation on hover */
}
.form-group {
    margin-bottom: 30px;
}

.form-group input[type="email"] {
    width: 80%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--envirodex-blue);
    box-shadow: 0 0 5px rgba(87, 132, 189, 0.5);
}
/* style.css */
.messages {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.messages li {
    padding: 15px;
    font-weight: bold;
}

.messages li.success {
    background-color: #d4edda;
    color: #155724;
}

.messages li.error {
    background-color: #f8d7da;
    color: #721c24;
}

.messages li.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(87, 189, 132, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(87, 189, 132, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(87, 189, 132, 0);
    }
}

@media (max-width: 600px) {
    .form-group input[type="text"],
    .form-group input[type="email"] {
        width: 95%;
    }
}
