:root {
    --primary-green: #209869;
    --secondary-gold: #f6ce3c;
    --bg-color: #f0f2f5;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --border-color: #d3d3d3;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header & Logo */
header .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

/* Main Content */
main h1 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
}

main p {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.instruction-arrow {
    display: block;
    font-weight: 700;
    color: #d92e2e;
    /* Red to grab attention */
    margin-bottom: 15px;
    font-size: 16px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Captcha Styles */
.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.captcha-checkbox {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 300px;
    height: 74px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.05) inset;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.captcha-checkbox:hover {
    background: #fff;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1) inset;
}

.checkbox-box {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border 0.3s;
}

/* Spinner Animation */
.checkbox-box.loading {
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    border-top-color: #4285f4;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Checkmark */
.checkbox-box.checked {
    border-color: transparent;
}

.checkbox-box.checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #0F9D58;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.captcha-text {
    font-size: 14px;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    flex-grow: 1;
    text-align: left;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.captcha-logo img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.captcha-logo span {
    font-size: 10px;
    color: #555;
    font-weight: 500;
}

.captcha-terms {
    font-size: 8px;
    color: #777;
    text-align: center;
    margin-top: 1px;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    min-height: 21px;
    /* Prevents layout shift */
    display: none;
}

/* Footer Section */
footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 25px;
    margin-top: 10px;
}

footer .footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

footer .footer-links a {
    text-decoration: none;
    color: #777;
    font-size: 12px;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

footer .separator {
    color: #ccc;
    font-size: 10px;
}

footer .disclaimer {
    font-size: 10px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: justify;
    text-align-last: center;
}

footer .google-policies {
    font-size: 10px;
    color: #bbb;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: flex-start;
        /* Better for scrolling on small phones if content is tall */
        background-color: var(--white);
    }

    .container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 40px 20px;
        justify-content: center;
        /* Center content vertically on mobile */
    }

    header .logo {
        max-width: 180px;
    }

    .captcha-checkbox {
        width: 100%;
        max-width: 320px;
        /* Ensure it fits nicely but isn't too small */
    }
}