.job-opportunities-page {
    width: var(--shop-shell-width);
    max-width: none;
    min-height: 70vh;
    margin-inline: auto;
    padding: 12px 0 16px;
    color: var(--theme-text);
    background: transparent;
}

.job-opportunities-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
}

.job-opportunities-head {
    min-width: 0;
    margin-bottom: 20px;
    padding: 2px 0 20px;
    border-bottom: 1px solid #ece5da;
    text-align: center;
}

.job-opportunities-head h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 950;
}

.job-opportunities-head p {
    max-width: 620px;
    margin: 0 auto;
    color: #687188;
    font-size: 14px;
    line-height: 2;
}

.job-opportunities-alert {
    margin: 0 0 17px;
    padding: 12px 15px;
    border: 1px solid rgba(231, 81, 90, .24);
    border-radius: 13px;
    color: #b52e38;
    background: rgba(231, 81, 90, .07);
    font-size: 13px;
    font-weight: 800;
}

.job-opportunities-form {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.job-form-section {
    min-width: 0;
    padding: 22px;
    border: 1px solid #ece5da;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 42px rgba(65, 47, 24, .055);
}

.job-form-section-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.job-form-section-title > i {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9a5c00;
    background: rgba(248, 200, 121, .25);
}

.job-form-section-title h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
}

.job-form-section-title p {
    margin: 3px 0 0;
    color: #8a92a5;
    font-size: 11px;
}

.job-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.job-field {
    display: grid;
    min-width: 0;
    margin: 0;
    gap: 6px;
    grid-column: span 3;
}

.job-field--third {
    grid-column: span 2;
}

.job-field--wide {
    grid-column: span 6;
}

.job-field > span {
    color: #424b60;
    font-size: 12px;
    font-weight: 850;
}

.job-field input,
.job-field select,
.job-skill-row input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #dfe3ea;
    border-radius: 13px;
    outline: none;
    color: #172033;
    background: #fff;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.job-field input:focus,
.job-field select:focus,
.job-skill-row input:focus {
    border-color: #d69a3e;
    box-shadow: 0 0 0 4px rgba(248, 200, 121, .20);
}

.job-field small,
.job-section-error {
    color: #d33f4b;
    font-size: 11px;
    font-weight: 750;
}

