/* ===============================
   JOIN US HERO SECTION
================================= */
.join-hero {
    position: relative;
    padding: 160px 20px 100px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.join-hero-bg {
    position: absolute;
    inset: 0;
    /* You can use a specific office/team image here */
    background: url("/images/team-bg.webp") center/cover no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.join-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(15, 15, 15, 0.768), rgba(15, 15, 15, 0.593));
}

.relative-z {
    position: relative;
    z-index: 3;
}

/* ===============================
   PERKS SECTION
================================= */
.perks-section {
    padding: 90px 20px;
    background: var(--bg-main);
}

.perk-card {
    background: #15181f;
    padding: 35px 25px;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
    text-align: left;
    transition: all 0.35s ease;
}

.perk-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--glow);
}

.perk-icon {
    width: 38px;
    height: 38px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.perk-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.perk-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===============================
   OPEN POSITIONS SECTION
================================= */
.openings-section {
    padding: 90px 20px;
    background: #0a0c10;
}

.roles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0;
}

.role-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 25px 35px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.role-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.role-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.role-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
}

/* ===============================
   APPLY FORM SECTION
================================= */
.apply-section {
    position: relative;
    padding: 120px 20px;
    background: url('/images/hiring.webp') center/cover no-repeat;
    background-attachment: fixed;
}

.apply-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6); /* dark overlay for better contrast */
    z-index: 0;
}

.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.apply-container {
    position: relative;
    z-index: 1; /* ensure content is above overlay */
    max-width: 900px;
    margin: 0 auto;
}

.apply-container p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
}

.apply-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    opacity: 0.8;
}

/* Form Styling */
.form-wrapper {
    background: rgba(21,24,31,0.95);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); /* nice frosted-glass effect */
    animation: fadeInUp 0.8s ease forwards;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.w-50 {
    width: 50%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.apply-form input,
.apply-form select,
.apply-form textarea {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.apply-form input::placeholder,
.apply-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.apply-form select option {
    background: #15181f;
    color: var(--text-main);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(8, 131, 242, 0.15);
}

.submit-btn {
    background: linear-gradient(90deg, #0883F2, #1A4DAC);
    color: #fff;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 10px;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(8,131,242,0.5);
}
/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 900px) {
    .apply-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .role-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .form-group-row {
        flex-direction: column;
        gap: 20px;
    }

    .w-50 {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .form-wrapper {
        padding: 40px 20px;
    }

    .form-group-row {
        flex-direction: column;
        gap: 20px;
    }

    .w-50 {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}