/* Φόρμα Fabrik «Βεβαίωση ενδίκων μέσων» — Δικαστικό Μέγαρο Κομοτηνής */
.dmk-fab { --dk-accent: #df9a2a; --dk-accent-dark: #b8740a; --dk-ink: #202c3a; --dk-muted: #5f6779; --dk-line: #d7dce5; --dk-soft: #f6f7fa;
    max-width: 980px; margin: 10px auto 40px; color: var(--dk-ink); }

/* ---------- Εισαγωγή (πληροφορίες, κόστος, δικαιούχοι) ---------- */
.dmk-fab-intro { background: #fff; border-radius: 12px; padding: 30px 34px 22px; margin: 0 0 22px; border-top: 5px solid var(--dk-accent);
    box-shadow: 0 6px 18px rgba(0,0,0,.18); color: var(--dk-ink); font-size: 15px; line-height: 1.6; }
.dmk-fab-intro p, .dmk-fab-intro li { color: var(--dk-ink); text-align: left !important; }
.dmk-fab-intro > p:first-child { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid #eceff4; text-align: center !important; }
.dmk-fab-intro > p:first-child strong { display: block; font-size: 21px; line-height: 1.35; letter-spacing: .01em; color: var(--dk-ink); }
.dmk-fab-intro p[style*="padding-left"] { position: relative; margin: 6px 0; padding: 9px 14px 9px 16px !important; background: var(--dk-soft); border-left: 3px solid var(--dk-accent); border-radius: 0 6px 6px 0; }
.dmk-fab-intro a { color: var(--dk-accent-dark); overflow-wrap: anywhere; }
.dmk-fab-intro ul { margin: 6px 0 16px; padding: 0; list-style: none !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 6px 22px; }
.dmk-fab-intro ul li { position: relative; padding-left: 22px; }
.dmk-fab-intro ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--dk-accent); }
.dmk-fab-intro p:has(> strong:only-child) { margin-top: 14px; }
.dmk-fab-intro > p:last-child { display: none; } /* «ΑΙΤΗΣΗ» – τη θέση της παίρνουν τα βήματα */
.dmk-fab-intro p:has(+ ul) { margin-bottom: 4px; }
.dmk-fab-intro p:nth-last-child(2) { margin: 18px 0 0; padding: 12px 16px; background: #fff8ea; border: 1px solid #f0d49c; border-radius: 8px; }

/* ---------- Κάρτες-βήματα ---------- */
.dmk-fab form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dmk-fab .row-fluid.nav { display: none; }
.dmk-step { background: #fff; border-radius: 12px; padding: 24px 28px 26px; margin: 0 0 18px; box-shadow: 0 6px 18px rgba(0,0,0,.18); border-top: 4px solid var(--dk-accent); }
.dmk-step-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #eceff4; }
.dmk-step-head h3 { margin: 2px 0 0; font-size: 19px; font-weight: 700; color: var(--dk-ink); }
.dmk-step-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--dk-muted); }
.dmk-step-num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--dk-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.dmk-step-admin { border-top-color: #8a91a3; background: #f3f4f7; }
.dmk-step-admin .dmk-step-num { background: #8a91a3; }

.dmk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.dmk-grid .dmk-wide { grid-column: 1 / -1; }
.dmk-step-body > .dmk-field + .dmk-field, .dmk-step-body > .dmk-field + .dmk-note, .dmk-step-body > .dmk-note + .dmk-field { margin-top: 18px; }

/* ---------- Πεδία ---------- */
.dmk-fab .dmk-field { margin: 0; }
.dmk-fab .dmk-field > label.fabrikLabel { display: block; width: 100%; max-width: none; flex: none; padding: 0; margin: 0 0 7px;
    font-size: 15px; font-weight: 700; color: var(--dk-ink) !important; text-transform: none; }
.dmk-fab .dmk-field > label.fabrikLabel .fa, .dmk-fab .dmk-field > label.fabrikLabel [data-isicon] { display: none; }
.dmk-fab .dmk-field > label.fabrikLabel::after { content: ""; }
.dmk-fab .dmk-field:has(.notempty) > label.fabrikLabel::after,
.dmk-fab .dmk-field > label.fabrikLabel[title*="notempty"]::after { content: " *"; color: #d64541; }
.dmk-fab .fabrikElement { width: 100%; max-width: none; padding: 0; flex: none; }
.dmk-hint { margin: 7px 0 0; font-size: 13px; color: var(--dk-muted); }

.dmk-fab input[type=text], .dmk-fab input[type=email], .dmk-fab input[type=tel], .dmk-fab select, .dmk-fab textarea,
.dmk-fab .form-control, .dmk-fab .form-select {
    width: 100%; min-height: 46px; padding: 10px 14px !important; font-size: 15px !important; color: var(--dk-ink) !important;
    background-color: #fff !important; border: 1.5px solid var(--dk-line) !important; border-radius: 8px !important; box-shadow: none !important; text-transform: none; }
.dmk-fab input::placeholder { color: #9aa1b1; text-transform: none; }
.dmk-fab select, .dmk-fab .form-select { appearance: none; -webkit-appearance: none; padding-right: 40px !important; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23202c3a' stroke-width='2' stroke-linecap='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 14px !important; }
.dmk-fab input:focus, .dmk-fab select:focus, .dmk-fab textarea:focus { border-color: var(--dk-accent) !important; box-shadow: 0 0 0 3px rgba(223,154,42,.22) !important; outline: 0; }
.dmk-fab .has-error input, .dmk-fab .has-error select, .dmk-fab .error input, .dmk-fab .error select { border-color: #d64541 !important; box-shadow: 0 0 0 3px rgba(214,69,65,.15) !important; }
.dmk-fab .fabrikErrorMessage { font-size: 13px; color: #c0392b; }
.dmk-fab .fabrikErrorMessage:not(:empty) { margin-top: 6px; }

/* Ημερομηνία */
.dmk-fab .fabrikSubElementContainer .input-group, .dmk-fab .fabrikElement .input-group { flex-wrap: nowrap; }
.dmk-fab .input-group .btn, .dmk-fab .input-group button { min-width: 48px; border-radius: 0 8px 8px 0 !important; background: var(--dk-ink) !important; border: 0 !important; color: #fff !important; }
.dmk-fab .input-group input { border-radius: 8px 0 0 8px !important; }

/* Επιλογή τύπου εγγράφου – κάρτες */
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb > label.fabrikLabel { display: none; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikSubElementContainer > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikgrid_radio { position: relative; width: auto; max-width: none; flex: none; margin: 0; padding: 0; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikgrid_radio input { position: absolute; left: 18px; top: 19px; margin: 0; width: 20px; height: 20px; accent-color: var(--dk-accent); cursor: pointer; float: none; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikgrid_radio label { display: block; height: 100%; margin: 0; padding: 16px 16px 16px 50px; border: 1.5px solid var(--dk-line); border-radius: 10px;
    background: #fff; font-size: 15px; line-height: 1.4; color: var(--dk-ink); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikgrid_radio label:hover { border-color: var(--dk-accent); }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikgrid_radio:has(input:checked) label { border-color: var(--dk-accent); background: #fff8ea; box-shadow: 0 0 0 3px rgba(223,154,42,.18); font-weight: 600; }

/* Η αίτηση ως επιστολή */
.dmk-letter { padding: 22px 26px; background: #fbfaf6; border: 1px solid #ebe5d6; border-left: 4px solid var(--dk-accent); border-radius: 8px; font-family: Georgia, "Times New Roman", serif; }
.dmk-letter-to { display: flex; gap: 12px; align-items: baseline; margin: 0 0 14px; font-family: inherit; }
.dmk-letter-to span { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--dk-accent-dark); font-family: Arial, Helvetica, sans-serif; }
.dmk-letter-to strong { font-size: 17px; color: var(--dk-ink); }
.dmk-letter-text { margin: 0; font-size: 17px; line-height: 2.4; color: var(--dk-ink); }
.dmk-inline { display: inline-block; vertical-align: middle; margin: 2px 4px; line-height: 1.3; font-family: Arial, Helvetica, sans-serif; }
.dmk-inline .fabrikElement { display: inline-block; width: auto; }
.dmk-fab .dmk-inline input[type=text] { width: 170px; min-height: 42px; }
.dmk-fab .dmk-inline select { width: auto; max-width: 100%; min-height: 42px; min-width: 260px; }
.dmk-inline .fabrikErrorMessage { display: block; font-size: 12.5px; }
.dmk-letter-sign { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 12px; font-size: 16px; }
.dmk-fab .dmk-letter-sign select { min-width: 150px; }

/* Αρχεία */
.dmk-fab input[type=file] { display: block; width: 100%; padding: 14px; border: 2px dashed #c3c9d4; border-radius: 10px; background: #fafbfc; font-size: 14px; color: var(--dk-muted); cursor: pointer; }
.dmk-fab input[type=file]:hover { border-color: var(--dk-accent); background: #fff8ea; }
.dmk-fab input[type=file]::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 6px; background: var(--dk-ink); color: #fff; font-weight: 600; cursor: pointer; }

.dmk-note { padding: 12px 16px; background: #fff8ea; border: 1px solid #f0d49c; border-radius: 8px; font-size: 14px; line-height: 1.5; color: var(--dk-ink); }
.dmk-note a { color: var(--dk-accent-dark); font-weight: 700; }

/* Υπογραφή */
.dmk-fab .spad_container_div { display: inline-flex; flex-direction: column-reverse; gap: 8px; max-width: 100%; }
.dmk-fab .sigWrapper { border: 2px dashed #c3c9d4 !important; border-radius: 10px; background: #fff; overflow: hidden; max-width: 100%; }
.dmk-fab .sigNav { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; }
.dmk-fab .sigNav li { display: block; margin: 0; }
.dmk-fab .sigNav a { font-size: 13px; color: #c0392b; text-decoration: none; }
.dmk-fab .sigNav a:hover { text-decoration: underline; }

/* Κουμπιά */
.dmk-fab .fabrikActions { margin: 4px 0 0; padding: 18px 22px; background: rgba(42,47,61,.96); border-radius: 12px; }
.dmk-fab .fabrikActions .btn-toolbar { justify-content: flex-end !important; }
.dmk-fab .fabrikActions .btn, .dmk-fab .fabrikActions button[type=submit] { padding: 13px 30px; border-radius: 8px; border: 0; background: var(--dk-accent) !important; color: #fff !important; font-size: 16px; font-weight: 700; }
.dmk-fab .fabrikActions .btn:hover { background: var(--dk-accent-dark) !important; }
.dmk-fab .fabrikMainError { border-radius: 10px; }

@media (max-width: 720px) {
    .dmk-fab-intro, .dmk-step { padding: 20px 16px; }
    .dmk-grid, .dmk-fab .fb_el_dm_ypodeigma1a___typebeb .fabrikSubElementContainer > .row { grid-template-columns: 1fr; }
    .dmk-letter { padding: 18px 16px; }
    .dmk-letter-text { line-height: 1.9; font-size: 16px; }
    .dmk-inline { display: block; margin: 8px 0; }
    .dmk-fab .dmk-inline input[type=text], .dmk-fab .dmk-inline select { width: 100%; min-width: 0; }
    .dmk-fab .fabrikActions .btn { width: 100%; }
    .dmk-fab .sigWrapper { width: 100% !important; }
}

/* Διορθώσεις στοίχισης / εικονίδιο ημερολογίου */
.dmk-fab .dmk-grid { align-items: start; }
.dmk-fab .dmk-grid > .dmk-field, .dmk-fab .dmk-step-body > .dmk-field { margin: 0 !important; padding: 0; }
.dmk-fab .dmk-step-body:not(.dmk-grid) > .dmk-field + .dmk-field,
.dmk-fab .dmk-step-body:not(.dmk-grid) > .dmk-note + .dmk-field,
.dmk-fab .dmk-step-body:not(.dmk-grid) > .dmk-field + .dmk-note { margin-top: 18px !important; }
.dmk-fab .dmk-field > label.fabrikLabel { min-height: 0; line-height: 1.35; }
.dmk-fab .input-group .btn { position: relative; }
.dmk-fab .input-group .btn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat; }
.dmk-fab .input-group .btn > * { opacity: 0; }
.dmk-fab .fb_el_dm_ypodeigma1a___typebeb > label.fabrikLabel { display: none !important; }
@media (max-width: 720px) {
    .dmk-fab .dmk-inline .fabrikElement { display: block; width: 100%; }
    .dmk-fab .dmk-inline input[type=text] { width: 100%; }
}