.job-field input[data-job-birth-date-jalali] {
    cursor: pointer;
    text-align: center;
    background-image: linear-gradient(45deg, transparent 50%, #9a5c00 50%),
        linear-gradient(135deg, #9a5c00 50%, transparent 50%);
    background-position: 15px 21px, 10px 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.datepicker-container {
    z-index: 99999 !important;
    direction: rtl !important;
}

.datepicker-container.job-datepicker-desktop {
    width: 286px !important;
}

.datepicker-container.job-datepicker-desktop .datepicker-plot-area {
    position: relative !important;
    inset: auto !important;
}

.datepicker-container.job-datepicker-mobile:not(.pwt-hide) {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    padding: max(12px, env(safe-area-inset-top))
        max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: rgba(21, 28, 39, .48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.datepicker-container.job-datepicker-mobile .datepicker-plot-area {
    position: relative !important;
    inset: auto !important;
    width: min(360px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 24px);
    overflow: auto !important;
    padding: 7px !important;
    border-radius: 20px !important;
}

body.job-datepicker-open {
    overflow: hidden;
}

.datepicker-plot-area {
    width: 286px !important;
    max-width: calc(100vw - 24px) !important;
    border: 1px solid #e6d7bf !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    box-shadow: 0 18px 45px rgba(40, 30, 18, .18) !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-year-view .year-item.selected,
.datepicker-plot-area .datepicker-month-view .month-item.selected {
    background-color: #d89b3b !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.disabled span {
    color: #9a9da4 !important;
    background: #f4f1ec !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.disabled span.other-month {
    color: #b8bbc1 !important;
    background: #f8f6f2 !important;
}

.job-section-error {
    display: block;
    margin-top: 8px;
}

.job-request-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.job-request-type {
    position: relative;
    min-width: 0;
    min-height: 112px;
    padding: 17px;
    border: 1px solid #e0e4eb;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    background: #fff;
    user-select: none;
    transition: all .18s ease;
}

.job-request-type:hover {
    transform: translateY(-1px);
    border-color: #e4b465;
}

.job-request-type > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.job-request-type > i {
    color: #a66c14;
    font-size: 24px;
}

.job-request-type strong {
    font-size: 13px;
}

.job-request-type-check {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 21px;
    height: 21px;
    border: 1px solid #d5dae3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #fff;
    font-size: 9px;
}

.job-request-type:has(input:checked) {
    border-color: #d89b3b;
    background: #fff8ec;
    box-shadow: 0 9px 24px rgba(216, 155, 59, .12);
}

.job-request-type:has(input:checked) .job-request-type-check {
    color: #fff;
    border-color: #d89b3b;
    background: #d89b3b;
}

.job-skills {
    display: grid;
    gap: 8px;
}

.job-skill-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.job-skill-row button,
.job-add-skill {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
}

.job-skill-row button {
    min-width: 44px;
    min-height: 44px;
    color: #d23d49;
    background: rgba(231, 81, 90, .09);
}

.job-add-skill {
    margin-top: 9px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #88530a;
    background: rgba(248, 200, 121, .24);
    font-size: 12px;
    font-weight: 850;
}

.job-resume-upload {
    position: relative;
    min-width: 0;
    min-height: 170px;
    padding: 22px;
    border: 2px dashed #dcc59f;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-align: center;
    background: #fffbf4;
    transition: all .18s ease;
}

.job-resume-upload:hover,
.job-resume-upload.has-file {
    border-color: #d49736;
    background: #fff7e8;
}

.job-resume-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
}

.job-resume-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9a5c00;
    background: rgba(248, 200, 121, .3);
    font-size: 22px;
}

.job-resume-upload strong {
    max-width: 100%;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.job-resume-upload small {
    max-width: 100%;
    color: #858da0;
    overflow-wrap: anywhere;
}

.job-form-submit {
    min-width: 0;
    padding: 17px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: #172033;
}

.job-form-submit p {
    min-width: 0;
    margin: 0;
    color: #d9dfeb;
    font-size: 12px;
    line-height: 1.9;
}

.job-form-submit button {
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #2a1a00;
    background: #f8c879;
    font: inherit;
    font-weight: 950;
    white-space: nowrap;
}

.job-form-submit-action {
    min-width: 220px;
    display: grid;
    justify-items: end;
    gap: 7px;
}

.job-form-feedback {
    max-width: 380px;
    color: #ffb4ba;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.8;
    text-align: right;
}

.job-form-feedback[hidden],
.job-otp-message[hidden] {
    display: none !important;
}

.job-form-submit button:disabled,
.job-otp-verify:disabled,
.job-otp-resend button:disabled {
    cursor: wait;
    opacity: .62;
}

.job-form-submit button.is-loading::after,
.job-otp-verify.is-loading::after {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    content: "";
    animation: job-spin .7s linear infinite;
}

.job-otp-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: 16px;
    display: grid;
    place-items: center;
}

.job-otp-dialog[hidden] {
    display: none !important;
}

.job-otp-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 17, 31, .72);
    backdrop-filter: blur(8px);
}

.job-otp-card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 32px;
    border: 1px solid rgba(248, 200, 121, .45);
    border-radius: 24px;
    color: #172033;
    background: #fff;
    box-shadow: 0 30px 90px rgba(7, 17, 31, .32);
    text-align: center;
}

.job-otp-close {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    color: #6d7588;
    background: #f3f5f8;
    cursor: pointer;
}

.job-otp-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    color: #965900;
    background: rgba(248, 200, 121, .3);
    font-size: 25px;
}

.job-otp-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.job-otp-card p {
    margin: 0;
    color: #6d7588;
    font-size: 13px;
    line-height: 1.9;
}

.job-otp-card p bdi {
    color: #172033;
    font-weight: 900;
}

