@import url('ui.css?v=20261114ak');

.post-advert-success-popup {
    display: block;
}

.form-div form {
    display: block;
}

.post-advert-page .page-hero,
.post-advert-page .post-advert-form-card {
    width: min(1040px, calc(100% - 24px));
    border-radius: 6px;
}

.post-advert-page .page-hero {
    margin-bottom: 14px;
}

.post-advert-form-card {
    padding: 14px;
}

.post-advert-form {
    display: grid !important;
    gap: 14px;
}

.post-advert-section {
    padding: 20px;
    border: 1px solid #e1e8f0;
    border-radius: 4px;
    background: #f8fafc;
}

.post-advert-section-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e8f0;
}

.post-advert-section-heading h2 {
    color: #17364f;
    font-size: 1.08rem;
}

.post-advert-section-heading p {
    margin: 4px 0 0;
    font-size: 0.84rem;
}

.post-advert-field-grid,
.post-advert-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.post-advert-field {
    min-width: 0;
}

.post-advert-field--wide {
    grid-column: 1 / -1;
}

.post-advert-field label {
    display: block;
    margin-bottom: 6px;
    color: #28456f;
    font-size: 0.84rem;
    font-weight: 700;
}

.post-advert-field label span {
    color: #a95755;
}

.post-advert-field input:not([type="file"]),
.post-advert-field select,
.post-advert-field textarea {
    width: 100%;
}

.post-advert-field textarea {
    height: 110px;
    min-height: 110px;
}

.post-advert-field-help {
    margin: 5px 0 0;
    font-size: 0.78rem;
}

.post-advert-field .errorlist,
.post-advert-section > .errorlist,
.post-advert-form > .errorlist {
    margin: 0 0 6px;
    padding-left: 18px;
    color: #a33434;
    font-size: 0.82rem;
}

.post-advert-photo {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e1e8f0;
    border-radius: 4px;
    background: #ffffff;
}

.post-advert-photo input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.8rem;
}

.post-advert-form-footer {
    display: flex;
    justify-content: flex-end;
    padding: 4px 6px 6px;
}

.post-advert-form-footer .post-advert-submit {
    width: auto;
    min-width: 180px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .post-advert-page .page-hero {
        padding: 20px;
    }

    .post-advert-form-card {
        padding: 10px;
    }

    .post-advert-section {
        padding: 15px;
    }

    .post-advert-field-grid,
    .post-advert-photo-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .post-advert-field--wide {
        grid-column: auto;
    }

    .post-advert-form-footer {
        padding: 2px;
    }

    .post-advert-form-footer .post-advert-submit {
        width: 100%;
    }
}
