/* =====================================================================
   VOYE HOMES - Jobs and Internships page (jobs-and-internships-y.css)
   Design system : "about-us-ui" (navy/gold, Poppins) - same system as the other
                   three redesigned pages, adapted for a careers/job-board layout
                   (pitch hero + CTA, then job cards) instead of a legal document.
   Scope         : everything under  .jobs-internships-page  -- every selector
                   below is prefixed with that class, same convention as the
                   other three redesigned pages.
   Self-contained: does NOT depend on any other page's CSS being loaded.
   Loaded by     : Views/Page/Details.cshtml, conditionally for
                   pageSlug == "jobs-and-internships-y"
   Previewed as  : claude.ai artifact (design review build), ported here with the
                   same adaptations as privacy-policy-m.css: no dark-mode, no
                   safe-area padding, no extra font link, and the hero is
                   full-width with a shared .jb-container centering content
                   instead of the artifact's max-width-wrapper-plus-negative-
                   margin trick (see that file's header comment for why).
   Header clearance: same 90px/60px compensation as the other three pages (see
                   privacy-policy-m.css's comment for the full explanation).
                   No transparent-header treatment here either -- no JS file
                   needed for this page (no accordion/filter UI).
   Content note  : the live page displays "careers@voye.in" as the resume-email
                   address in three places, but every one of those links is
                   actually `href="mailto:support@voye.in"`. Preserved exactly as
                   on the live site per instruction to keep content unchanged --
                   flagged to the user as worth a business decision, not silently
                   fixed. See claude/privacy-policy-jobs-redesign.md.
   ===================================================================== */

.jobs-internships-page {
    --navy: #020035;
    --navy-mid: #0a0a4a;
    --navy-light: #1a1a6a;
    --gold: #d99a28;
    --gold-light: #f4b942;
    --bg: #ffffff;
    --bg-soft: #f8f9ff;
    --ink: #2d3748;
    --body-text: #4a4f5e;
    --muted: #6b7280;
    --card-border: rgba(2, 0, 53, .14);
    --card-border-strong: rgba(2, 0, 53, .3);
    --shadow: 0 10px 30px rgba(2, 0, 53, .08);
    --tag-bg: #eef6f1;
    --tag-ink: #1e8e52;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
}

.jobs-internships-page img { max-width: 100%; }
.jobs-internships-page a { color: var(--navy); }
.jobs-internships-page h1, .jobs-internships-page h2, .jobs-internships-page h3, .jobs-internships-page h4 { color: var(--ink); font-weight: 700; margin: 0; }
.jobs-internships-page p { margin: 0; line-height: 1.75; }
.jobs-internships-page :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.jobs-internships-page .jb-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.jobs-internships-page section { padding-block: 34px; }

/* ---- hero (full-bleed; .jb-container inside it centers the text) ---- */
.jobs-internships-page .jb-hero {
    position: relative; overflow: hidden;
    background-image: url('../img/careers-illustration.svg'), linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right -10px center, center;
    background-size: 420px 420px, cover;
    color: #fff;
    padding: 146px 20px 44px; /* 56px own spacing + 90px header clearance */
    border-radius: 0 0 28px 28px;
}
@media (max-width: 1150px) {
    /* 2026-11-20: the base rule above sets background-size/position/repeat as TWO
       comma-separated values, one per background-image layer (illustration image,
       then gradient). Below 1150px we drop down to a single layer (gradient only),
       but without resetting these three properties too, the browser keeps applying
       them positionally -- so the gradient layer inherited the FIRST value meant for
       the (now-removed) illustration image: background-size "420px 420px" and
       background-position "right -10px center" instead of "cover"/"center". That
       squeezed the whole navy gradient into one small 420x420 tile pinned to the
       right-center of the hero box, leaving the rest of the box (most of the top of
       the hero behind the header, on phone-width screens) unpainted / showing the
       page's white background through -- the washed-out mobile header reported
       2026-11-19. Fix: reset all three to single-layer values here. Confirmed live
       on uat.voyehomes.com at a 375px mobile viewport (header now reads solid navy,
       same as desktop) before this fix was applied. */
    .jobs-internships-page .jb-hero {
        background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}
.jobs-internships-page .jb-hero::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(217, 154, 40, .25), transparent 70%); pointer-events: none;
}
.jobs-internships-page .jb-hero::after {
    content: ""; position: absolute; inset: auto auto -30% -10%; width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%); pointer-events: none;
}
.jobs-internships-page .jb-hero .jb-container { position: relative; max-width: 1120px; }
.jobs-internships-page .jb-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold-light); background: rgba(217, 154, 40, .15); border: 1px solid rgba(217, 154, 40, .4);
    padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.jobs-internships-page .jb-hero h1 { font-size: clamp(2rem, 5.2vw, 2.9rem); line-height: 1.1; color: #fff; }
.jobs-internships-page .jb-sub { margin-top: 14px; font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 820px; line-height: 1.6; font-weight: 500; }
.jobs-internships-page .jb-pitch {
    margin-top: 18px; color: rgba(255, 255, 255, .8); font-size: .95rem; max-width: 820px; line-height: 1.7;
    padding: 16px 20px; border: 1px solid rgba(217, 154, 40, .3); border-left: 3px solid var(--gold-light);
    border-radius: 10px; background: rgba(255, 255, 255, .04);
}
.jobs-internships-page .jb-hero-cta {
    margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy);
    font-weight: 700; font-size: .96rem; padding: 13px 24px; border-radius: 50px; text-decoration: none;
}
.jobs-internships-page .jb-hero-cta svg { width: 18px; height: 18px; }

