* {
    box-sizing: border-box;
}
html {
    font-family: Arial, Helvetica, sans-serif;
    color: #252525;
    background: #fff;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.site-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}
.site-header {
    border-bottom: 1px solid #ececec;
    background: #fff;
}
.site-header .site-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-logo {
    color: #171717;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.site-tagline {
    color: #777;
    font-size: 13px;
    letter-spacing: .3px;
}
.page-main {
    flex: 1;
    padding-top: 72px;
    padding-bottom: 90px;
}
.page-content {
    max-width: 850px;
    margin: 0 auto;
}
.page-content h1 {
    margin: 0 0 28px;
    color: #171717;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 700;
}
.content-text {
    color: #4a4a4a;
    font-size: 18px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.empty-content {
    color: #777;
    font-size: 16px;
}
.site-footer {
    border-top: 1px solid #ececec;
    color: #777;
    font-size: 13px;
    padding: 22px 0;
}
.site-footer p {
    margin: 0;
}
@media (max-width: 600px) {
    .site-container {
        width: min(100% - 32px, 1120px);
    }
    .site-header .site-container {
        min-height: 70px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    .site-logo {
        font-size: 19px;
    }
    .page-main {
        padding-top: 42px;
        padding-bottom: 56px;
    }
    .content-text {
        font-size: 16px;
    }
}


/* CMS Form Builder – javne forme */
.cms-form-section { margin: 34px 0; }
.cms-form-card {
    max-width: 760px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.045);
}
.cms-form-card h2 { margin: 0 0 22px; }
.cms-form-field { margin: 0 0 18px; }
.cms-form-field > label {
    display: block;
    margin: 0 0 7px;
    font-weight: 600;
}
.cms-form-field input:not([type="checkbox"]),
.cms-form-field textarea,
.cms-form-field select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d7dbe0;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font: inherit;
    box-sizing: border-box;
}
.cms-form-field textarea { min-height: 130px; resize: vertical; }
.cms-form-field input:focus,
.cms-form-field textarea:focus,
.cms-form-field select:focus {
    outline: none;
    border-color: #834590;
    box-shadow: 0 0 0 3px rgba(131,69,144,.12);
}
.cms-checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.cms-checkbox-label input { margin-top: 5px; }
.required-mark { color: #b3261e; }
.cms-form-submit {
    display: inline-block;
    min-height: 46px;
    padding: 11px 24px;
    border: 0;
    border-radius: 7px;
    background: #834590;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cms-form-submit:hover { filter: brightness(.94); }
.cms-form-error, .cms-form-success {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 7px;
}
.cms-form-error { color: #8a1c1c; background: #fff0f0; border: 1px solid #f1caca; }
.cms-form-success { color: #17633b; background: #edf8f1; border: 1px solid #c9e8d4; }
.cms-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
@media (max-width: 600px) {
    .cms-form-card { padding: 20px 16px; }
    .cms-form-submit { width: 100%; }
}

/* GLOBAL CMS – Responsive tabele u sadržaju stranica */

main table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
}

main table th,
main table td {
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}

main table th {
    background: #f3f4f6;
    color: #222;
    font-weight: 700;
}

main table tbody tr:nth-child(even) {
    background: #fafafa;
}

main table tbody tr:hover {
    background: #f5f6f8;
}

/* Mobilni uređaji */
@media (max-width: 768px) {
    main table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 14px;
    }

    main table th,
    main table td {
        padding: 11px 13px;
        min-width: 145px;
        overflow-wrap: normal;
    }
}