
/* ============================================================
   GHOSTBASE V23.8 — FORMULÁRIOS DA COMUNIDADE
   Corrige grade, labels, inputs, textarea, upload e ações.
   ============================================================ */

body[class*="page-"] .community-form-v237{
    padding:72px 0 96px!important;
    background:
        radial-gradient(circle at 82% 8%,rgba(255,106,0,.085),transparent 28%),
        linear-gradient(180deg,#080c0f,#070b0d)!important;
}

.community-form-shell-v237{
    width:min(calc(100% - 48px),1180px)!important;
    max-width:1180px!important;
    margin-inline:auto!important;
}

.community-form-hero-v237{
    max-width:900px!important;
    margin:0 0 34px!important;
}

.community-form-hero-v237 .kicker{
    color:#ff7614!important;
    letter-spacing:.18em!important;
}

.community-form-hero-v237 h1{
    margin:10px 0 13px!important;
    color:#fff!important;
    font-size:clamp(46px,5.8vw,76px)!important;
    line-height:.94!important;
    letter-spacing:-.055em!important;
}

.community-form-hero-v237 p{
    max-width:760px!important;
    margin:0!important;
    color:#98aab3!important;
    font-size:15px!important;
    line-height:1.7!important;
}

.community-form-card-v237,
.community-form-v237 .form-shell{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:30px!important;
    border:1px solid #2a3b44!important;
    border-radius:20px!important;
    background:
        linear-gradient(145deg,#11191d,#0d1418)!important;
    box-shadow:
        0 28px 68px rgba(0,0,0,.28),
        0 0 44px rgba(255,106,0,.025)!important;
}

/* A correção principal: a grade precisa existir aqui, independente do admin.css */
.community-form-v237 .form-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px 20px!important;
    width:100%!important;
    align-items:start!important;
}

.community-form-v237 .form-grid > label{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    min-width:0!important;
    margin:0!important;
    color:#dce3e7!important;
    font-size:13px!important;
    font-weight:800!important;
    line-height:1.25!important;
}

.community-form-v237 .form-grid > label.wide{
    grid-column:1 / -1!important;
}

.community-form-v237 input,
.community-form-v237 textarea,
.community-form-v237 select{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    min-height:50px!important;
    margin:0!important;
    padding:13px 14px!important;
    border:1px solid #30434d!important;
    border-radius:11px!important;
    background:#091115!important;
    color:#fff!important;
    font:inherit!important;
    outline:none!important;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease!important;
}

.community-form-v237 textarea{
    min-height:150px!important;
    resize:vertical!important;
    line-height:1.55!important;
}

.community-form-v237 input[type="file"]{
    min-height:52px!important;
    padding:8px 10px!important;
    color:#a8b6be!important;
}

.community-form-v237 input[type="file"]::file-selector-button{
    min-height:34px!important;
    margin-right:12px!important;
    padding:0 12px!important;
    border:1px solid #3a4d57!important;
    border-radius:8px!important;
    background:#141e23!important;
    color:#fff!important;
    font-weight:800!important;
    cursor:pointer!important;
}

.community-form-v237 input:focus,
.community-form-v237 textarea:focus,
.community-form-v237 select:focus{
    border-color:rgba(255,106,0,.78)!important;
    background:#0b151a!important;
    box-shadow:0 0 0 3px rgba(255,106,0,.09)!important;
}

.community-form-actions-v237{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    margin-top:26px!important;
    padding-top:22px!important;
    border-top:1px solid rgba(255,255,255,.07)!important;
}

.community-form-actions-v237 .btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
    padding:0 18px!important;
    border-radius:10px!important;
    font-weight:900!important;
    text-decoration:none!important;
}

.community-form-actions-v237 .btn-outline{
    border:1px solid #354852!important;
    background:#10181d!important;
    color:#e7edef!important;
}

.community-form-actions-v237 .btn-accent{
    border:1px solid #ff6a00!important;
    background:#ff6a00!important;
    color:#090c0e!important;
    box-shadow:0 12px 26px rgba(255,106,0,.13)!important;
}

.community-form-actions-v237 .btn:hover{
    transform:translateY(-2px)!important;
}

/* páginas premium pré-existentes */
.community-premium-hero-v237{
    min-height:390px!important;
    display:flex!important;
    align-items:center!important;
    background:
        radial-gradient(circle at 78% 30%,rgba(255,106,0,.10),transparent 28%),
        linear-gradient(115deg,#11191d,#080c0f 64%)!important;
}

.community-premium-hero-v237 .container{
    width:min(calc(100% - 48px),1180px)!important;
}

.community-premium-hero-v237 h1{
    max-width:850px!important;
    font-size:clamp(48px,6vw,82px)!important;
    line-height:.93!important;
    letter-spacing:-.055em!important;
}

.community-premium-section-v237>.container{
    width:min(calc(100% - 48px),1040px)!important;
}

.community-premium-section-v237 .gbsubmit-card{
    border-radius:18px!important;
    box-shadow:0 22px 55px rgba(0,0,0,.18)!important;
}

@media(max-width:760px){
    .community-form-shell-v237,
    .community-premium-hero-v237 .container,
    .community-premium-section-v237>.container{
        width:calc(100% - 28px)!important;
    }

    .community-form-v237 .form-grid{
        grid-template-columns:1fr!important;
    }

    .community-form-v237 .form-grid > label.wide{
        grid-column:auto!important;
    }

    .community-form-card-v237,
    .community-form-v237 .form-shell{
        padding:20px!important;
    }

    .community-form-actions-v237{
        flex-direction:column-reverse!important;
        align-items:stretch!important;
    }

    .community-form-actions-v237 .btn{
        width:100%!important;
    }
}
