/* "Post a job" page (/dodaj-zlecenie). Builds on landing.css (buttons, section
   headings, .form-group, .faq, .how-works, .download-section). */

.post-job-hero [hidden] {
    display: none !important;
}

.post-job-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.post-job-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 160%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.post-job-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.post-job-intro {
    padding-top: 24px;
}

.post-job-intro .section-badge i {
    margin-right: 4px;
}

.post-job-intro h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.post-job-intro .subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 28px;
}

.post-job-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-job-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #334155;
    font-weight: 500;
}

.post-job-points i {
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Card */
.pj-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
    padding: 32px;
    scroll-margin-top: 96px;
}

.pj-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.pj-step-lead {
    color: #64748b;
    margin-bottom: 22px;
}

/* Stepper */
.pj-stepper {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 28px;
    counter-reset: pj-step;
}

.pj-stepper li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.pj-stepper li::before {
    counter-increment: pj-step;
    content: counter(pj-step);
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    transition: all 0.2s ease;
}

.pj-stepper li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: #e2e8f0;
}

.pj-stepper li.active {
    color: #1d4ed8;
}

.pj-stepper li.active::before {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.pj-stepper li.done {
    color: #0f172a;
}

.pj-stepper li.done::before {
    content: '\2713';
    background: #10b981;
    color: #ffffff;
}

.pj-stepper li.done::after {
    background: #10b981;
}

/* Fields */
.pj-card .form-group {
    margin-bottom: 18px;
}

.pj-card .form-row {
    gap: 16px;
}

.pj-card .form-group input,
.pj-card .form-group textarea {
    font-family: inherit;
    font-size: 15px;
}

.pj-card .form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.pj-card .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pj-card .form-group .has-error {
    border-color: #ef4444;
}

.pj-optional {
    font-weight: 400;
    font-size: 0.875rem;
    color: #94a3b8;
}

.pj-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #64748b;
}

.pj-counter {
    white-space: nowrap;
}

.pj-error {
    margin-top: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #dc2626;
}

.pj-error:empty {
    display: none;
}

.pj-hint {
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #64748b;
}

.pj-input-suffix {
    position: relative;
}

.pj-input-suffix input {
    padding-right: 52px;
}

.pj-suffix {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.pj-row-street {
    grid-template-columns: minmax(0, 1fr) 120px;
}

.pj-row-city {
    grid-template-columns: 200px minmax(0, 1fr);
}

/* Labels of different lengths ("Postal code (optional)") must not push inputs out of line. */
.pj-row-street label,
.pj-row-city label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pj-block {
    width: 100%;
}

.pj-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.pj-actions .btn-primary {
    flex: 1;
}

.pj-card .btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.pj-link {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
}

.pj-link:hover:not([disabled]) {
    text-decoration: underline;
}

.pj-link[disabled] {
    color: #94a3b8;
    cursor: default;
}

/* Alerts */
.pj-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.9375rem;
    font-weight: 500;
}

.pj-alert.pj-alert-info {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

/* Address search + map */
.pj-autocomplete {
    position: relative;
}

.pj-autocomplete > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
}

.pj-card .pj-autocomplete input {
    padding-left: 44px;
}

.pj-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.pj-suggestions [role="option"] {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.pj-suggestions [role="option"]:hover,
.pj-suggestions [role="option"][aria-selected="true"] {
    background: #eff6ff;
}

.pj-suggestion-main {
    font-weight: 600;
    color: #0f172a;
}

.pj-suggestion-secondary {
    font-size: 0.8125rem;
    color: #64748b;
}

.pj-suggestion-empty {
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.pj-suggestions-attribution {
    padding: 4px 12px 2px;
    text-align: right;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.pj-map {
    height: 300px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.pj-map + .pj-hint {
    margin-top: 0;
    margin-bottom: 12px;
}

.pj-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.875rem;
    color: #475569;
}

.pj-note i {
    margin-right: 6px;
    color: #3b82f6;
}

.pj-map-status {
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #047857;
}

.pj-map-status:empty {
    display: none;
}

/* Email step */
.pj-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pj-card .checkbox-label a {
    color: #1d4ed8;
}

.pj-recaptcha-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.pj-recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}

/* Code step */
.pj-code-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 12px 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
}

.pj-code-intro i {
    margin-top: 2px;
    font-size: 1.5rem;
    color: #3b82f6;
}

.pj-code-intro strong {
    overflow-wrap: anywhere;
}

.pj-card .form-group input.pj-code-input {
    padding: 14px 16px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    font-variant-numeric: tabular-nums;
}

.pj-code-input::placeholder {
    color: #cbd5e1;
}

.pj-code-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 8px;
    font-size: 0.875rem;
}

/* Summary */
.pj-summary {
    text-align: center;
}

.pj-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    color: #ffffff;
    font-size: 2rem;
}

.pj-summary-list {
    margin: 20px 0;
    padding: 6px 18px;
    border-radius: 16px;
    background: #f8fafc;
    text-align: left;
}

.pj-summary-list > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.pj-summary-list > div:last-child {
    border-bottom: none;
}

.pj-summary-list dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.pj-summary-list dd {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.pj-account-box {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
    font-size: 0.9375rem;
}

.pj-download {
    margin: 8px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pj-download h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.pj-download p {
    color: #64748b;
    margin-bottom: 12px;
}

.pj-download .store-badge {
    display: inline-block;
}

@media (max-width: 1024px) {
    .post-job-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .post-job-intro {
        padding-top: 0;
    }

    .post-job-intro h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .post-job-hero {
        padding: 96px 0 48px;
    }

    .post-job-intro h1 {
        font-size: 2rem;
    }

    .post-job-intro .subtitle {
        margin-bottom: 16px;
    }

    .post-job-points {
        display: none;
    }

    .pj-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .pj-stepper li {
        font-size: 0.6875rem;
    }

    .pj-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pj-card .form-row.pj-row-street {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 12px;
    }

    .pj-map {
        height: 240px;
    }

    .pj-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .pj-card .form-group input.pj-code-input {
        font-size: 1.625rem;
        letter-spacing: 0.35em;
        text-indent: 0.35em;
    }

    .pj-summary-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
