/* Hirdetésfeladási UI-prototípus. Minden egyedi szabály a post-ad komponensre korlátozott. */
.post-ad-main {
    background: #f1f5f9;
    min-height: calc(100vh - 160px);
}

.post-ad-main .pa-header {
    max-width: 720px;
    margin: 0 auto 26px;
}

.post-ad-main .pa-title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 34px;
    font-weight: 700;
}

.post-ad-main .pa-progress {
    height: 6px;
    max-width: 520px;
    margin: 0 auto 18px;
    overflow: hidden;
    background: #dbe5f1;
    border-radius: 999px;
}

.post-ad-main .pa-progress__bar {
    height: 100%;
    background: #1e74d6;
    border-radius: 999px;
    transition: width .3s;
}

.post-ad-main .pa-sub {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.post-ad-main .pa-link {
    color: #1e74d6;
    font-weight: 600;
    text-decoration: none;
}

.post-ad-main .pa-link:hover {
    text-decoration: underline;
}

.post-ad-main .pa-card {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.post-ad-main .pa-server-errors {
    max-width: 960px;
    margin: 0 auto 18px;
    font-size: 14px;
}

.post-ad-main .pa-server-errors ul {
    padding-left: 20px;
}

.post-ad-main .pa-field {
    position: relative;
    margin-bottom: 16px;
}

.post-ad-main .pa-field > label {
    position: absolute;
    z-index: 1;
    top: -8px;
    left: 14px;
    padding: 0 6px;
    color: #475569;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}

.post-ad-main .pa-field > label span,
.post-ad-main .pa-dist-title span {
    color: #dc2626;
}

.post-ad-main .pa-field input,
.post-ad-main .pa-field select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}

.post-ad-main .pa-field input:focus,
.post-ad-main .pa-field select:focus {
    border-color: #1e74d6;
    box-shadow: 0 0 0 3px rgba(30, 116, 214, .15);
}

.post-ad-main .pa-field input.is-invalid,
.post-ad-main .pa-field select.is-invalid {
    border-width: 1px;
    border-color: var(--bs-form-invalid-border-color, #dc3545);
}

.post-ad-main .pa-field input.is-invalid:focus,
.post-ad-main .pa-field select.is-invalid:focus {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb, 220, 53, 69), .15);
}

.post-ad-main .pa-field--suffix .pa-suffix {
    position: absolute;
    top: 50%;
    right: 14px;
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-50%);
}

.post-ad-main .pa-field--suffix .pa-suffix sup {
    font-size: .75em;
}

.post-ad-main .pa-field--suffix input {
    padding-right: 80px;
}

.post-ad-main .pa-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
}

.post-ad-main .pa-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: #1e74d6;
}

