/* Paktograf — Objavi/Uredi servis v2. Jedan frontend, Freeio ostaje backend. */
body.pg-service-submit-page {
    background: linear-gradient(145deg, #fbfbfd 0%, #f5f0ff 46%, #fff 100%) !important;
}

body.pg-service-submit-page :is(.entry-title, .page-title, .breadcrumb, .breadcrumbs, .apus-breadscrumb) {
    display: none !important;
}

body.pg-service-submit-page :is(#main-container, #apus-main-content, .site-main, .main-page) {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
}

.pgsf,
.pgsf * {
    box-sizing: border-box;
}

.pgsf {
    width: 100%;
    padding: 42px 24px 96px;
    color: #101828;
}

.pgsf__container {
    width: min(980px, 100%);
    margin: 0 auto;
}

.pgsf__back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    color: #667085 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.pgsf__back:hover {
    color: #6f2cff !important;
}

.pgsf__hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
}

.pgsf__hero-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg, #8b48ff 0%, #6824ec 100%);
    box-shadow: 0 16px 34px rgba(111, 44, 255, .22);
}

.pgsf__hero small {
    display: block;
    margin-bottom: 5px;
    color: #6f2cff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
}

.pgsf__hero h1 {
    margin: 0 0 6px !important;
    color: #11101d !important;
    font-size: clamp(38px, 5vw, 50px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
}

.pgsf__hero p {
    margin: 0 !important;
    color: #667085 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.pgsf__note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid #f0d477;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf4, #fffaf0);
    box-shadow: 0 8px 24px rgba(84, 56, 10, .04);
}

.pgsf__note > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: #fff1b8;
}

.pgsf__note strong,
.pgsf__note p {
    display: block;
    margin: 0;
}

.pgsf__note strong {
    color: #5d3908;
    font-size: 14px;
    font-weight: 900;
}

.pgsf__note p {
    margin-top: 3px;
    color: #805d24;
    font-size: 13px;
    line-height: 1.5;
}

.pgsf__steps {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    margin: 0 0 20px;
    padding: 17px 22px;
    border: 1px solid #e7e1ed;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(34, 19, 56, .05);
}

.pgsf__steps button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #98a2b3;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.pgsf__steps button b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1eef4;
    color: #667085;
}

.pgsf__steps button.is-active {
    color: #11101d;
}

.pgsf__steps button.is-active b {
    color: #fff;
    background: #6f2cff;
    box-shadow: 0 7px 17px rgba(111, 44, 255, .23);
}

.pgsf__steps button.is-complete b {
    color: #6f2cff;
    background: #eee7ff;
}

.pgsf__steps > i {
    height: 2px;
    margin: 0 18px;
    background: #ebe7ef;
}

.pgsf__card {
    padding: 34px;
    border: 1px solid #e6e1ec;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(33, 20, 55, .08);
}

.pgsf-alert {
    margin: 0 0 22px;
    padding: 15px 17px;
    border-radius: 15px;
    font-size: 14px;
}

.pgsf-alert p {
    margin: 3px 0 0;
}

