/**
 * HRDesk — public Careers / Apply portal skin.
 *
 * These pages render INSIDE the Perfex "aarav" clients-area theme (Metronic /
 * Bootstrap 5), so they inherit the site header, footer, Inter font and the
 * theme's colour tokens. This file only adds the careers-specific furniture
 * (hero, role cards, chips, apply form) on top of that shell.
 *
 * Everything is scoped under `.hrd-careers-page` (a body class the controllers
 * set) so it can never leak into the rest of the clients area, and it leans on
 * the theme's own `--bs-*` variables so light and dark modes both work for free.
 */

.hrd-careers-page {
    --hrc-radius: 1rem;
    --hrc-radius-sm: 0.65rem;
    --hrc-shadow: 0 6px 24px rgba(20, 30, 60, .06);
    --hrc-shadow-lg: 0 14px 40px rgba(20, 30, 60, .12);
}

.hrd-careers-page #kt_app_main {
    background: var(--bs-body-bg);
}

/* Content wraps in the theme's own `.container` (max-width 1320px) so the
   overall width matches the rest of the clients area exactly. This alias is
   kept for any standalone use (e.g. the unsubscribe status card). */
.hrc-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Two-column layout (content left · sticky form right) ---------- */
/* Uses the theme's Bootstrap 5 .row/.col-lg-* classes in markup. Columns are
   left at their default stretch so BOTH columns grow to the tallest one's
   height — that gives the shorter column's sticky child room to pin while the
   taller column scrolls (long job description → the form stays fixed; short
   description → the job summary stays fixed). */
.hrc-row-2col {
    align-items: stretch;
}

@media (min-width: 992px) {
    .hrc-sticky {
        position: sticky;
        top: 24px;
    }
}

.hrc-side-title {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bs-gray-500, #6b7688);
    margin: 0 0 .85rem;
}

.hrc-side-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: 1.35rem 1.4rem;
    box-shadow: var(--hrc-shadow);
}

.hrc-side-card + .hrc-side-card {
    margin-top: 1.25rem;
}

.hrc-side-card .form-control,
.hrc-side-card .form-select {
    padding: .65rem .85rem;
    height: auto;
    margin-bottom: .7rem;
}

.hrc-side-card .btn {
    width: 100%;
}

/* ---------- Hero ---------- */
.hrc-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--hrc-radius);
    padding: 2.75rem 2.25rem;
    margin: 1.75rem 0 1.5rem;
    color: #fff;
    background: linear-gradient(120deg, #1b84ff 0%, #2f6df6 48%, #4f46e5 100%);
    box-shadow: var(--hrc-shadow-lg);
}

.hrc-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hrc-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 600;
    opacity: .85;
    margin-bottom: .5rem;
}

.hrc-hero__title {
    font-size: 2.15rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 .6rem;
    color: #fff;
}

.hrc-hero__sub {
    font-size: 1.02rem;
    opacity: .92;
    margin: 0;
    max-width: 34rem;
}

.hrc-hero__count {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1.1rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(2px);
    font-size: .85rem;
    font-weight: 600;
}

/* ---------- Filter bar ---------- */
.hrc-filters {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: .85rem;
    box-shadow: var(--hrc-shadow);
    margin-bottom: 1.5rem;
}

.hrc-filters .form-control,
.hrc-filters .form-select {
    height: auto;
    padding: .7rem .9rem;
}

.hrc-filters .hrc-filters__kw {
    flex: 1;
    min-width: 190px;
}

.hrc-filters .form-select {
    max-width: 190px;
}