.post-ad-main .pa-check.is-invalid input[type="checkbox"] {
    outline: 1px solid var(--bs-form-invalid-border-color, #dc3545);
    outline-offset: 0;
}

.post-ad-main .pa-required {
    color: var(--bs-form-invalid-border-color, #dc3545);
}

.post-ad-main .pa-check .pa-info {
    color: #94a3b8;
    font-size: 14px;
}

.post-ad-main .pa-typegroup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-radius: 14px;
    transition: box-shadow .15s;
}

.post-ad-main .pa-typegroup.is-invalid {
    box-shadow: 0 0 0 1px var(--bs-form-invalid-border-color, #dc3545);
}

.post-ad-main .pa-typegroup input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.post-ad-main .pa-typebtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 14px 8px;
    color: #334155;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s;
}

.post-ad-main .pa-typebtn i {
    color: #94a3b8;
    font-size: 22px;
    transition: color .15s;
}

.post-ad-main .pa-typebtn:hover {
    background: #f8fbff;
    border-color: #bcd3ea;
}

.post-ad-main .pa-typegroup input:checked + .pa-typebtn {
    color: #1e74d6;
    background: #e8f1fd;
    border-color: #1e74d6;
    box-shadow: 0 4px 12px rgba(30, 116, 214, .18);
}

.post-ad-main .pa-typegroup input:checked + .pa-typebtn i {
    color: #1e74d6;
}

.post-ad-main .pa-dist-title {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.post-ad-main .pa-dist {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.post-ad-main .pa-dist.is-invalid {
    border-width: 1px;
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    box-shadow: none;
}

.post-ad-main .pa-dist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-ad-main .pa-dist-sub {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.post-ad-main .pa-dist-actions {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.post-ad-main .pa-dist-actions a {
    color: #1e74d6;
    font-weight: 600;
    text-decoration: none;
}

.post-ad-main .pa-dist-actions a:hover {
    text-decoration: underline;
}

.post-ad-main .pa-dist-mapwrap {
    position: relative;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #eaf3fb, #dbe9f5);
    border-radius: 12px;
}

.post-ad-main .pa-dist-mapwrap::before {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 20px;
    background: linear-gradient(180deg, #a7d0ee, #7eb9e2);
    border-radius: 20px;
    content: "";
    opacity: .65;
    transform: translateX(-50%);
}

.post-ad-main .pa-dist-map {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.post-ad-main .pa-dist-map .adv-d {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    color: #334155;
    background: #fff;
    border: 1px solid #e5ecf5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all .12s;
    user-select: none;
}

.post-ad-main .pa-dist-map .adv-d input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.post-ad-main .pa-dist-map .adv-d:hover {
    background: #eef4fb;
    border-color: #bcd3ea;
}

.post-ad-main .pa-dist-map .adv-d.active {
    color: #fff;
    background: #1e74d6;
    border-color: #1e74d6;
    box-shadow: 0 4px 10px rgba(30, 116, 214, .3);
}

.post-ad-main .pa-dist-map .adv-d.river {
    visibility: hidden;
    cursor: default;
}

.post-ad-main .pa-price {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .12s, box-shadow .12s;
}

.post-ad-main .pa-price:focus-within {
    border-color: #1e74d6;
    box-shadow: 0 0 0 3px rgba(30, 116, 214, .15);
}

.post-ad-main .pa-price.is-invalid {
    border-width: 1px;
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    box-shadow: none;
}

.post-ad-main .pa-price.is-invalid:focus-within {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
    box-shadow: 0 0 0 3px rgba(var(--bs-danger-rgb, 220, 53, 69), .15);
}

.post-ad-main .pa-price input {
    min-width: 0;
    flex: 1;
    padding: 10px 0;
    color: #0f172a;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: .3px;
}

.post-ad-main .pa-price input::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.post-ad-main .pa-cur-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    flex: 0 0 auto;
    background: #f1f5f9;
    border-radius: 999px;
}

.post-ad-main .pa-cur-toggle button {
    padding: 6px 14px;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: all .15s;
}

.post-ad-main .pa-cur-toggle button.active {
    color: #fff;
    background: #1e74d6;
    box-shadow: 0 2px 6px rgba(30, 116, 214, .35);
}

.post-ad-main .pa-cur-toggle button:not(.active):hover {
    color: #334155;
}

.post-ad-main .pa-price-hint {
    min-height: 16px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.post-ad-main .pa-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 60px;
    margin: 6px 0 16px;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.post-ad-main .pa-google:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.post-ad-main .pa-google__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-ad-main .pa-phone {
    display: flex;
    gap: 8px;
}

.post-ad-main .pa-phone select {
    width: 112px;
    flex: 0 0 auto;
}

.post-ad-main .pa-phone input {
    min-width: 0;
    flex: 1;
}

.post-ad-main .pa-terms {
    margin: 20px 0 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.post-ad-main .pa-terms .pa-check {
    align-items: flex-start;
}

.post-ad-main .pa-submit {
    display: block;
    width: 100%;
    max-width: 420px;
    height: 56px;
    margin: 0 auto;
    color: #fff;
    background: #1e74d6;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(30, 116, 214, .35);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background .15s, transform .12s;
}

.post-ad-main .pa-required-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto 14px;
    font-size: 14px;
    font-weight: 600;
}

.post-ad-main .pa-required-message[hidden] {
    display: none;
}

.post-ad-main .pa-submit:hover {
    background: #1862b6;
    transform: translateY(-1px);
}

.post-ad-main .pa-submit--inline {
    max-width: 280px;
    margin: 0;
}

.post-ad-main .pa-step2-info {
    margin: 0 0 22px;
    padding: 14px 16px;
    color: #334155;
    background: #eef4fb;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.post-ad-main .pa-field--pw input {
    padding-right: 44px;
}

.post-ad-main .pa-pw-eye {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%);
}

.post-ad-main .pa-pw-eye:hover {
    color: #1e74d6;
    background: #f1f5f9;
}

.post-ad-main .pa-password-hint {
    margin: -8px 4px 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.post-ad-main .pa-resend {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
}

.post-ad-main .pa-step2-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.post-ad-main .pa-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    color: #475569;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.post-ad-main .pa-back:hover {
    color: #1e74d6;
}

@media (max-width: 767px) {
    .post-ad-main .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .post-ad-main .pa-card {
        padding: 22px 18px;
    }

    .post-ad-main .pa-title {
        font-size: 26px;
    }

    .post-ad-main .pa-step2-actions {
        flex-direction: column-reverse;
    }

    .post-ad-main .pa-submit--inline {
        width: 100%;
        max-width: none;
    }
}