.pgsf-alert--error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.pgsf-alert--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.pgsf-form {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.pgsf-form > .cmb2-wrap,
.pgsf-form .cmb2-wrap {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

.pgsf-form .cmb2-metabox {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.pgsf-panel-head,
.pgsf-preview,
.pgsf-actions,
.pgsf-native-submit,
.pgsf-field--full,
.pgsf-form .cmb-type-title {
    width: 100% !important;
    max-width: none !important;
}

.pgsf-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 28px;
    padding: 0 0 22px;
    border-bottom: 1px solid #eef0f3;
}

.pgsf-panel-head > b {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: #f1eaff;
    color: #6f2cff;
    font-size: 12px;
    font-weight: 950;
}

.pgsf-panel-head strong,
.pgsf-panel-head small {
    display: block;
}

.pgsf-panel-head strong {
    margin-bottom: 4px;
    color: #101828;
    font-size: 23px;
    font-weight: 950;
    line-height: 1.2;
}

.pgsf-panel-head small {
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.pgsf-form .cmb-row {
    display: block;
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pgsf-form .cmb-type-title,
.pgsf-form .pgsf-technical-row {
    display: none !important;
}

.pgsf-form :is(.cmb-th, .cmb-td) {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.pgsf-form :is(.cmb-th label, .cmb-th, .control-label) {
    display: block !important;
    margin: 0 0 8px !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
}

.pgsf-form .cmb2-metabox-description {
    margin: 7px 0 0 !important;
    color: #7a8290 !important;
    font-size: 12px !important;
    font-style: normal !important;
    line-height: 1.5 !important;
}

.pgsf-form :is(input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], select, textarea, .select2-selection) {
    width: 100% !important;
    min-height: 54px !important;
    padding: 13px 15px !important;
    border: 1px solid #d8dce5 !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: #101828 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: none !important;
}

.pgsf-form textarea {
    min-height: 168px !important;
    resize: vertical;
}

.pgsf-form :is(input, select, textarea):focus,
.pgsf-form .select2-container--focus .select2-selection {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .09) !important;
}

.pgsf-form .select2-container {
    width: 100% !important;
}

.pgsf-form .select2-selection__rendered {
    line-height: 28px !important;
}

.pgsf-field-error :is(input, select, textarea, .select2-selection) {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .08) !important;
}

.pgsf-field-error-message {
    display: block;
    margin-top: 7px;
    color: #be123c;
    font-size: 12px;
    font-weight: 750;
}

.pgsf-category-native,
.pgsf-category-field > .cmb-td > .select2-container {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.pgsf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.pgsf-category-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 82px;
    padding: 14px;
    border: 1px solid #ddd8e5;
    border-radius: 17px;
    background: #fff;
    color: #171225;
    text-align: left;
    white-space: normal !important;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pgsf-category-card:hover {
    border-color: #b795ff;
    background: #fcfaff;
    transform: translateY(-1px);
}

.pgsf-category-card.is-selected {
    border-color: #6f2cff;
    background: #f8f4ff;
    box-shadow: 0 0 0 3px rgba(111, 44, 255, .09);
}

.pgsf-category-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #fff2bd;
    font-size: 21px;
}

.pgsf-category-card strong {
    min-width: 0;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
}

.pgsf-category-card__check {
    display: none;
    margin-left: auto;
    color: #6f2cff;
    font-size: 18px;
    font-weight: 900;
}

.pgsf-category-card.is-selected .pgsf-category-card__check {
    display: block;
}

.pgsf-location-row .cmb-td {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pgsf-location-row .cmb-td > :not(select):not(.select2-container):not(.cmb2-metabox-description) {
    grid-column: 1 / -1;
}

.pgsf-location-row .cmb2-metabox-description {
    grid-column: 1 / -1;
}

.pgsf-upload-row .cmb-td {
    min-height: 116px;
    padding: 16px !important;
    border: 1px dashed #cfc6dc;
    border-radius: 17px;
    background: #fbf9ff;
}

.pgsf-upload-row :is(.cmb2-upload-button, .button, input[type="button"], button:not([type="submit"])) {
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid #c8b6f5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #5f28cf !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}

.pgsf-upload-help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pgsf-upload-help > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #efe7ff;
}

.pgsf-upload-help strong,
.pgsf-upload-help small {
    display: block;
}

.pgsf-upload-help strong {
    color: #31234e;
    font-size: 13px;
}

.pgsf-upload-help small {
    margin-top: 2px;
    color: #7c718a;
    font-size: 11px;
}

.pgsf-preview {
    display: none;
}

.pgsf-preview__cover {
    position: relative;
    min-height: 175px;
    padding: 28px;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(circle at 80% 12%, rgba(255, 198, 71, .48), transparent 27%), linear-gradient(135deg, #271056 0%, #7130ee 56%, #9f6cff 100%);
    color: #fff;
}

.pgsf-preview__cover:after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -85px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .04), 0 0 0 72px rgba(255, 255, 255, .03);
}

.pgsf-preview__cover small,
.pgsf-preview__cover h2,
.pgsf-preview__cover p {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 690px;
}

.pgsf-preview__cover small {
    margin-bottom: 10px;
    color: #ffd977;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .09em;
}

.pgsf-preview__cover h2 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: clamp(28px, 4vw, 39px) !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    letter-spacing: -.045em !important;
}

.pgsf-preview__cover p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .82) !important;
    line-height: 1.55 !important;
}