/* ---- "Current Openings" section ---- */
.jobs-internships-page .jb-openings-label { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.jobs-internships-page .jb-openings-label .jb-label-text { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.jobs-internships-page .jb-openings-label .jb-line { flex: 1; height: 1px; background: var(--card-border); }
.jobs-internships-page .jb-openings-count { font-size: .8rem; color: var(--muted); font-weight: 600; }

.jobs-internships-page .jb-jobs { display: flex; flex-direction: column; gap: 20px; }
.jobs-internships-page .jb-job { background: var(--bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); }
.jobs-internships-page .jb-job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.jobs-internships-page .jb-job-num {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold-light); font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.jobs-internships-page .jb-job-title-wrap { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.jobs-internships-page .jb-job h2 { font-size: 1.35rem; margin-bottom: 4px; }
.jobs-internships-page .jb-job-loc {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--navy);
    background: var(--bg-soft); border: 1px solid var(--card-border); padding: 5px 12px; border-radius: 30px; max-width: 100%;
}
.jobs-internships-page .jb-job-loc svg { width: 13px; height: 13px; }
.jobs-internships-page .jb-remote-tag {
    display: inline-block; background: var(--tag-bg); color: var(--tag-ink); font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}

.jobs-internships-page .jb-job p.jb-desig { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.jobs-internships-page .jb-job p.jb-desc { font-size: .98rem; margin-bottom: 18px; }

.jobs-internships-page .jb-job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.jobs-internships-page .jb-job-col h3 { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.jobs-internships-page .jb-job-col ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.jobs-internships-page .jb-job-col li { font-size: .92rem; color: var(--body-text); line-height: 1.6; padding-left: 20px; position: relative; }
.jobs-internships-page .jb-job-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.jobs-internships-page .jb-job-foot {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.jobs-internships-page .jb-job-foot .jb-email-note { font-size: .86rem; color: var(--muted); }
.jobs-internships-page .jb-job-foot a.jb-apply {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--navy);
    border: 1px solid var(--card-border-strong); padding: 9px 18px; border-radius: 30px; text-decoration: none;
}
.jobs-internships-page .jb-job-foot a.jb-apply:hover { background: var(--bg-soft); }
.jobs-internships-page .jb-job-foot a.jb-apply svg { width: 14px; height: 14px; }

.jobs-internships-page .jb-footer-note { margin-top: 34px; text-align: center; font-size: .8rem; color: var(--muted); padding-bottom: 6px; }

/* Scoped "transparent header" treatment for this page only -- same technique
   as terms-conditions-u.css / cancellations-refund-policy-uc.css (own class,
   own JS line, no shared-file edits). Class added by jobs-and-internships-y.js. */
header.noneBanner.jb-transparent-header {
    background: transparent !important;
}

@media (max-width: 768px) {
    .jobs-internships-page section { padding-block: 24px; }
}
@media (max-width: 720px) {
    .jobs-internships-page .jb-job-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    /* header.noneBanner itself drops from 90px to 60px at this exact breakpoint (style.css) */
    .jobs-internships-page .jb-hero { padding-top: 96px; } /* 36px + 60px */
}

/* =====================================================================
   Careers Application Form -- append to jobs-and-internships-y.css.
   Scope: still entirely under .jobs-internships-page, same convention
   as every other rule in this file. Reuses the existing --navy/--gold/
   --card-border/--shadow tokens already defined at the top of this file
   -- no new custom properties introduced.
   ===================================================================== */

.jobs-internships-page .jb-apply-section { padding-top: 10px; }

.jobs-internships-page .jb-apply-head { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.jobs-internships-page .jb-apply-head h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); margin-top: 10px; }
.jobs-internships-page .jb-apply-head p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

.jobs-internships-page .jb-apply-form {
    background: var(--bg); border: 1px solid var(--card-border); border-radius: 20px;
    box-shadow: var(--shadow); padding: 32px; max-width: 720px; margin: 0 auto;
}

/* Honeypot: present in the DOM and tab order for screen readers that ignore
   display:none, but invisible and unreachable by a sighted human -- never
   use display:none/visibility:hidden alone, bots specifically check for those. */
.jobs-internships-page .jb-hp-field {
    position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.jobs-internships-page .jb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.jobs-internships-page .jb-field { margin-bottom: 20px; display: flex; flex-direction: column; }
.jobs-internships-page .jb-field label {
    font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 8px;
}
.jobs-internships-page .jb-req { color: #c0392b; }

.jobs-internships-page .jb-field input[type="text"],
.jobs-internships-page .jb-field input[type="email"],
.jobs-internships-page .jb-field input[type="tel"],
.jobs-internships-page .jb-field select,
.jobs-internships-page .jb-field textarea {
    font-family: inherit; font-size: .95rem; color: var(--ink);
    border: 1px solid var(--card-border-strong); border-radius: 10px;
    padding: 11px 14px; background: var(--bg); width: 100%; box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.jobs-internships-page .jb-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3748' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.jobs-internships-page .jb-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.jobs-internships-page .jb-field input:focus,
.jobs-internships-page .jb-field select:focus,
.jobs-internships-page .jb-field textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 154, 40, .18);
}
.jobs-internships-page .jb-field.jb-invalid input,
.jobs-internships-page .jb-field.jb-invalid select { border-color: #c0392b; }

.jobs-internships-page .jb-error-msg { display: none; color: #c0392b; font-size: .8rem; margin-top: 6px; }
.jobs-internships-page .jb-error-msg.jb-show { display: block; }

/* File upload: the real <input type=file> is visually hidden but still in
   normal flow / tab order (not display:none) and opens on label click
   since the label's "for" targets its id -- this is a standard accessible
   custom-file-button pattern, not display:none-and-trigger-via-JS. */
.jobs-internships-page .jb-file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jobs-internships-page .jb-file-btn {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    background: var(--bg-soft); border: 1px solid var(--card-border-strong); color: var(--navy);
    font-weight: 600; font-size: .88rem; padding: 10px 16px; border-radius: 10px; cursor: pointer;
    margin-bottom: 0 !important;
}
.jobs-internships-page .jb-file-btn svg { width: 15px; height: 15px; }
.jobs-internships-page .jb-file-btn:hover { background: #eef0fb; }
.jobs-internships-page .jb-file-name { font-size: .85rem; color: var(--muted); word-break: break-word; }
.jobs-internships-page input[type="file"]#jb-resume {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.jobs-internships-page .jb-submit-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy);
    font-family: inherit; font-weight: 700; font-size: .98rem; border: none; cursor: pointer;
    padding: 14px 30px; border-radius: 50px; width: 100%; margin-top: 4px;
    transition: opacity .15s ease, transform .1s ease;
}
.jobs-internships-page .jb-submit-btn:hover { transform: translateY(-1px); }
.jobs-internships-page .jb-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.jobs-internships-page .jb-btn-spinner {
    display: none; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(2, 0, 53, .25); border-top-color: var(--navy);
    animation: jb-spin .7s linear infinite;
}
.jobs-internships-page .jb-submit-btn.jb-loading .jb-btn-spinner { display: inline-block; }
.jobs-internships-page .jb-submit-btn.jb-loading .jb-btn-label { opacity: .85; }
@keyframes jb-spin { to { transform: rotate(360deg); } }

.jobs-internships-page .jb-form-notice {
    margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .9rem;
    font-weight: 600; text-align: center; display: none;
}
.jobs-internships-page .jb-form-notice.jb-show { display: block; }
.jobs-internships-page .jb-form-notice.jb-success { background: #eafaf1; color: #1e8e52; border: 1px solid #b7ecd0; }
.jobs-internships-page .jb-form-notice.jb-error-notice { background: #fdecea; color: #c0392b; border: 1px solid #f6c6c1; }

/* 2026-11-23: OTP confirmation step for the Careers Application Form (added by
   jobs-and-internships-y.js's injectOtpBox -- this markup does not exist in page.content,
   see that file's header comment). Reuses the page's existing .jb-field look so it reads as
   part of the same form rather than a bolted-on widget. */
.jobs-internships-page .jb-otp-box input[type="text"] {
    letter-spacing: .3em; font-weight: 600; text-align: center;
}
.jobs-internships-page .jb-otp-help {
    margin: 10px 0 0; font-size: .85rem; color: var(--muted);
}
.jobs-internships-page .jb-linkbtn {
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--navy);
    text-decoration: underline; text-decoration-color: rgba(2, 0, 53, .35);
}
.jobs-internships-page .jb-linkbtn:hover { color: var(--gold); }
.jobs-internships-page .jb-linkbtn:disabled {
    color: var(--muted); text-decoration: none; cursor: not-allowed;
}

@media (max-width: 720px) {
    .jobs-internships-page .jb-form-row { grid-template-columns: 1fr; gap: 0; }
    .jobs-internships-page .jb-apply-form { padding: 24px 20px; }
}
