/* ==========================================================================
   SINGLE JOB POSITION PAGE
   ========================================================================== */

.ow-job-single-master {
    width: 100%;
    background-color: #111111; /* Ensures bottom half is dark */
}

/* ==========================================================================
   Hero Section (Ivory)
   ========================================================================== */

.ow-job-hero {
    position: relative;
    width: 100%;
    background-color: #FDFFF6;
    padding: 120px 48px 96px 48px; /* Top padding accounts for header */
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-job-hero-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

/* Title: Aspekta 400, 56px, -1.12px tracking */
.ow-job-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 110%; /* 61.6px */
    letter-spacing: -1.12px;
    color: #111111;
    margin: 0;
}

/* Location: Inter 20px, 75% opacity text, 100% opacity bold */
.ow-job-location {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%; /* 30px */
    color: rgba(17, 17, 17, 0.75);
    margin: 0;
}

.ow-job-location strong {
    font-weight: 600;
    color: #111111;
}

/* Apply CTA Group */
.ow-job-cta-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    height: 48px;
    margin-top: 16px;
}

.ow-job-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    background-color: #F3F3F3;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ow-job-cta-pill span {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%; /* 16.8px */
    color: #2A2A2A;
}

.ow-job-cta-pill:hover {
    background-color: #E6E6E6;
}

.ow-job-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: #CAED57;
    transition: transform 0.2s ease;
}

.ow-job-cta-arrow:hover {
    transform: translateX(2px);
}

/* ==========================================================================
   Job Details Content (Dark)
   ========================================================================== */

.ow-job-content-section {
    position: relative;
    width: 100%;
    background-color: #111111;
    padding: 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-job-content-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Base Paragraphs: Inter 400, 18px, 60% white */
.ow-job-content-container p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%; /* 27px */
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
    max-width: 960px;
}

/* Headings (H2 for "About the Role", etc.): Aspekta 400, 24px, White */
.ow-job-content-container h2 {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 140%; /* 33.6px */
    letter-spacing: -0.48px;
    color: #FCFEF5;
    margin: 48px 0 24px 0;
}

/* Remove top margin from the very first heading */
.ow-job-content-container h2:first-child {
    margin-top: 0;
}

/* Bulleted Lists styling matching reference image */
.ow-job-content-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
    max-width: 960px;
}

.ow-job-content-container li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%; /* 25.2px */
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    padding-left: 16px;
    position: relative;
}

/* Custom minimal bullet dot */
.ow-job-content-container li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
    .ow-job-hero {
        padding: 96px 24px 64px 24px;
    }
    .ow-job-content-section {
        padding: 64px 24px;
    }
    .ow-job-title {
        font-size: 44px;
    }
    .ow-job-location {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .ow-job-hero {
        padding: 80px 16px 48px 16px;
    }
    .ow-job-content-section {
        padding: 48px 16px;
    }
    .ow-job-title {
        font-size: 34px;
    }
    .ow-job-content-container h2 {
        font-size: 22px;
    }
    .ow-job-content-container p,
    .ow-job-content-container li {
        font-size: 16px;
    }
}


/* ==========================================================================
   JOB APPLICATION FORM SECTION (1440px Baseline, #FDFFF6 Background)
   ========================================================================== */

.ow-job-apply-section {
    position: relative;
    width: 100%;
    max-width: 100%;;
    background-color: #FDFFF6;
    margin: 0 auto;
    padding: 96px 48px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.ow-job-apply-container {
    width: 100%;
    max-width: 1200px; /* Aligns with standard inner wrapper width */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
}

/* ==========================================================================
   Left Column: Autofill Block (#7E6DEB)
   ========================================================================== */

.ow-job-autofill-col {
    flex: 1;
    max-width: 564px;
    background-color: #7E6DEB; /* Solid purple from Figma */
    border-radius: 4px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* Clipped diagonal corner logic from prior designs if necessary, else strict rectangle */
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.ow-autofill-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ow-autofill-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 110%; /* 35.2px */
    letter-spacing: -0.64px;
    color: #FFFFFF;
    margin: 0;
}

.ow-autofill-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%; /* 24px */
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px 0;
}

