/* reCAPTCHA checkbox widget — faithful re-creation.
   Values mirror Google's own anchor markup: 304x78 anchor, 28x28 box,
   30px Roboto label, 38px logo, "#f9f9f9" panel with "#d3d3d3" hairline. */

:root {
    --rc-blue: #1c3aa9;
    --rc-blue-hover: #2b51d0;
    --rc-green: #009688;
    --rc-border: #d3d3d3;
    --rc-panel: #f9f9f9;
    --rc-ink: #000;
}

html.rc,
html.rc body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--rc-ink);
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html.rc body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 16px;
}

/* Center the widget on screen exactly like the real g-recaptcha float. */
html.rc form {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Widget shell -------------------------------------------------------- */
.rc-anchor {
    width: 304px;
    height: 78px;
    box-sizing: border-box;
    background: var(--rc-panel);
    border: 1px solid var(--rc-border);
    border-radius: 3px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08);
    color: #000;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s ease;
}
.rc-anchor:hover { border-color: #b9b9b9; }
.rc-anchor:focus-visible { border-color: #4285f4; box-shadow: 0 0 4px 1px rgba(66, 133, 244, .45); }

.rc-anchor-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 10px 12px 10px 12px;
}

/* Left column: checkbox + label -------------------------------------- */
.rc-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rc-checkbox {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #b8b8b8;
    border-radius: 2px;
    transition: border-color .2s ease;
}
.rc-anchor:hover .rc-checkbox { border-color: #a9a9a9; }

/* Tick: right-angle hook, drawn in on check. */
.rc-tick {
    position: absolute;
    left: 6px;
    top: 5px;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--rc-green);
    border-bottom: 3px solid var(--rc-green);
    border-bottom-left-radius: 1px;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    opacity: 0;
    transition: transform .16s cubic-bezier(.4, 0, .2, 1), opacity .1s ease;
}

.rc-label {
    font-size: 14px;
    line-height: 17px;
    color: #000;
    white-space: nowrap;
}

/* Right column: logo + legal links ------------------------------------ */
.rc-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 64px;
    text-align: center;
}

.rc-logo-img {
    width: 32px;
    height: 32px;
    display: block;
    margin-top: -2px;
}

.rc-logo-text {
    font-size: 10px;
    line-height: 10px;
    color: #555;
    margin-top: 3px;
    letter-spacing: .1px;
}

.rc-logo-links {
    font-size: 8px;
    line-height: 10px;
    color: #555;
    margin-top: 1px;
    white-space: nowrap;
}
.rc-logo-links a {
    color: #555;
    text-decoration: none;
    font-size: 8px;
}
.rc-logo-links a:hover { text-decoration: underline; }

/* Spinner ------------------------------------------------------------- */
.rc-spinner {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border: 2px solid #4285f4;
    border-top-color: transparent;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6);
    animation: rc-spin .8s linear infinite;
    transition: opacity .1s ease, transform .1s ease;
}

/* States -------------------------------------------------------------- */
.rc-anchor.is-checked .rc-checkbox {
    border-color: transparent;
    background: transparent;
}
.rc-anchor.is-checked .rc-tick { transform: rotate(-45deg) scale(1.15); opacity: 1; }

.rc-anchor.is-loading .rc-checkbox { background: transparent; border-color: transparent; }
.rc-anchor.is-loading .rc-tick { opacity: 0; transform: rotate(-45deg) scale(0); }
.rc-anchor.is-loading .rc-spinner { opacity: 1; transform: scale(1); }

.rc-anchor.is-checked { cursor: default; }

/* Error + noscript ---------------------------------------------------- */
.rc-error {
    width: 304px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    background: #fff0ef;
    color: #a43535;
    border: 1px solid #f3c9c6;
    border-radius: 3px;
    font-size: 13px;
    line-height: 17px;
}

.rc-noscript { margin: 12px 0 0; text-align: center; }
.rc-noscript-button {
    font: 500 14px Roboto, Arial, sans-serif;
    color: #fff;
    background: #4285f4;
    border: 0;
    border-radius: 2px;
    padding: 9px 16px;
    cursor: pointer;
}

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

@media (prefers-reduced-motion: reduce) {
    .rc-spinner { animation-duration: 1.6s; }
    .rc-tick { transition: none; }
}

@media (max-width: 360px) {
    .rc-anchor,
    .rc-error { width: 100%; }
}
