/* Careers Application Form — premium glassmorphism UI */

.careers-application {
    padding: 5rem 0 6rem;
    background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 45%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.careers-application::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.careers-application::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.careers-application .container {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.careers-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.careers-form-header .section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #2563eb;
    margin-bottom: 0.75rem;
}

.careers-form-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.careers-form-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.career-form-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 50px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: box-shadow 0.35s ease;
}

.career-form-card:hover {
    box-shadow:
        0 8px 12px rgba(15, 23, 42, 0.06),
        0 28px 60px rgba(37, 99, 235, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.career-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
}

.career-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.career-form-group.full-width {
    grid-column: 1 / -1;
}

.career-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.career-form-group label .optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8rem;
}

.career-form-group input,
.career-form-group select,
.career-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    outline: none;
}

.career-form-group input:hover,
.career-form-group select:hover,
.career-form-group textarea:hover {
    border-color: #cbd5e1;
}

.career-form-group input:focus,
.career-form-group select:focus,
.career-form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.career-form-group input.is-invalid,
.career-form-group select.is-invalid,
.career-form-group textarea.is-invalid,
.career-dropzone.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.career-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.career-field-error {
    font-size: 0.78rem;
    color: #dc2626;
    min-height: 1.1em;
    display: block;
}

/* Resume drag-and-drop zone */
.career-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 160px;
    padding: 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.8);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    text-align: center;
}

.career-dropzone:hover,
.career-dropzone.is-dragover {
    border-color: #2563eb;
    background: rgba(239, 246, 255, 0.95);
    transform: translateY(-2px);
}

.career-dropzone.has-file {
    border-color: #22c55e;
    background: rgba(240, 253, 244, 0.9);
    border-style: solid;
}

.career-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.career-dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #2563eb;
}

.career-dropzone-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.career-dropzone-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

.career-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #15803d;
    word-break: break-all;
}

.career-form-actions {
    position: relative;
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.career-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 240px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.career-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.career-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.career-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.career-form-status {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    min-height: 1.25em;
}

.career-form-status.is-error {
    color: #dc2626;
}

/* Loader overlay */
.career-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.career-loader-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.career-loader-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    min-width: 260px;
}

.career-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: careerSpin 0.75s linear infinite;
}

@keyframes careerSpin {
    to { transform: rotate(360deg); }
}

.career-loader-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

/* Success popup */
.career-success-modal {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.career-success-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.career-success-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.25rem 2rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.career-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #16a34a;
}

.career-success-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.career-success-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.career-success-close {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-success-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

@media (max-width: 640px) {
    .careers-application {
        padding: 3.5rem 0 4rem;
    }

    .career-form-grid {
        grid-template-columns: 1fr;
    }

    .career-submit-btn {
        width: 100%;
    }
}

/* ==========================================
   Careers content sections style — Modern Premium
   ========================================== */

.careers-intro-sec {
    padding: 7rem 0 5rem;
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.03) 0%, rgba(248, 250, 252, 0.9) 90%);
    position: relative;
}

.careers-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.careers-intro-left h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.careers-intro-left p {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.careers-intro-right {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 
        0 10px 30px -10px rgba(15, 23, 42, 0.3),
        0 30px 60px -15px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.careers-intro-right::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.careers-intro-right h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.discipline-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.discipline-badge:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
}

.discipline-badge svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #3b82f6;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.discipline-badge:hover svg {
    transform: scale(1.15) rotate(5deg);
    stroke: #60a5fa;
}

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

.careers-intro-right p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin: 0;
    font-weight: 350;
}

/* Why Join Section */
.careers-why-join-sec {
    padding: 7rem 0;
    background: #f8fafc;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.careers-why-join-sec::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.careers-why-join-sec .section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
}

.careers-why-join-sec .section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 40%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-join-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.why-join-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3rem 2.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02);
}

.why-join-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 
        0 20px 40px -15px rgba(15, 23, 42, 0.08),
        0 0 30px rgba(37, 99, 235, 0.05);
}

.why-join-card.span-2 {
    grid-column: span 2;
}

.why-join-card.span-3 {
    grid-column: span 3;
}

.why-join-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: transform 0.4s ease;
}

.why-join-card:hover .why-join-icon-wrapper {
    transform: scale(1.1) rotate(3deg);
    background: rgba(37, 99, 235, 0.12);
}

.why-join-icon-wrapper svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #2563eb;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-join-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.why-join-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}

/* Culture & Join Team split section */
.careers-culture-sec {
    padding: 7.5rem 0;
    background: #ffffff;
    position: relative;
    border-top: 1px solid #e2e8f0;
}

.careers-culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.culture-left, .culture-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3.5rem;
    border-radius: 32px;
    min-height: 420px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.culture-left {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02);
}

.culture-right {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.15);
}

.culture-left:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
}

.culture-right:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px -10px rgba(15, 23, 42, 0.3),
        0 0 30px rgba(37, 99, 235, 0.1);
}

.culture-block h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.culture-right .culture-block h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.culture-block p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.culture-right .culture-block p {
    color: #94a3b8;
    font-weight: 300;
}

.culture-footer-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: 2rem;
    display: inline-block;
    position: relative;
}

.culture-right .culture-footer-text {
    color: #3b82f6;
}

@media (max-width: 1200px) {
    .culture-left, .culture-right {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 991px) {
    .careers-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-join-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .why-join-card.span-2, .why-join-card.span-3 {
        grid-column: span 3;
    }

    .careers-culture-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .why-join-grid {
        grid-template-columns: 1fr;
    }
    
    .why-join-card.span-2, .why-join-card.span-3 {
        grid-column: 1 / -1;
    }
    
    .culture-left, .culture-right {
        padding: 2.5rem 1.75rem;
        min-height: auto;
    }
}
