/**
 * jobs/css/addjobs.css
 * ------------------------------------------------------------------
 * استخراج‌شده از <style> داخل jobs/addjobs.php (بدون هیچ تغییر ظاهری) —
 * طبق قاعده بخش ۳ سند CONVENTIONS.md (CSS بیشتر از ۱۵۰ خط → فایل جدا).
 * فونت‌ها همچنان از Google Fonts در <head> خود addjobs.php لود می‌شوند
 * (دست‌نخورده، طبق تصمیم صریح این Quest).
 * ------------------------------------------------------------------
 */

:root {
    --brand-logo: #FFC400;
    --primary: #FBB40D;
    --primary-hover: #E19F04;
    --primary-active: #CE9204;
    --primary-deep: #A35800;
    --primary-tint: #FEF5E0;
    --primary-border: #E0A00A;
    --on-primary: #2E2E2E;
    --bg: #F7F5F2;
    --surface: #FFFFFF;
    --ink-strong: #332F2B;
    --text: #4A4642;
    --text-soft: #6E6862;
    --neutral: #CFC9C1;
    --line: #E8E4DE;
    --highlight: #FFC400;
    --success: #167A4A;
    --success-tint: #EAF6EF;
    --alert: #C4321F;
    --alert-tint: #FBEDEA;
    --radius: 20px;
    --shadow: 0 8px 26px rgba(58, 48, 38, .08);
}

* {
    box-sizing: border-box
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.85
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    direction: ltr;
    display: inline-block
}

a {
    color: var(--primary-deep);
    text-decoration: none
}

.shell {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.2rem 1.1rem 3.5rem
}

@media (min-width: 1400px) {
    .shell {
        max-width: 1320px
    }
}

.hero {
    text-align: center;
    margin-bottom: 1.9rem
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: .8rem;
    padding: .4rem .9rem;
    background: var(--primary-tint);
    color: var(--primary-deep);
    margin-bottom: 1rem
}

.hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ink-strong);
    margin-bottom: .5rem
}

.hero p {
    color: var(--text-soft);
    font-size: .96rem;
    max-width: 480px;
    margin: 0 auto
}

.progress-wrap {
    max-width: 560px;
    margin: 0 auto 2.1rem
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: .55rem
}

.progress-meta .current {
    color: var(--primary-deep)
}

.progress-track {
    height: 7px;
    background: var(--line);
    border-radius: 20px;
    overflow: hidden
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    transition: width .35s ease;
    width: 20%
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem
}

@media(min-width:992px) {
    .layout {
        grid-template-columns: 1.3fr .85fr;
        align-items: start
    }

    .preview-col {
        position: sticky;
        top: 1.3rem
    }
}

.card-soft {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.wizard-shell.card-soft {
    padding: 2rem
}

@media(max-width:576px) {
    .wizard-shell.card-soft {
        padding: 1.25rem;
        border-radius: 18px
    }
}

.step-panel {
    display: none
}

.step-panel.active {
    display: block;
    animation: rise .3s ease
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.panel-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink-strong);
    margin-bottom: .35rem
}

.panel-desc {
    color: var(--text-soft);
    font-size: .93rem;
    margin-bottom: 1.5rem
}

.tips-box {
    background: var(--primary-tint);
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.6rem
}

.tips-box .tt {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary-deep);
    margin-bottom: .6rem
}

.tips-box ul {
    margin: 0;
    padding-inline-start: 1.3rem;
    font-size: .85rem;
    color: var(--primary-deep)
}

.tips-box li {
    margin-bottom: .35rem
}

.tips-box li:last-child {
    margin-bottom: 0
}

.field-group.card-soft {
    padding: 1.6rem 1.5rem;
    margin-bottom: 1.15rem
}

.field-group.card-soft:last-of-type {
    margin-bottom: 0
}

.fg-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.3rem
}

.fg-title .fi {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0
}

.fg-title h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-strong);
    margin: 0
}

.fi.c-teal {
    background: #EAFBF7;
    color: #0D9488
}

.fi.c-green {
    background: #EFFBF0;
    color: #16A34A
}

.fi.c-blue {
    background: #EAF4FF;
    color: #1F6FBF
}

.fi.c-purple {
    background: #F5EEFC;
    color: #9333EA
}

/* فallback گرید: اگر Bootstrap دیر لود شود چیدمان نشکند */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -.5rem
}

.row>[class*="col-"] {
    padding: 0 .5rem;
    width: 100%;
    min-width: 0
}