/* Custom UI Buttons */
.ow-autofill-action {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ow-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ow-btn-pill.light {
    background-color: #F3F3F3;
    color: #2A2A2A;
}

.ow-btn-pill.light:hover { background-color: #E2E2E2; }

.ow-btn-pill.dark {
    background-color: #111111;
    color: #FFFFFF;
    flex: 1; /* Fills remaining width in form footer */
}

.ow-btn-pill.dark:hover { background-color: #2a2a2a; }

.ow-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ow-btn-circle.lime { background-color: #CAED57; }
.ow-btn-circle.lime:hover { background-color: #bce042; transform: translateY(-2px); }

.ow-btn-circle.dark { background-color: #111111; pointer-events: none; } /* Visual attachment to dark pill */

/* ==========================================================================
   Right Column: Manual Form Block (#DBD5FF)
   ========================================================================== */

.ow-job-form-col {
    flex: 1;
    background-color: #DBD5FF; /* Light Lavender */
    border-radius: 4px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.ow-form-title {
    font-family: 'Aspekta', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 110%; /* 35.2px */
    letter-spacing: -0.64px;
    color: #111111;
    margin: 0 0 32px 0;
}

.ow-application-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ow-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ow-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.ow-form-group label {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    line-height: 150%; /* 18px */
    color: #4C4D4A;
    text-transform: uppercase;
}

/* Inputs & Textareas */
.ow-form-group input[type="text"],
.ow-form-group input[type="email"],
.ow-form-group input[type="tel"],
.ow-form-group input[type="url"],
.ow-form-group select,
.ow-form-group textarea {
    width: 100%;
    background-color: #FDFFF6;
    border: none;
    border-radius: 4px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #111111;
    box-sizing: border-box;
    outline: none;
    transition: outline 0.2s ease;
}

.ow-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23878883' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.ow-form-group input::placeholder,
.ow-form-group textarea::placeholder {
    color: #878883;
}

.ow-form-group input:focus-visible,
.ow-form-group select:focus-visible,
.ow-form-group textarea:focus-visible {
    outline: 2px solid #7E6DEB;
    outline-offset: -2px;
}

/* Dashed Resume Dropzone */
.ow-resume-dropzone {
    position: relative;
    width: 100%;
    height: 113px;
    background-color: #FDFFF6;
    border: 1px dashed #7E6DEB;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.ow-resume-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ow-dropzone-text {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: #111111;
}

.ow-dropzone-text strong {
    font-weight: 500;
    text-decoration: underline;
}

.ow-dropzone-sub {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(17, 17, 17, 0.5);
}

/* Terms and Conditions Checkbox */
.ow-form-tnc {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ow-tnc-label {
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    font-size: 12px;
    color: #4C4D4A;
}

.ow-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ow-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ow-checkbox-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(17, 17, 17, 0.2);
    border-radius: 2px;
    background-color: #FDFFF6;
    position: relative;
    margin-top: 2px;
}

.ow-checkbox-wrap input[type="checkbox"]:checked + .ow-checkbox-box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #111111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ow-tnc-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 140%; /* 16.8px */
    color: #4C4D4A;
}

/* Submit Area */
.ow-form-submit {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-top: 24px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .ow-job-apply-section {
        padding: 72px 32px;
    }
    .ow-job-apply-container {
        flex-direction: column;
        gap: 32px;
    }
    .ow-job-autofill-col,
    .ow-job-form-col {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .ow-job-apply-section {
        padding: 48px 16px;
    }
    .ow-job-autofill-col,
    .ow-job-form-col {
        padding: 32px 24px;
    }
    .ow-form-row-2 {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}