/* Formulários longos (ex.: pré-reservas) no novo UX. Complementa profile.css, dentro de .profile.pb-form */
.pb-form .seg {
    background: #eceef1;
    border-radius: 8px;
    display: inline-flex;
    flex-wrap: wrap;
    padding: 3px;
}

.pb-form .seg label {
    cursor: pointer;
    margin: 0;
}

.pb-form .seg input {
    display: none;
}

.pb-form .seg span {
    border-radius: 6px;
    color: #555;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
}

.pb-form .seg input:checked + span {
    background: #8c1c13;
    color: #fff;
}

.pb-form .seg input:focus-visible + span {
    outline: 2px solid #8c1c13;
    outline-offset: 2px;
}

.pb-form .pb-panel[hidden] {
    display: none !important;
}

.pb-form .pb-grid {
    display: grid;
    gap: 0 14px;
    grid-template-columns: 1fr 1fr;
}

.pb-form .pb-grid .span-2 {
    grid-column: 1 / -1;
}

.pb-form .space-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.pb-form .space-card {
    cursor: pointer;
    margin: 0;
}

.pb-form .space-card input {
    display: none;
}

.pb-form .space-card span {
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    color: #444;
    display: flex;
    font-weight: 600;
    gap: 8px;
    padding: 10px 12px;
}

.pb-form .space-card span::before {
    color: #c8ccd1;
    content: '\f096';
    font-family: FontAwesome;
    font-size: 16px;
}

.pb-form .space-card input:checked + span {
    background: #fbefee;
    border-color: #8c1c13;
    color: #8c1c13;
}

.pb-form .space-card input:checked + span::before {
    color: #8c1c13;
    content: '\f046';
}

.pb-form .has-error .space-card span {
    border-color: #dd4b39;
}

.pb-form .pb-editor {
    margin-bottom: 18px;
}

.pb-form .pb-editor label {
    display: block;
}

.pb-form .wysihtml5-sandbox {
    width: 100% !important;
}

.pb-form .ev-errors {
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .pb-form .pb-grid {
        grid-template-columns: 1fr;
    }

    .pb-form .seg {
        display: flex;
        width: 100%;
    }

    .pb-form .seg label {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Ativação de pré-reserva: materiais e suportes gráficos */
.pb-form .material-list {
    display: grid;
    gap: 8px 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pb-form .material-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.pb-form .material-row label {
    color: #444;
    flex: 1;
    font-size: 14px;
    margin: 0;
}

.pb-form .material-row .material-qty {
    flex: 0 0 90px;
    text-align: center;
    width: 90px;
}

.pb-form .graphic-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.pb-form .graphic-row .space-card {
    flex: 1 1 260px;
}

.pb-form .graphic-quantity-wrapper {
    align-items: center;
    gap: 8px;
}

.pb-form .graphic-quantity-wrapper label {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.pb-form .graphic-quantity-wrapper .graphic-quantity {
    text-align: center;
    width: 90px;
}

#graphic-directions-wrapper {
    margin-top: 12px;
}

/* Espaços que exigem apoio e apoios bloqueados (formulários de evento) */
.pb-form .space-card .space-req {
    color: #8c1c13;
    display: block;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 3px;
}

.pb-form .space-card .sc-text {
    display: block;
    flex: 1;
    font-weight: 600;
}

.pb-form .support-card .support-lock {
    display: none;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    margin-left: auto;
}

.pb-form .support-card.is-forced {
    cursor: not-allowed;
}

.pb-form .support-card.is-forced .support-lock {
    display: inline;
}

.pb-form .support-card.is-forced span {
    background: #fbefee;
    border-color: #8c1c13;
    color: #8c1c13;
}

.pb-form #support-required-alert[hidden] {
    display: none !important;
}