@media(min-width:768px) {
    .row>.col-md-6 {
        width: 50%
    }

    .row>.col-md-3 {
        width: 25%
    }
}

.row>.col-12 {
    width: 100%
}

.row.g-3 {
    row-gap: 1rem
}

.field {
    margin-bottom: 1.3rem
}

.row>[class*="col-"]:last-child .field {
    margin-bottom: 0
}

.form-label {
    font-weight: 700;
    color: var(--ink-strong);
    font-size: .92rem;
    margin-bottom: .5rem;
    display: block
}

.required-star {
    color: var(--alert)
}

/* عرض و ارتفاع صریح — مستقل از Bootstrap */
.form-control,
.form-select {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: .95rem 1.15rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--surface);
    box-shadow: none;
    min-height: 54px;
    appearance: none
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236E6862' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1.1rem center;
    background-size: 14px;
    padding-left: 2.6rem
}

textarea.form-control {
    min-height: 110px;
    resize: vertical
}

.form-control::placeholder {
    color: var(--neutral)
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .22rem rgba(251, 180, 13, .22)
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--alert)
}

.field-hint {
    font-size: .8rem;
    color: var(--text-soft);
    margin-top: .4rem
}

.err-msg {
    font-size: .8rem;
    color: var(--alert);
    margin-top: .35rem;
    display: none
}

.err-msg.show {
    display: block
}

.char-counter {
    font-size: .74rem;
    color: var(--text-soft);
    text-align: left;
    margin-top: .35rem
}

.char-counter.warn {
    color: var(--primary-deep)
}

.char-counter.over {
    color: var(--alert)
}

.ref-locked {
    background: var(--success-tint);
    border: 1px dashed var(--success);
    border-radius: 14px;
    padding: .85rem 1rem;
    font-size: .87rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: .5rem
}

.ref-status {
    font-size: .82rem;
    margin-top: .4rem;
    display: none
}

.ref-status.ok {
    color: var(--success);
    display: block
}

.ref-status.bad {
    color: var(--alert);
    display: block
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: var(--bg);
    border-radius: 14px;
    padding: 1rem 1.1rem
}

.form-check .form-check-input {
    float: none;
    margin: .1em 0 0;
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary)
}

.form-check-label {
    font-size: .92rem
}

.btn-primary-soft {
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: .8rem 1.6rem;
    font-size: .95rem
}

.btn-primary-soft:hover {
    background: var(--primary-hover);
    color: var(--on-primary)
}

.btn-primary-soft:disabled {
    opacity: .6;
    cursor: not-allowed
}

.btn-outline-soft {
    border: 1.5px solid var(--neutral);
    color: var(--text);
    font-weight: 600;
    border-radius: 12px;
    padding: .75rem 1.6rem;
    background: var(--surface);
    font-size: .95rem
}

.btn-outline-soft:disabled {
    opacity: .45
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem
}

@media(min-width:700px) {
    .plan-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

.plan-card {
    position: relative;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.3rem;
    cursor: pointer;
    transition: all .18s ease;
    background: var(--surface)
}

.plan-card:hover {
    border-color: var(--primary-border)
}

.plan-card.selected {
    border-color: var(--primary);
    background: var(--primary-tint);
    box-shadow: var(--shadow)
}

.plan-card.featured::before {
    content: "پیشنهاد ما";
    position: absolute;
    top: -12px;
    right: 1.1rem;
    background: var(--ink-strong);
    color: var(--brand-logo);
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 20px
}

.plan-radio {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem
}

.plan-radio::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0
}

.plan-card.selected .plan-radio {
    border-color: var(--primary)
}

.plan-card.selected .plan-radio::after {
    opacity: 1
}

.plan-name {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--ink-strong)
}

.plan-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-deep);
    margin: .4rem 0 0
}

.plan-price small {
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-soft)
}

.plan-price .was {
    font-size: .8rem;
    color: var(--text-soft);
    text-decoration: line-through;
    display: block;
    font-weight: 400
}

.discount-strip {
    background: var(--success-tint);
    color: var(--success);
    border-radius: 14px;
    padding: .8rem 1rem;
    font-size: .87rem;
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.perk-box {
    border-top: 1px dashed var(--line);
    margin-top: 1.5rem;
    padding-top: 1.2rem
}

.perk-box .t {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink-strong);
    margin-bottom: .8rem
}

.perk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem
}

@media(min-width:700px) {
    .perk-grid {
        grid-template-columns: 1fr 1fr
    }
}

