/* Proposta de sócio: its own look, kept with the form (Bit Form > Settings >
   Custom Code > CSS), so nothing in the site's theme depends on it. This
   file is loaded only with this form, so the rules use Bit Form's general
   classes and no form number or field key: they hold wherever the form is
   imported, whatever number it gets there.

   The site has a light and a dark mode; Bit Form draws for a light page, so
   the form sits on a white sheet in both. On the sheet the site's content
   colours keep their light values, so the theme's own field and table
   styles stay light there too. The sheet reaches 16px beyond the content
   column on each side, so the fields line up with the column and the text
   keeps its distance from the sheet's edge. */
.bf-form-wrapper {
    --white:  #FFFFFF;   --white-rgb:  255, 255, 255;
    --light:  #F2F4F7;   --light-rgb:  242, 244, 247;
    --silver: #E4E7EC;   --silver-rgb: 228, 231, 236;
    --gray:   #66707E;   --gray-rgb:   102, 112, 126;
    --dark:   #39404B;   --dark-rgb:   57, 64, 75;
    --black:  #15181D;   --black-rgb:  21, 24, 29;
    --border: rgba(16, 24, 40, .12);
    --field:  #FFFFFF;

    margin-inline: -16px;
    padding: 16px;
    background: #FFFFFF;
    color: #15181D;
}

/* Fields side by side keep 16px between them: each field has 8px on each
   side and the grid reaches 8px out, so the outer edges stay on the
   column. On a phone every field takes the whole width, one under the
   other in the form's order. */
.bf-form-wrapper .bf-form {
    margin-inline: -8px;
    counter-reset: form-section;
}

.bf-form-wrapper .btcd-fld-itm {
    min-height: 0;
    padding-inline: 8px;
}

@media (max-width: 599px) {
    .bf-form-wrapper .bf-form {
        display: block;
    }
}

/* Section titles as on the paper proposal: small red capitals on the
   left, a red disc with the section's number before them, under a
   hairline that separates the sections (not over the first one) */
.bf-form-wrapper .bf-field-wrapper .bf-title-wrapper {
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-top: 16px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(16, 24, 40, .12);
}

.bf-form-wrapper .btcd-fld-itm:not(.btcd-fld-itm ~ .btcd-fld-itm) .bf-title-wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.bf-form-wrapper .bf-title-wrapper .bf-title,
.bf-form-wrapper .bf-title-wrapper .bf-title-text {
    margin: 0;
    padding: 0;
    color: #E2001A;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: start;
    text-transform: uppercase;
}

.bf-form-wrapper .bf-title-wrapper::before {
    counter-increment: form-section;
    content: counter(form-section);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-inline-end: 10px;
    border-radius: 50%;
    background: #E2001A;
    color: #FFFFFF;
    font-size: .875rem;
    font-weight: 800;
}

/* A hidden title (Bit Form's .fld-hide) is not counted */
.bf-form-wrapper .fld-hide .bf-title-wrapper::before {
    content: none;
    counter-increment: none;
}

/* Fields 24px apart, the help text right under its box */
.bf-form-wrapper .bf-fld-wrp {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Labels and the boxes to type in: large, easy to read and to tap */
.bf-form-wrapper .bf-lbl {
    font-size: 1rem;
    font-weight: 600;
}

.bf-form-wrapper .bf-fld {
    height: 48px;
    margin-bottom: 0;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 1rem;
}

.bf-form-wrapper .bf-phone-field-container .bf-phone-field-wrapper {
    height: 48px;
    border-radius: 8px;
}

.bf-form-wrapper .bf-phone-field-wrapper .bf-phone-inner-wrapper,
.bf-form-wrapper .bf-phone-field-wrapper .bf-phone-number-input {
    height: 100%;
    min-height: 0;
}

/* Every help text the same: small, plain, grey */
.bf-form-wrapper .bf-hlp-txt {
    margin-top: 6px;
    padding: 0;
    color: #66707E;
    font-size: .875rem;
    font-style: normal;
}

/* Choices (radio options) as boxes the whole width, the club red around
   the one chosen; they start at the fields' edge */
.bf-form-wrapper .bf-cc {
    gap: 8px;
}

.bf-form-wrapper .bf-cw {
    border: 1px solid rgba(16, 24, 40, .16);
    border-radius: 8px;
    background: #FFFFFF;
    transition: border-color .15s ease, background-color .15s ease;
}

.bf-form-wrapper .bf-cw:has(.bf-ci:checked) {
    border-color: #E2001A;
    background: #FFF1F2;
}

.bf-form-wrapper .bf-cw .bf-cl {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    cursor: pointer;
}

.bf-form-wrapper .bf-cw .bf-ct {
    color: #15181D;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

/* The photo: a dashed area with the button and the file's name */
.bf-form-wrapper .bf-file-up-container {
    padding: 16px;
    border: 2px dashed rgba(16, 24, 40, .2);
    border-radius: 8px;
    background: #F7F8FA;
}

.bf-form-wrapper .bf-inp-btn {
    min-height: 48px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Enviar proposta: the page's main button, large; the whole width on a
   phone */
.bf-form-wrapper .bf-btn {
    min-height: 52px;
    padding: 0 40px;
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 599px) {
    .bf-form-wrapper .bf-btn {
        width: 100%;
    }
}
