/* ==========================================================================
   Goldiran careers — public site styles
   --------------------------------------------------------------------------
   Everything is scoped under .cs to avoid touching the existing theme, which
   already ships its own Bootstrap 4 build. Tokens are re-declared locally
   rather than pulled from panel.css so the two can diverge without breaking
   each other.
   ========================================================================== */

.cs {
    --cs-bg: #f7f8fa;
    --cs-surface: #ffffff;
    --cs-surface-2: #f1f3f5;
    --cs-border: #e4e7eb;
    --cs-border-strong: #d3d8de;
    --cs-text: #16181d;
    --cs-muted: #4b515b;
    --cs-subtle: #8a9099;
    --cs-primary: #b4121b;
    --cs-primary-hover: #940f16;
    --cs-primary-soft: #fdf2f2;
    --cs-success: #0e7c5a;
    --cs-success-bg: #e4f6ef;
    --cs-danger: #b42318;
    --cs-danger-bg: #fef3f2;
    --cs-r-sm: 6px;
    --cs-r-md: 8px;
    --cs-r-lg: 12px;
    --cs-sh: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);

    color: var(--cs-text);
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0;
}

.cs *,
.cs *::before,
.cs *::after {
    box-sizing: border-box;
}

.cs-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.cs-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.cs-sub {
    font-size: 13px;
    color: var(--cs-subtle);
    margin: 0 0 20px;
}

/* -------------------------------------------------------------- three-panel */

.cs-board {
    display: grid;
    grid-template-columns: 260px 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 1080px) {
    .cs-board {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .cs-board__detail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .cs-board {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cs-panel {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    overflow: hidden;
}

.cs-panel__head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--cs-border);
    font-size: 13px;
    font-weight: 700;
}

.cs-panel__body {
    max-height: 620px;
    overflow-y: auto;
}

.cs-cat {
    display: block;
    padding: 11px 16px;
    border-bottom: 1px solid var(--cs-border);
    font-size: 13px;
    color: var(--cs-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.cs-cat:last-child {
    border-bottom: 0;
}

.cs-cat:hover {
    background: var(--cs-surface-2);
    color: var(--cs-text);
    text-decoration: none;
}

.cs-cat.is-active {
    background: var(--cs-primary-soft);
    color: var(--cs-primary);
    font-weight: 700;
    box-shadow: inset -3px 0 0 0 var(--cs-primary);
}

.cs-cat__count {
    float: left;
    font-size: 11px;
    color: var(--cs-subtle);
    background: var(--cs-surface-2);
    border-radius: 999px;
    padding: 1px 7px;
    font-variant-numeric: tabular-nums;
}

.cs-job {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid var(--cs-border);
    cursor: pointer;
    transition: background .15s;
}

.cs-job:last-child {
    border-bottom: 0;
}

.cs-job:hover {
    background: var(--cs-surface-2);
    text-decoration: none;
}

.cs-job.is-active {
    background: var(--cs-primary-soft);
    box-shadow: inset -3px 0 0 0 var(--cs-primary);
}

.cs-job__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cs-text);
    margin-bottom: 3px;
}

.cs-job__meta {
    font-size: 12px;
    color: var(--cs-subtle);
}

/* ------------------------------------------------------------------ detail */

.cs-detail {
    padding: 24px;
}

.cs-detail__company {
    font-size: 12px;
    color: var(--cs-subtle);
    margin-bottom: 4px;
}

.cs-detail__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.cs-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cs-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cs-muted);
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    padding: 4px 10px;
}

.cs-fact--salary {
    color: var(--cs-success);
    background: var(--cs-success-bg);
    border-color: #7fd4ac;
    font-weight: 700;
}

.cs-section {
    margin-bottom: 22px;
}

.cs-section__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--cs-border);
}

.cs-rte {
    font-size: 14px;
    line-height: 1.9;
    color: var(--cs-muted);
}

.cs-rte p {
    margin: 0 0 10px;
}

.cs-rte ul,
.cs-rte ol {
    padding-inline-start: 20px;
    margin: 0 0 10px;
}

.cs-rte li {
    margin-bottom: 4px;
}

.cs-rte table {
    width: 100%;
    border-collapse: collapse;
}

.cs-rte td,
.cs-rte th {
    border: 1px solid var(--cs-border);
    padding: 6px 10px;
}

.cs-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--cs-subtle);
    font-size: 13px;
}

/* ------------------------------------------------------------------ buttons */

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--cs-r-sm);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.cs-btn:hover {
    text-decoration: none;
}

