/* Career page — desktop form styling.
   Scoped under #career-section so it cannot leak into other pages
   (the markup also re-uses some IDs from support_view, but those rules live
   in support.css and would not match because the IDs differ.). */

#career-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

#career-section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    text-align: left;
    font-weight: 700;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#career-form-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.career-col h3 {
    font-size: 1.15rem;
    text-align: left;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.career-col h3 .highlight-bar {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #3764FF;
    flex: 0 0 auto;
}

/* Two-column field grid inside Personal Details for short inputs */
.career-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.career-fields .career-full {
    grid-column: 1 / -1;
}

.career-fields input,
.career-fields select,
.career-fields textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    background-color: #f1f1f1;
    color: #000;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.career-fields input:focus,
.career-fields select:focus,
.career-fields textarea:focus {
    outline: none;
    border-color: #3764FF;
    box-shadow: 0 0 0 3px rgba(55, 100, 255, 0.18);
}

/* Position select + "Other" specify box share one grid cell */
.career-position-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-position-wrap select {
    cursor: pointer;
}

/* Show the "Position applying for" placeholder option in muted grey,
   like the real placeholders on the sibling text inputs. */
.career-fields select:required:invalid {
    color: #6b6b6b;
}

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

/* Resume column */
.resume-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(55, 100, 255, 0.08);
    text-align: center;
}

.resume-note .resume-icon {
    font-size: 1.8rem;
    color: #6f93ff;
}

.resume-note .resume-primary {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.resume-note .resume-primary a {
    color: #9fbcff;
    font-weight: 600;
    text-decoration: underline;
}

.copy-email {
    cursor: pointer;
    white-space: nowrap;
}

.copy-email .copy-icon {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.75;
}

.copy-email:hover .copy-icon {
    opacity: 1;
}

.copy-feedback {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #7CFFB2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-feedback.is-visible {
    opacity: 1;
}

.resume-note .resume-secondary {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.6);
}

.career-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
    font-size: 0.85rem !important;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.career-privacy span {
    /* Minimum 12px, preferred 0.9vw, maximum 18px */
    font-size: clamp(0.75rem, 0.9vw, 1.125rem);
}
.career-privacy input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #3764FF;
}

#career-submit-btn {
    width: 100%;
    background-color: #ff0f39;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#career-submit-btn:hover:not(:disabled) {
    background-color: #d50d30;
}

#career-submit-btn:active:not(:disabled) {
    transform: translateY(1px);
}

#career-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Collapse to single column on narrower viewports / tablets */
@media (max-width: 900px) {
    #career-form-container {
        grid-template-columns: 1fr;
    }
    .career-fields {
        grid-template-columns: 1fr;
    }
}

/* Spinner (used inside the submit button while submitting) */
.spinner-border {
    display: inline-block;
    vertical-align: middle;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ------------------------------------------------------------------ */
/* Current Openings slide                                             */
/* ------------------------------------------------------------------ */
#openings-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

#openings-title {
    font-size: 2.5rem;
    margin: 0 0 8px;
    text-align: left;
    font-weight: 700;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#openings-subtitle {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
}

.openings-table-wrap {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.openings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.openings-table thead th {
    text-align: left;
    padding: 16px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #9fbcff;
    background-color: rgba(55, 100, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.openings-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.openings-table tbody tr:last-child td {
    border-bottom: none;
}

.openings-table tbody tr {
    transition: background-color 0.18s ease;
}

.openings-table tbody tr:hover {
    background-color: rgba(55, 100, 255, 0.08);
}

/* Column tuning */
.openings-table .col-sr {
    width: 64px;
    text-align: center;
    font-weight: 700;
    color: #3764FF;
    font-size: 1.05rem;
}

.openings-table .col-role {
    font-weight: 600;
    color: #fff;
    min-width: 220px;
}

.openings-table .col-exp {
    white-space: nowrap;
}

/* Location chips */
.loc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.loc-chip {
    display: inline-block;
    padding: 3px 11px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #cdd9ff;
    background-color: rgba(55, 100, 255, 0.16);
    border: 1px solid rgba(55, 100, 255, 0.35);
    border-radius: 999px;
    white-space: nowrap;
}

.openings-empty {
    padding: 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* Graceful collapse to stacked cards on narrow (e.g. resized desktop) windows */
@media (max-width: 900px) {
    #openings-title {
        font-size: 2rem;
    }

    .openings-table-wrap {
        border: none;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .openings-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .openings-table,
    .openings-table tbody,
    .openings-table tr,
    .openings-table td {
        display: block;
        width: 100%;
    }

    .openings-table tr {
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.03);
        overflow: hidden;
    }

    .openings-table tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.03);
    }

    .openings-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .openings-table tbody tr td:last-child {
        border-bottom: none;
    }

    .openings-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #9fbcff;
        align-self: center;
    }

    .openings-table .col-sr {
        text-align: right;
        width: 100%;
    }

    .loc-chips {
        justify-content: flex-end;
    }
}