.job-otp-inputs {
    margin: 22px auto 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.job-otp-inputs input {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    outline: none;
    color: #172033;
    background: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.job-otp-inputs input:focus {
    border-color: #d69a3e;
    box-shadow: 0 0 0 4px rgba(248, 200, 121, .2);
}

.job-otp-message {
    display: block;
    margin: 0 0 12px;
    color: #d33f4b;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.8;
}

.job-otp-message[data-type="success"] {
    color: #008c47;
}

.job-otp-verify {
    width: 100%;
    min-height: 50px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2a1a00;
    background: #f8c879;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
}

.job-otp-resend {
    min-height: 26px;
    margin-top: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #858da0;
    font-size: 11px;
}

.job-otp-resend button {
    padding: 2px 5px;
    border: 0;
    color: #9a5c00;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.job-otp-resend button:disabled {
    color: #a1a8b5;
    cursor: default;
}

body.job-otp-open {
    overflow: hidden;
}

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

.job-opportunities-success-page {
    display: flex;
    align-items: center;
}

.job-success-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #ece5da;
    border-radius: 24px;
    text-align: center;
    background: #fff;
    box-shadow: 0 20px 52px rgba(65, 47, 24, .08);
}

.job-success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #00ab55;
    font-size: 26px;
}

.job-success-card h1 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 950;
}

.job-success-card p {
    margin: 0;
    color: #6d7588;
    line-height: 2;
}

.job-success-meta {
    margin: 20px 0;
    padding: 13px;
    border-radius: 13px;
    display: grid;
    gap: 4px;
    background: #fff7e8;
}

.job-success-meta span {
    color: #8b7960;
    font-size: 11px;
}

.job-success-card > a {
    min-height: 46px;
    padding: 0 17px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    color: #2a1a00;
    background: #f8c879;
    font-weight: 900;
    text-decoration: none;
}

html[data-theme="dark"] .job-opportunities-page,
body.dark .job-opportunities-page {
    color: #f1f5f9;
    background: transparent;
}

html[data-theme="dark"] .job-form-section,
html[data-theme="dark"] .job-success-card,
html[data-theme="dark"] .job-field input,
html[data-theme="dark"] .job-field select,
html[data-theme="dark"] .job-skill-row input,
html[data-theme="dark"] .job-request-type,
body.dark .job-form-section,
body.dark .job-success-card,
body.dark .job-field input,
body.dark .job-field select,
body.dark .job-skill-row input,
body.dark .job-request-type {
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, .18);
    background: #151f31;
}

html[data-theme="dark"] .job-field > span,
html[data-theme="dark"] .job-opportunities-head p,
html[data-theme="dark"] .job-form-section-title p,
html[data-theme="dark"] .job-success-card p,
body.dark .job-field > span,
body.dark .job-opportunities-head p,
body.dark .job-form-section-title p,
body.dark .job-success-card p {
    color: #a7b0c2;
}

html[data-theme="dark"] .job-request-type:has(input:checked),
html[data-theme="dark"] .job-resume-upload,
body.dark .job-request-type:has(input:checked),
body.dark .job-resume-upload {
    background: rgba(248, 200, 121, .08);
}

html[data-theme="dark"] .job-resume-upload,
body.dark .job-resume-upload {
    border-color: rgba(248, 200, 121, .42);
}

html[data-theme="dark"] .job-success-meta,
body.dark .job-success-meta {
    background: rgba(248, 200, 121, .09);
}

html[data-theme="dark"] .job-opportunities-head,
body.dark .job-opportunities-head {
    border-bottom-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .datepicker-plot-area,
body.dark .datepicker-plot-area {
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, .2) !important;
    background: #151f31 !important;
}

html[data-theme="dark"] .job-otp-card,
html[data-theme="dark"] .job-otp-inputs input,
body.dark .job-otp-card,
body.dark .job-otp-inputs input {
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, .2);
    background: #151f31;
}

html[data-theme="dark"] .job-otp-card p,
body.dark .job-otp-card p {
    color: #a7b0c2;
}

html[data-theme="dark"] .job-otp-card p bdi,
body.dark .job-otp-card p bdi {
    color: #f1f5f9;
}

html[data-theme="dark"] .job-otp-close,
body.dark .job-otp-close {
    color: #cbd5e1;
    background: #1d293d;
}

html[data-theme="dark"] .datepicker-plot-area .datepicker-navigator,
html[data-theme="dark"] .datepicker-plot-area .datepicker-day-view .month-grid-box .header,
body.dark .datepicker-plot-area .datepicker-navigator,
body.dark .datepicker-plot-area .datepicker-day-view .month-grid-box .header {
    background: #1d293d !important;
}

html[data-theme="dark"] .datepicker-plot-area .datepicker-day-view .table-days td.disabled span,
body.dark .datepicker-plot-area .datepicker-day-view .table-days td.disabled span {
    color: #7f8a9b !important;
    background: #1a2537 !important;
}