.cs-btn--primary {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
    color: #fff;
}

.cs-btn--primary:hover {
    background: var(--cs-primary-hover);
    color: #fff;
}

.cs-btn--default {
    background: var(--cs-surface);
    border-color: var(--cs-border-strong);
    color: var(--cs-text);
}

.cs-btn--default:hover {
    background: var(--cs-surface-2);
    color: var(--cs-text);
}

.cs-btn--sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
}

.cs-btn[disabled] {
    opacity: .55;
    pointer-events: none;
}

/* ------------------------------------------------------------------- search */

.cs-search {
    position: relative;
    margin-bottom: 16px;
}

.cs-search input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
    font-family: inherit;
    font-size: 14px;
    color: var(--cs-text);
}

.cs-search input:focus {
    outline: none;
    border-color: var(--cs-primary);
}

.cs-search__btn {
    position: absolute;
    inset-inline-start: 6px;
    top: 5px;
    height: 32px;
    width: 32px;
    border: 0;
    background: transparent;
    color: var(--cs-subtle);
    cursor: pointer;
}

/* -------------------------------------------------------------------- wizard */

.cs-wizard {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 860px) {
    .cs-wizard {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cs-steps {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    padding: 8px;
    position: sticky;
    top: 16px;
}

.cs-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--cs-r-sm);
    font-size: 13px;
    color: var(--cs-subtle);
}

.cs-step__no {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--cs-border-strong);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.cs-step.is-done {
    color: var(--cs-muted);
}

.cs-step.is-done .cs-step__no {
    background: var(--cs-success);
    border-color: var(--cs-success);
    color: #fff;
}

.cs-step.is-now {
    background: var(--cs-primary-soft);
    color: var(--cs-primary);
    font-weight: 700;
}

.cs-step.is-now .cs-step__no {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
    color: #fff;
}

/* mobile: the vertical rail becomes a horizontal progress strip */
@media (max-width: 860px) {
    .cs-steps {
        display: flex;
        overflow-x: auto;
        position: static;
    }

    .cs-step {
        flex: 0 0 auto;
    }
}

.cs-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
}

.cs-card__head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--cs-border);
}

.cs-card__title {
    font-size: 16px;
    font-weight: 700;
}

.cs-card__desc {
    margin-top: 4px;
    font-size: 13px;
    color: var(--cs-subtle);
}

.cs-card__body {
    padding: 20px;
}

.cs-card__foot {
    padding: 16px 20px;
    border-top: 1px solid var(--cs-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --------------------------------------------------------------------- form */

/* Deliberately NOT named .grid / .col-N: the surrounding theme ships
   Bootstrap 4, whose .col-N carry `max-width: <fraction>%`. Inside a CSS grid
   cell that percentage resolves against the cell, shrinking every field to a
   third of its column. Prefixed names keep the two grids apart. */

.cs-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.cs-col-1 { grid-column: span 1 }
.cs-col-2 { grid-column: span 2 }
.cs-col-3 { grid-column: span 3 }
.cs-col-4 { grid-column: span 4 }
.cs-col-5 { grid-column: span 5 }
.cs-col-6 { grid-column: span 6 }
.cs-col-7 { grid-column: span 7 }
.cs-col-8 { grid-column: span 8 }
.cs-col-9 { grid-column: span 9 }
.cs-col-10 { grid-column: span 10 }
.cs-col-11 { grid-column: span 11 }
.cs-col-12 { grid-column: span 12 }

/* the theme's Bootstrap also styles bare inputs and labels; re-assert ours */
.cs [class^="cs-col-"],
.cs [class*=" cs-col-"] {
    min-width: 0;
    max-width: none;
    padding: 0;
    flex: none;
}

@media (max-width: 860px) {
    .cs-grid > [class^="cs-col-"] {
        grid-column: span 6;
    }
}

@media (max-width: 620px) {
    .cs-grid > [class^="cs-col-"] {
        grid-column: span 12;
    }
}

.cs .field {
    margin-bottom: 0;
}

.cs .field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-muted);
}

.cs .req {
    color: var(--cs-danger);
    margin-inline-start: 3px;
}

.cs .input,
.cs .select,
.cs .textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cs-text);
}

.cs .input:focus,
.cs .select:focus,
.cs .textarea:focus {
    outline: none;
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(180, 18, 27, .12);
}

.cs .textarea {
    min-height: 96px;
    resize: vertical;
}