.perk-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .88rem;
    color: var(--text-soft);
    padding: .3rem 0
}

.perk-row i {
    font-size: 1rem;
    color: var(--neutral)
}

.perk-row.unlocked {
    color: var(--ink-strong);
    font-weight: 600
}

.perk-row.unlocked i {
    color: var(--success)
}

.invoice-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden
}

.invoice-head {
    background: var(--bg);
    padding: 1rem 1.2rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink-strong);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.invoice-status {
    font-size: .74rem;
    background: var(--primary-tint);
    color: var(--primary-deep);
    padding: .25rem .65rem;
    border-radius: 20px;
    font-weight: 700
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem
}

.invoice-table td {
    padding: .85rem 1.2rem;
    border-top: 1px solid var(--line)
}

.invoice-table .label {
    color: var(--text-soft)
}

.invoice-table .value {
    font-weight: 700;
    color: var(--ink-strong);
    text-align: left
}

.invoice-total {
    background: var(--ink-strong);
    color: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem
}

.invoice-total .amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-logo)
}

.gateway-box {
    border: 1.5px dashed var(--primary-border);
    border-radius: var(--radius);
    padding: 2.2rem 1.5rem;
    text-align: center;
    background: var(--primary-tint)
}

.gateway-box i.shield {
    font-size: 2.3rem;
    color: var(--primary-deep)
}

.alert-box {
    border-radius: 14px;
    padding: .9rem 1.1rem;
    font-size: .88rem;
    margin-bottom: 1.2rem;
    display: none
}

.alert-box.show {
    display: flex;
    gap: .5rem;
    align-items: flex-start
}

.alert-box.err {
    background: var(--alert-tint);
    color: var(--alert);
    border: 1px solid #E9B5AD
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, .2);
    border-top-color: var(--on-primary);
    border-radius: 50%;
    display: inline-block;
    animation: spin .7s linear infinite;
    vertical-align: -2px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.preview-eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: .85rem;
    padding: 0 .15rem
}

.preview-eyebrow i {
    color: var(--primary-deep)
}

.listing-card {
    overflow: hidden;
    transition: border-color .25s
}

.listing-card.plan-3 {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 196, 0, .16), var(--shadow)
}

.listing-media {
    height: 104px;
    background: linear-gradient(135deg, var(--primary-tint), #FCE7B4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(51, 47, 43, .3);
    font-size: 1.8rem
}

.listing-media .lock-tag {
    position: absolute;
    bottom: .5rem;
    left: .5rem;
    background: rgba(51, 47, 43, .65);
    color: #fff;
    font-size: .66rem;
    padding: .2rem .6rem;
    border-radius: 20px
}

.listing-ribbon {
    position: absolute;
    top: .55rem;
    right: .55rem;
    background: var(--ink-strong);
    color: var(--brand-logo);
    font-size: .66rem;
    font-weight: 700;
    padding: .22rem .65rem;
    border-radius: 20px;
    display: none
}

.listing-card.plan-3 .listing-ribbon {
    display: block
}

.listing-body {
    padding: 1.15rem 1.15rem 1.3rem
}

.listing-cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary-deep);
    background: var(--primary-tint);
    padding: .22rem .6rem;
    border-radius: 20px;
    margin-bottom: .55rem
}

.listing-name {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--ink-strong);
    margin-bottom: .25rem;
    min-height: 1.3em
}

.listing-loc {
    font-size: .82rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .75rem
}

.listing-stars {
    color: var(--highlight);
    font-size: .82rem;
    margin-bottom: .75rem
}

.listing-stars .muted {
    color: var(--line)
}

.listing-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.listing-actions .act {
    font-size: .74rem;
    font-weight: 700;
    border-radius: 20px;
    padding: .4rem .8rem;
    display: flex;
    align-items: center;
    gap: .3rem
}

.act.call {
    background: var(--primary);
    color: var(--on-primary)
}

.act.map {
    background: #EAF2FA;
    color: #2563A8;
    display: none
}

.listing-card.plan-2 .act.map,
.listing-card.plan-3 .act.map {
    display: flex
}

.act.tele {
    background: #EAF4FF;
    color: #1F6FBF;
    display: none
}

.listing-card.plan-3 .act.tele {
    display: flex
}

.listing-foot {
    border-top: 1px dashed var(--line);
    margin-top: 1rem;
    padding-top: .75rem;
    font-size: .74rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-deep);
    outline-offset: 2px
}