html[data-theme="dark"] .datepicker-plot-area .datepicker-day-view .table-days td.disabled span.other-month,
body.dark .datepicker-plot-area .datepicker-day-view .table-days td.disabled span.other-month {
    color: #626d7e !important;
    background: #182234 !important;
}

@media (max-width: 991.98px) {
    .job-opportunities-page {
        padding: 10px 0 14px;
    }

    .job-form-section {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .job-opportunities-page {
        width: var(--shop-shell-width);
        min-height: auto;
        padding: 8px 0 12px;
    }

    .job-opportunities-head {
        margin-bottom: 18px;
        padding: 0 0 17px;
    }

    .job-opportunities-head h1 {
        font-size: clamp(29px, 9vw, 38px);
    }

    .job-opportunities-head p {
        max-width: 34rem;
        font-size: 13px;
        line-height: 1.9;
    }

    .job-form-section {
        padding: 18px;
        border-radius: 17px;
    }

    .job-form-grid {
        grid-template-columns: 1fr;
    }

    .job-field,
    .job-field--third,
    .job-field--wide {
        grid-column: 1 / -1;
    }

    .job-request-types {
        grid-template-columns: 1fr;
    }

    .job-request-type {
        min-height: 82px;
        padding: 14px 52px 14px 14px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        text-align: right;
    }

    .job-request-type-check {
        top: 50%;
        right: 16px;
        left: auto;
        transform: translateY(-50%);
    }

    .job-request-type > i {
        font-size: 22px;
    }

    .job-form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .job-form-submit button {
        justify-content: center;
        width: 100%;
    }

    .job-form-submit-action {
        min-width: 0;
        width: 100%;
        justify-items: stretch;
    }

    .job-form-feedback {
        max-width: none;
        text-align: center;
    }

    .job-success-card {
        padding: 30px 18px;
    }
}

@media (max-width: 575.98px) {
    .datepicker-plot-area {
        width: min(310px, calc(100vw - 24px)) !important;
    }

    .job-opportunities-page {
        padding: 6px 0 10px;
    }

    .job-opportunities-head h1 {
        margin-bottom: 7px;
    }

    .job-opportunities-form {
        gap: 11px;
    }

    .job-form-section {
        padding: 15px;
        border-radius: 15px;
    }

    .job-form-section-title {
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .job-form-section-title > i {
        width: 38px;
        min-width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .job-form-section-title h2 {
        font-size: 16px;
    }

    .job-form-grid {
        gap: 11px;
    }

    .job-field--wide {
        grid-column: auto;
    }

    .job-field input,
    .job-field select,
    .job-skill-row input {
        height: 50px;
        border-radius: 12px;
        font-size: 16px;
    }

    .job-field > span {
        font-size: 12px;
    }

    .job-request-types {
        gap: 8px;
    }

    .job-request-type {
        min-height: 70px;
        border-radius: 14px;
    }

    .job-skill-row {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .job-add-skill {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .job-resume-upload {
        min-height: 150px;
        padding: 18px 12px;
        border-radius: 15px;
    }

    .job-resume-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .job-form-submit {
        padding: 15px;
        border-radius: 15px;
        gap: 12px;
    }

    .job-form-submit p {
        font-size: 11px;
    }

    .job-form-submit button {
        min-height: 52px;
        white-space: normal;
        text-align: center;
    }

    .job-otp-dialog {
        padding: 12px;
    }

    .job-otp-card {
        padding: 28px 16px 22px;
        border-radius: 19px;
    }

    .job-otp-card h2 {
        font-size: 20px;
    }

    .job-otp-inputs {
        gap: 6px;
    }

    .job-otp-inputs input {
        border-radius: 10px;
        font-size: 18px;
    }

    .job-success-card {
        padding: 26px 15px;
        border-radius: 18px;
    }

    .job-success-card h1 {
        font-size: 25px;
    }
}

@media (max-width: 359.98px) {
    .job-form-section {
        padding: 13px;
    }

    .job-request-type {
        padding-left: 10px;
        padding-right: 47px;
    }

    .job-request-type-check {
        right: 13px;
    }
}

@media (hover: none) {
    .job-request-type:hover,
    .job-resume-upload:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job-request-type,
    .job-resume-upload,
    .job-field input,
    .job-field select,
    .job-skill-row input {
        transition: none;
    }
}