.cs .select {
    appearance: none;
    padding-inline-end: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.cs .field__hint {
    margin-top: 5px;
    font-size: 12px;
    color: var(--cs-subtle);
    line-height: 1.6;
}

.cs .field__error {
    margin-top: 5px;
    font-size: 12px;
    color: var(--cs-danger);
}

.cs .has-error .input,
.cs .has-error .select,
.cs .has-error .textarea {
    border-color: var(--cs-danger);
}

.cs .check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.6;
}

.cs .check input {
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: var(--cs-primary);
    flex: 0 0 auto;
}

.cs .radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.cs-heading,
.cs .cf-heading {
    font-size: 15px;
    font-weight: 700;
    padding-top: 8px;
    border-top: 1px solid var(--cs-border);
    margin-top: 4px;
}

.cs .cf-note {
    font-size: 13px;
    color: var(--cs-muted);
    background: var(--cs-surface-2);
    border-radius: var(--cs-r-sm);
    padding: 10px 12px;
}

.cs-alert {
    padding: 12px 16px;
    border-radius: var(--cs-r-md);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 16px;
    border: 1px solid var(--cs-border);
    background: var(--cs-surface-2);
}

.cs-alert--danger {
    color: var(--cs-danger);
    background: var(--cs-danger-bg);
    border-color: #fecdca;
}

.cs-alert--success {
    color: var(--cs-success);
    background: var(--cs-success-bg);
    border-color: #7fd4ac;
}

.cs-alert ul {
    margin: 0;
    padding-inline-start: 18px;
}

/* ------------------------------------------------------------------ repeater */

.cs-rows {
    overflow-x: auto;
}

.cs-rows table {
    width: 100%;
    border-collapse: collapse;
}

.cs-rows th {
    text-align: start;
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-subtle);
    padding: 6px 8px;
    white-space: nowrap;
    border-bottom: 1px solid var(--cs-border);
}

.cs-rows td {
    padding: 6px 8px;
    vertical-align: top;
}

.cs-rows .input,
.cs-rows .select {
    min-height: 36px;
    font-size: 13px;
}

.cs-rowbtn {
    border: 1px solid var(--cs-border-strong);
    background: var(--cs-surface);
    border-radius: var(--cs-r-sm);
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: var(--cs-muted);
}

/* --------------------------------------------------------------------- files */

.cs-group {
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    margin-bottom: 14px;
}

.cs-group__head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--cs-border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cs-group__title {
    font-size: 14px;
    font-weight: 700;
}

.cs-group__hint {
    font-size: 12px;
    color: var(--cs-subtle);
    width: 100%;
}

.cs-group__body {
    padding: 14px 16px;
}

.cs-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--cs-border);
    flex-wrap: wrap;
}

.cs-slot:last-child {
    border-bottom: 0;
}

.cs-slot__label {
    flex: 0 0 130px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-muted);
}

.cs-drop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px dashed var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    font-size: 13px;
    color: var(--cs-muted);
    cursor: pointer;
    background: var(--cs-surface);
}

.cs-drop:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

.cs-drop input[type=file] {
    display: none;
}

.cs-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--cs-success-bg);
    background: var(--cs-success-bg);
    color: var(--cs-success);
    border-radius: var(--cs-r-sm);
    font-size: 12px;
}

.cs-file__x {
    cursor: pointer;
    opacity: .7;
    font-weight: 700;
}

.cs-file__x:hover {
    opacity: 1;
}

.cs-filelist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.cs-fileitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    flex-wrap: wrap;
}

.cs-fileitem__name {
    flex: 1 1 160px;
    min-width: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------- review */

.cs-review dl {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 4px 16px;
    margin: 0;
    font-size: 13px;
}

@media (max-width: 620px) {
    .cs-review dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 0 0;
    }

    .cs-review dt {
        margin-top: 10px;
    }
}

.cs-review dt {
    color: var(--cs-subtle);
    padding: 5px 0;
}

.cs-review dd {
    margin: 0;
    padding: 5px 0;
    word-break: break-word;
}

.cs-review__edit {
    font-size: 12px;
    margin-inline-start: auto;
}

/* -------------------------------------------------------------------- success */

.cs-success {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 24px;
}

.cs-success__mark {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--cs-success-bg);
    color: var(--cs-success);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.cs-code {
    display: inline-block;
    margin: 14px 0;
    padding: 12px 22px;
    border: 1px dashed var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.cs-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cs-captcha img {
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    height: 42px;
}

.cs-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: end;
}
