/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 0 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Top Headline (Desktop Default: 1024px+) - Same Modern Sans-Serif Font as Main Heading
   ========================================================================== */
.top-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.top-headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    /* Desktop Dominant Headline Size */
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: #000000;
    max-width: 1060px;
    margin: 0 auto;
}

/* ==========================================================================
   Center Verification Content
   ========================================================================== */
.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -3.5rem; /* Optical center alignment */
    max-width: 580px;
    width: 100%;
}

.main-heading {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin-bottom: 8px;
    transition: font-size 0.2s ease;
}

.main-heading .blue-text {
    color: #1a73e8;
}

.sub-heading {
    font-size: 15px;
    color: #5f6368;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.4;
    transition: font-size 0.2s ease;
}

/* ==========================================================================
   Authentic Classic Google reCAPTCHA Box
   ========================================================================== */
.recaptcha-box {
    width: 304px;
    height: 78px;
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 0 14px;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recaptcha-box:hover {
    box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.12);
}

.checkbox-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.checkbox-wrapper:hover {
    border-color: #b2b2b2;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

/* Spinner State */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkbox-wrapper.loading {
    border-color: transparent;
    background: transparent;
}

.checkbox-wrapper.loading .spinner {
    display: block;
}

/* Checkmark State */
.custom-check {
    display: none;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d58' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.checkbox-wrapper.checked {
    border-color: transparent;
    background: transparent;
}

.checkbox-wrapper.checked .custom-check {
    display: block;
    animation: checkPop 0.25s ease-out;
}

@keyframes checkPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.captcha-label {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    letter-spacing: 0.1px;
}

/* Right Side Logo */
.recaptcha-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    font-family: 'Roboto', sans-serif;
}

.recaptcha-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-title {
    font-size: 10px;
    font-weight: 500;
    color: #555555;
    margin-top: 2px;
}

.logo-links {
    font-size: 8px;
    color: #555555;
    margin-top: 1px;
}

/* ==========================================================================
   Responsive Breakpoints: Tablet, Mobile, and Small Screens
   ========================================================================== */

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .page-container {
        padding: 20px 16px 0 16px;
    }
    .top-banner-wrapper {
        margin-bottom: 2rem;
    }
    .top-headline {
        font-size: 42px;
        max-width: 820px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }
    .center-content {
        margin-top: -2.5rem;
    }
    .main-heading {
        font-size: 26px;
    }
    .sub-heading {
        font-size: 14.5px;
        margin-bottom: 24px;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .page-container {
        padding: 16px 14px 0 14px;
    }
    .top-banner-wrapper {
        margin-bottom: 1.5rem;
    }
    .top-headline {
        font-size: 31px;
        line-height: 1.2;
        letter-spacing: -0.6px;
        max-width: 520px;
    }
    .center-content {
        margin-top: 0;
        padding: 20px 0;
    }
    .main-heading {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .sub-heading {
        font-size: 13.5px;
        margin-bottom: 22px;
    }
}

/* Small Mobile (max-width: 420px) */
@media (max-width: 420px) {
    .page-container {
        padding: 14px 10px 0 10px;
    }
    .top-headline {
        font-size: 26px;
        line-height: 1.22;
        letter-spacing: -0.5px;
    }
    .main-heading {
        font-size: 20px;
    }
    .sub-heading {
        font-size: 13px;
    }
    .recaptcha-box {
        transform: scale(0.96);
        transform-origin: center;
    }
}

/* ==========================================================================
   Footer Styles (100% Unified Spacing Across All Pages)
   ========================================================================== */
.site-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 48px;
    padding-bottom: 28px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    box-sizing: border-box;
}

.footer-copyright {
    color: #52525b;
    margin-bottom: 6px;
    font-weight: 400;
}

.footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-links a {
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #111827;
    text-decoration: underline;
}

.footer-links .divider {
    color: #a1a1aa;
    margin: 0 4px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #71717a;
    max-width: 750px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .site-footer {
        padding-top: 36px;
        padding-bottom: 24px;
        font-size: 12px;
    }
    .footer-disclaimer {
        font-size: 11px;
        padding: 0 8px;
    }
}
