.zeteo-go-form {
    width: 100%;
    padding: 0 4rem;
    box-sizing: border-box;
}

.zeteo-go-form .alert-wrapper {
    margin-top: 6rem;
}

legend {
    border: none !important;
    margin-bottom: 0 !important;
}

/* The node form's "main" layout region ships with a fixed Bootstrap grid
   width (col-md-6/col-lg-6) intended to leave room for the vertical-tabs
   sidebar region. That sidebar is hidden on this form, so let main fill
   the full width instead of being stuck at a fraction of the page. */
.zeteo-go-form .layout-region-node-main {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    float: none;
    padding-left: 0;
    padding-right: 0;
}

.zeteo-go-form .layout-region-node-secondary {
    display: none;
}

.zeteo-go-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: #FFF;
    background-image: url('/themes/custom/zeteo/img/zeteogo_form.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    margin: -4rem -4rem 4rem;
    border-bottom: 5px solid #00244d;
    padding: 0;
}

.zeteo-go-logo {
    max-width: 100px;
    display: block;
    margin: -50px auto 0;
}

.zeteo-go-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.zeteo-go-title {
    margin-bottom: 0.25rem;
}

.zeteo-go-title em {
    font-style: italic;
}

.zeteo-go-subtitle {
    font-weight: normal;
    margin-top: 0;
}

.zeteo-go-section-heading {
    margin-top: 1.5rem;
    padding-bottom: 0.25rem;
}

.zeteo-go-resource-count-text strong {
    font-family: Helvetica_now_bold, Helvetica, sans-serif;
    font-weight: bold;
    color: #0077C8;
}

/* Typography ported from the original ZeteoGo inquiry form styling. */
.zeteo-go-form {
    font-size: 16px;
    line-height: 24px;
    font-family: Helvetica_now, Helvetica, sans-serif;
}

.zeteo-go-form h1,
.zeteo-go-form h2,
.zeteo-go-form h3,
.zeteo-go-form h4,
.zeteo-go-form h5,
.zeteo-go-form h6 {
    margin: 10px 0 0;
}

.zeteo-go-form h1 {
    font-size: 40px;
    line-height: 54px;
    font-family: Helvetica_now_bold, Helvetica, sans-serif;
    font-weight: bold;
    color: #00244D;
}

.zeteo-go-form h2 {
    font-size: 28px;
    line-height: 40px;
    color: #0077C8;
}

.zeteo-go-form h3,
.zeteo-go-form label:not(.form-check-label) {
    font-size: 20px;
    line-height: 30px;
    font-weight: bold;
    color: #00244D;
    display: block;
    margin-bottom: 0.5rem;
}

.zeteo-go-form .form-item {
    padding: 0;
    margin-bottom: 1rem;
}

/* Per-field wrapper (one per form field); this is what actually stacks the
   fields vertically, so it controls the visible gap between them. */
.zeteo-go-form .form-wrapper {
    margin-bottom: 2rem;
}

.zeteo-go-section-heading+.form-wrapper {
    margin-top: 0.5rem;
}

.zeteo-go-form #edit-field-sources--wrapper,
.zeteo-go-form #edit-field-content-types--wrapper {
    margin-bottom: 0;
}

.checkbox label,
.radio label {
    flex-direction: row !important;
}

.zeteo-go-form input[type="text"],
.zeteo-go-form select {
    width: 30%;
    max-width: 30%;
    box-sizing: border-box;
}

/* Scrollable checkbox groups (Sources / Content Types), ported from the
   original `.form-checkboxes` box styling. */
.zeteo-go-form #edit-field-sources,
.zeteo-go-form #edit-field-content-types {
    border: 1px solid #ccc;
    padding: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.zeteo-go-select-links button {
    background: none;
    border: none;
    color: #00244d;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
}

.zeteo-go-select-links button+button {
    margin-left: 1rem;
}

.zeteo-go-form .form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.zeteo-go-form .zeteo-go-submit {
    width: fit-content !important;
    margin-top: 0 !important;
}

.zeteo-go-form .captcha__description {
    color: #777777;
    font-size: 85%;
}