.pgsf-preview__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.pgsf-preview__item {
    min-height: 82px;
    padding: 15px;
    border: 1px solid #e8e3ed;
    border-radius: 15px;
    background: #fbfafc;
}

.pgsf-preview__item small,
.pgsf-preview__item strong {
    display: block;
}

.pgsf-preview__item small {
    margin-bottom: 5px;
    color: #7c8492;
    font-size: 11px;
    font-weight: 750;
}

.pgsf-preview__item strong {
    color: #202033;
    font-size: 14px;
    line-height: 1.4;
}

.pgsf-actions {
    position: static;
    z-index: 35;
    display: none;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.pgsf-actions button {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.pgsf-actions__back {
    margin-right: auto;
    border: 1px solid #d8dce5;
    background: #fff;
    color: #344054;
}

.pgsf-actions__next {
    min-width: 210px;
    margin-left: auto;
    border: 1px solid #6f2cff;
    background: linear-gradient(135deg, #7c3aed, #6221df);
    color: #fff;
    box-shadow: 0 11px 25px rgba(111, 44, 255, .23);
}

.pgsf-native-submit {
    min-height: 52px !important;
    padding: 0 25px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #6f2cff !important;
    color: #fff !important;
    font-weight: 900 !important;
}

.pgsf-ready .pgsf-native-submit {
    display: none !important;
}

.pgsf-ready .pgsf-actions {
    display: flex;
}

.pgsf-ready .pgsf-form[data-pgsf-step="1"] .pgsf-field--step-2,
.pgsf-ready .pgsf-form[data-pgsf-step="1"] .pgsf-panel-head--2,
.pgsf-ready .pgsf-form[data-pgsf-step="1"] .pgsf-panel-head--3,
.pgsf-ready .pgsf-form[data-pgsf-step="1"] .pgsf-preview,
.pgsf-ready .pgsf-form[data-pgsf-step="2"] .pgsf-field--step-1,
.pgsf-ready .pgsf-form[data-pgsf-step="2"] .pgsf-panel-head--1,
.pgsf-ready .pgsf-form[data-pgsf-step="2"] .pgsf-panel-head--3,
.pgsf-ready .pgsf-form[data-pgsf-step="2"] .pgsf-preview,
.pgsf-ready .pgsf-form[data-pgsf-step="3"] .pgsf-field,
.pgsf-ready .pgsf-form[data-pgsf-step="3"] .pgsf-panel-head--1,
.pgsf-ready .pgsf-form[data-pgsf-step="3"] .pgsf-panel-head--2 {
    display: none !important;
}

.pgsf-ready .pgsf-form[data-pgsf-step="3"] .pgsf-panel-head--3,
.pgsf-ready .pgsf-form[data-pgsf-step="3"] .pgsf-preview {
    display: block;
}

@media (max-width: 767px) {
    .pgsf {
        padding: 24px 14px 108px;
    }

    .pgsf__back {
        margin-bottom: 15px;
    }

    .pgsf__hero {
        align-items: flex-start;
        gap: 13px;
    }

    .pgsf__hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 17px;
    }

    .pgsf__hero h1 {
        font-size: 35px !important;
    }

    .pgsf__hero p {
        font-size: 13px !important;
    }

    .pgsf__note {
        padding: 15px;
    }

    .pgsf__steps {
        padding: 14px;
    }

    .pgsf__steps button span {
        display: none;
    }

    .pgsf__steps > i {
        margin: 0 11px;
    }

    .pgsf__card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .pgsf-form .cmb2-metabox,
    .pgsf-category-grid,
    .pgsf-location-row .cmb-td,
    .pgsf-preview__grid {
        grid-template-columns: 1fr;
    }

    .pgsf-field,
    .pgsf-panel-head,
    .pgsf-preview,
    .pgsf-actions {
        grid-column: 1;
    }

    .pgsf-category-card {
        min-height: 72px;
    }

    .pgsf-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }

    .pgsf-actions button {
        flex: 1;
        min-width: 0;
        padding: 0 14px;
    }
}
