/* DungSai Submit sheet — mobile-first, one-column layout */
.ds-submit-sheet-form{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:18px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
}

.ds-submit-sheet-form *{
    box-sizing:border-box;
}

.ds-submit-sheet-form label,
.ds-submit-story-field,
.ds-submit-image-field{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    gap:8px !important;
    color:#111;
}

.ds-submit-sheet-form label > span,
.ds-submit-story-field > span,
.ds-submit-image-field > span{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    font-size:16px;
    line-height:1.35;
    font-weight:800;
}

.ds-submit-sheet-form textarea{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    min-height:220px !important;
    margin:0 !important;
    padding:15px 16px !important;
    resize:vertical;
    border:1px solid #cfcfcf !important;
    border-radius:14px !important;
    background:#fff !important;
    color:#111 !important;
    font:inherit !important;
    font-size:17px !important;
    line-height:1.5 !important;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
}

.ds-submit-sheet-form textarea:focus{
    border-color:#111 !important;
    box-shadow:0 0 0 2px rgba(0,0,0,.06);
}

.ds-submit-image-field{
    padding:14px !important;
    border:1px solid #e1e1e1 !important;
    border-radius:14px !important;
    background:#fafafa !important;
}

.ds-submit-image-field input[type="file"]{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:10px 0 !important;
    border:0 !important;
    background:transparent !important;
    color:#222 !important;
    font:inherit !important;
    font-size:15px !important;
}

.ds-submit-image-field small{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    color:#666 !important;
    font-size:13px !important;
    line-height:1.45 !important;
    font-weight:500 !important;
}

.ds-submit-sheet-form > button[type="submit"]{
    display:block !important;
    width:100% !important;
    min-height:52px !important;
    margin:0 !important;
    padding:14px 18px !important;
    border:0 !important;
    border-radius:12px !important;
    background:#111 !important;
    color:#fff !important;
    font:inherit !important;
    font-size:16px !important;
    font-weight:900 !important;
    text-align:center !important;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
}

.ds-submit-sheet-form > button[type="submit"]:disabled{
    opacity:.55;
    cursor:default;
}

.ds-submit-sheet-message{
    display:block;
    min-height:20px;
    width:100%;
    margin:0;
    color:#555;
    font-size:13px;
    line-height:1.45;
}

/* Keep the form comfortably inside the shared bottom sheet. */
.ds-common-sheet-body .ds-submit-sheet-form,
.ds-sheet-body .ds-submit-sheet-form{
    padding:4px 0 12px !important;
}

@media (max-width:480px){
    .ds-submit-sheet-form{
        gap:16px !important;
    }
    .ds-submit-sheet-form textarea{
        min-height:210px !important;
    }
}


/* Gallery-only image picker */
.ds-submit-gallery-field{display:block;width:100%;margin:0;padding:0;border:0;min-width:0;}
.ds-submit-gallery-field legend{display:block;width:100%;margin:0 0 6px;padding:0;font-size:16px;font-weight:900;color:#111;}
.ds-submit-gallery-field>p{margin:0 0 10px;color:#666;font-size:13px;line-height:1.4;}
.ds-submit-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;max-height:360px;overflow:auto;padding:1px;}
.ds-gallery-pick-item{position:relative;display:block!important;width:100%!important;margin:0!important;cursor:pointer;aspect-ratio:1/1;border-radius:9px;overflow:hidden;background:#eee;}
.ds-gallery-pick-item input{position:absolute;opacity:0;pointer-events:none;}
.ds-gallery-pick-item img{display:block;width:100%;height:100%;object-fit:cover;}
.ds-gallery-pick-check{position:absolute;right:6px;top:6px;display:none;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#111;color:#fff;font-size:14px;font-weight:900;box-shadow:0 1px 5px rgba(0,0,0,.2);}
.ds-gallery-pick-item input:checked + img{outline:4px solid #111;outline-offset:-4px;}
.ds-gallery-pick-item input:checked ~ .ds-gallery-pick-check{display:flex;}
.ds-gallery-more{display:block;width:100%;min-height:42px;margin:10px 0 0;border:1px solid #111!important;border-radius:999px!important;background:#fff!important;color:#111!important;font-weight:900!important;}
