/*
 * One-screen fit for the public form card (.form-v10-content).
 * Loaded after style.css and page.css. Only font-size, padding and margin are
 * overridden here; layout, colors and markup stay as in the original.
 *
 * Everything inside the card is sized in em, so the card's font-size is the
 * single knob for the whole form.
 */
.page-content { padding-bottom: 1.5vh; }

/* Full-screen background with the card centered in it (asked for on top of
   the font-size/padding/margin fit). On phones the card is taller than the
   screen, so the background just grows with it. */
html, body { height: 100%; }
.page-content {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}
/* The card fills the screen height, less a 1.5em (24px) gap above and below.
   rem, because the card's own em changes with the screen size. */
.page-content .form-v10-content {
    margin: 0.5em auto;
    min-height: calc(100vh - 3rem);
    min-height: calc(100dvh - 3rem);
    display: flex;
}

.form-v10-content { font-size: 0.92em; }

.form-v10-content .form-detail h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 0.9em;
    padding-top: 1em;
}
.form-v10-content .form-detail .form-right h2 {
    margin-bottom: 0.4em;
    padding-top: 0.6em;
}
.form-v10-content .form-detail .form-row { margin-bottom: 1.1em; }
.form-v10-content .form-detail select,
.form-v10-content .form-detail input:not([type=radio]) {
    font-size: 1em;
    padding: 0.55em 0.9em 0.65em;
}
.form-v10-content .form-detail .form-left input::placeholder,
.form-v10-content .form-detail .form-right input::placeholder { font-size: 1em; }
.form-v10-content .form-detail h4 { margin: 0.6em 0 0; }
.form-v10-content .form-detail .form-left p { margin: 0.4em 0 0; }
.form-v10-content .form-detail .form-checkbox { margin-top: 1em; }
.form-v10-content .form-detail .form-checkbox p { font-size: 0.875em; margin-top: 0.6em; margin-bottom: 0.6em; }
.form-v10-content .form-detail .form-right .form-row-last { margin: 0.6em 0 0; }
.form-v10-content .form-detail .form-right .register {
    font-size: 0.92em;
    margin: 0.5em 0 1em;
}
.form-v10-content .form-detail .form-right .form-row-last input { padding: 0.75em; }
.form-v10-content .form-detail .field-error { font-size: 0.8em; }
.form-v10-content .sub_menu_k { padding-bottom: 0.15em; }
/* Turnstile sits centered above the Register button. */
.form-row-last .cf-turnstile { display: flex; justify-content: center; margin: 0.3em 0 0; }
/* The hidden terms checkbox is width:100% from its padded box; pull it back over
   the box so it no longer sticks out and adds sideways scrolling on phones. */
.form-v10-content .form-detail .form-checkbox input:not([type=radio]) { margin-left: -60px; }
@media screen and (max-width: 575px) {
    .form-v10-content .form-detail .form-checkbox input:not([type=radio]) { margin-left: -30px; }
}

/* Phones: the two columns stack, so the card is taller than any phone screen.
   Keep the text readable and just tighten the spacing. */
@media screen and (max-width: 767px) {
    .form-v10-content .form-detail .form-left { padding-bottom: 0.5em; }
}