/* ---------- Role cards ---------- */
.hrc-jobs {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.hrc-job {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--hrc-shadow);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.hrc-job:hover {
    transform: translateY(-2px);
    box-shadow: var(--hrc-shadow-lg);
    border-color: var(--bs-primary, #1b84ff);
    color: inherit;
}

.hrc-job__body {
    flex: 1;
    min-width: 0;
}

.hrc-job__title {
    font-size: 1.18rem;
    font-weight: 600;
    margin: 0 0 .55rem;
    color: var(--bs-heading-color, var(--bs-gray-900));
}

.hrc-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.hrc-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--bs-gray-700, #4b5563);
    background: var(--bs-gray-100, #f4f6fb);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: 999px;
    padding: .28rem .7rem;
}

.hrc-chip i {
    font-size: .95rem;
    color: var(--bs-primary, #1b84ff);
}

.hrc-chip--remote {
    color: var(--bs-success, #17c653);
    background: rgba(23, 198, 83, .1);
    border-color: rgba(23, 198, 83, .25);
}

.hrc-chip--remote i {
    color: var(--bs-success, #17c653);
}

.hrc-job__go {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--bs-primary, #1b84ff);
    white-space: nowrap;
}

.hrc-job__go i {
    transition: transform .14s ease;
}

.hrc-job:hover .hrc-job__go i {
    transform: translateX(3px);
}

/* ---------- Empty state ---------- */
.hrc-empty {
    text-align: center;
    background: var(--bs-card-bg, #fff);
    border: 1px dashed var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: 3rem 1.5rem;
}

.hrc-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-gray-100, #f4f6fb);
    color: var(--bs-primary, #1b84ff);
    font-size: 1.6rem;
}

.hrc-empty__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 .35rem;
}

.hrc-empty p {
    color: var(--bs-gray-600, #6b7688);
    margin: 0;
}

/* ---------- Job-alert card ---------- */
.hrc-alertbox {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: var(--hrc-shadow);
    margin-top: 1.75rem;
}

.hrc-alertbox__head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .35rem;
}

.hrc-alertbox__ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 132, 255, .12);
    color: var(--bs-primary, #1b84ff);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hrc-alertbox h2 {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0;
}

.hrc-alertbox p {
    color: var(--bs-gray-600, #6b7688);
    margin: 0 0 1rem;
    font-size: .93rem;
}

.hrc-arow {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.hrc-arow .form-control,
.hrc-arow .form-select {
    padding: .7rem .9rem;
    height: auto;
}

.hrc-arow .hrc-arow__email {
    flex: 1;
    min-width: 210px;
}

.hrc-arow .form-select {
    max-width: 170px;
}

.hrc-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---------- Apply page ---------- */
.hrc-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--bs-gray-600, #6b7688);
    text-decoration: none;
    margin: 1.75rem 0 1rem;
    transition: color .15s ease;
}

.hrc-back:hover {
    color: var(--bs-primary, #1b84ff);
}

.hrc-card {
    background: var(--bs-card-bg, #fff);
    border: 1px solid var(--bs-border-color, #e6e9f0);
    border-radius: var(--hrc-radius-sm);
    padding: 1.75rem 1.9rem;
    box-shadow: var(--hrc-shadow);
    margin-bottom: 1.25rem;
}

.hrc-card__title {
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 .85rem;
}

.hrc-desc {
    margin-top: 1.1rem;
    white-space: pre-line;
    color: var(--bs-gray-700, #4b5563);
    line-height: 1.65;
}

.hrc-form-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.hrd-careers-page .hrc-field {
    margin-bottom: 1.15rem;
}

.hrd-careers-page .hrc-field > label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 .4rem;
    color: var(--bs-gray-800, #374151);
}

.hrd-careers-page .hrc-field .form-control,
.hrd-careers-page .hrc-field .form-select {
    padding: .7rem .9rem;
    height: auto;
}

.hrc-req {
    color: var(--bs-danger, #f1416c);
}

.hrc-hint {
    font-size: .8rem;
    color: var(--bs-gray-500, #6b7688);
    margin-top: .35rem;
}

.hrc-opt {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 400;
    margin: .35rem 0;
    cursor: pointer;
}

.hrc-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hrc-row > .hrc-field {
    flex: 1;
    min-width: 200px;
}

.hrc-note {
    background: rgba(23, 198, 83, .1);
    border: 1px solid rgba(23, 198, 83, .35);
    color: var(--bs-success-active, #04aa77);
    border-radius: var(--hrc-radius-sm);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hrc-alert {
    background: rgba(241, 65, 108, .1);
    border: 1px solid rgba(241, 65, 108, .35);
    color: var(--bs-danger, #f1416c);
    border-radius: var(--hrc-radius-sm);
    padding: .85rem 1.1rem;
    margin-bottom: 1.1rem;
}

/* ---------- Centered status card (unsubscribe) ---------- */
.hrc-status {
    max-width: 520px;
    margin: 3rem auto;
}

.hrc-status .hrc-card {
    text-align: center;
    padding: 2.25rem;
}

.hrc-status__ic {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.hrc-status__ic--ok {
    background: rgba(23, 198, 83, .12);
    color: var(--bs-success, #17c653);
}

.hrc-status__ic--err {
    background: rgba(241, 65, 108, .12);
    color: var(--bs-danger, #f1416c);
}

.hrc-status h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.hrc-status p {
    color: var(--bs-gray-600, #6b7688);
    margin: 0;
}

/* ---------- Offer letter ---------- */
.hrc-offer {
    max-width: 720px;
    margin: 0 auto;
}

.hrc-kv {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin: 1.1rem 0 .4rem;
}

.hrc-kv__item {
    min-width: 140px;
}

.hrc-kv__l {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-gray-500, #6b7688);
    margin-bottom: 2px;
}

.hrc-kv__v {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--bs-heading-color, var(--bs-gray-900));
}

.hrc-offer-body {
    margin: 1.1rem 0;
    line-height: 1.7;
    color: var(--bs-gray-700, #4b5563);
}

.hrc-sal {
    width: 100%;
    border-collapse: collapse;
    margin: 1.1rem 0;
}

.hrc-sal td {
    padding: .6rem .7rem;
    border-bottom: 1px solid var(--bs-border-color, #e6e9f0);
    font-size: .95rem;
}

.hrc-sal td.amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hrc-sal tr.hrc-sal__tot td {
    font-weight: 700;
    border-top: 2px solid var(--bs-border-color, #e6e9f0);
    border-bottom: 0;
    color: var(--bs-heading-color, var(--bs-gray-900));
}

.hrc-sal td.muted {
    color: var(--bs-gray-500, #6b7688);
}

.hrc-offer-dl {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--bs-primary, #1b84ff);
    text-decoration: none;
}

.hrc-decline {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color, #e6e9f0);
}

.hrc-decline > summary {
    cursor: pointer;
    color: var(--bs-danger, #f1416c);
    font-weight: 600;
    font-size: .92rem;
    list-style: none;
}

.hrc-decline > summary::-webkit-details-marker { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .hrc-hero {
        padding: 2rem 1.4rem;
    }

    .hrc-hero__title {
        font-size: 1.7rem;
    }

    .hrc-job {
        flex-direction: column;
        align-items: flex-start;
        gap: .8rem;
    }

    .hrc-job__go {
        align-self: flex-end;
    }
}
