:root {
    --form-background-color: #fff;
    --input-background-color: #f8fafc;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.35rem 0 0.75rem;
}

label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.jobs-form-bg {
    background-image:
        linear-gradient(rgba(10, 14, 61, 0.85), rgba(10, 14, 61, 0.85)),
        url("/images/fibreOptics.jpg");
    margin-top: 5.5rem;
}

#name-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
}

.padded-div {
    padding-bottom: 0.5rem;
}

input, textarea, select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: var(--input-background-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(106, 164, 240, 0.2);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
}

.life-at-allium {
    padding: 1rem 0 0;
}

@media (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

#apply-button-div {
    margin-top: 0;
}

#open-positions-wrapper {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 5.5rem 0 2rem;
}

#open-positions-wrapper h1 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

#open-positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.open-position {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.open-position:hover {
    transform: translateY(-4px);
}

.open-position-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 190px;
    transition: box-shadow 0.25s ease;
}

.open-position:hover .open-position-img {
    box-shadow: var(--shadow-strong);
}

.open-position-content {
    padding: 1.25rem;
    flex: 1;
}

.open-position-content h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--navy);
}

.open-position-content .role-meta {
    display: inline-block;
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.role-meta--remote {
    color: #065f46;
    background: #d1fae5;
}

.role-meta--onsite {
    color: #1e3a8a;
    background: #dbeafe;
}

.role-meta--hybrid {
    color: #7c2d12;
    background: #ffedd5;
}

.role-meta--open {
    color: #334155;
    background: #f1f5f9;
}

.open-position--featured {
    border: 2px solid #34d399;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15);
    position: relative;
}

.open-position--featured::before {
    content: "Now Hiring · Remote";
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    background: #059669;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.open-position--featured .open-position-img {
    min-height: 200px;
}

.open-position-content p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.open-position__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.pointer {
    cursor: pointer;
}

@media (max-width: 767px) {
    #name-form {
        grid-template-columns: 1fr;
    }
}

/* ── Apply CTAs (jobs listing) ── */
.open-positions-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.open-positions-header p {
    color: var(--muted);
    max-width: 38rem;
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.jobs-location-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 1.25rem 0 0.25rem;
}

.jobs-location-key__note {
    color: var(--muted);
    font-size: 0.88rem;
    margin-left: 0.25rem;
}

.open-position__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--line);
    background: #f8fafc;
    margin-top: auto;
}

.open-position__footer .btn-card-action {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 2.75rem;
    line-height: 1.2;
    text-align: center;
}

.open-position__footer .btn-outline.btn-card-action {
    background: #fff;
}

.open-position__footer .btn-card-action--muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.72rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: #fff;
    color: var(--muted);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    pointer-events: none;
}

.btn-apply-card {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

.btn-apply-card:hover {
    background: #0b1f6e;
    border-color: #0b1f6e;
    color: #fff;
}

.apply-prompt-band {
    width: min(1200px, 92%);
    margin: 3rem auto 0;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, var(--navy) 0%, #1e40af 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.apply-prompt-band h2 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.apply-prompt-band p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}

.apply-prompt-band .btn-light {
    font-size: 1.05rem;
    padding: 0.95rem 2.25rem;
    font-weight: 600;
}

#job-form-section .dark-form-section__intro .display-text {
    margin-bottom: 1rem;
}

#job-form-section .form-apply-tag {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.35rem 0.85rem;
    background: rgba(106, 164, 240, 0.2);
    border: 1px solid rgba(106, 164, 240, 0.45);
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.applications-via-email #job-form-section {
    display: none !important;
}

body.applications-via-email .apply-form-only {
    display: none !important;
}

#job-application-form [type="submit"] {
    width: 100%;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

body.has-apply-sticky {
    padding-bottom: 5rem;
}

.apply-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(10, 14, 61, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.9rem clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(110%);
    transition: transform 0.35s ease;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

.apply-sticky-bar.is-visible {
    transform: translateY(0);
}

.apply-sticky-bar__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.apply-sticky-bar__text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apply-sticky-bar__text span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.btn-apply-lg {
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .open-positions-header {
        flex-direction: column;
        align-items: stretch;
    }

    .open-position__footer {
        grid-template-columns: 1fr;
    }

    .open-position__footer .btn-card-action {
        width: 100%;
    }

    .apply-sticky-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .apply-sticky-bar .btn-apply-lg {
        width: 100%;
        justify-content: center;
    }
}
