/* ============================================================
   COWAY DIRECT SALES TEAM CAREER PAGE STYLES - FIGMA MATCH
   ============================================================ */

.career-page {
    background: #F8FAFC;
    min-height: 100vh;
    color: #333333;
}

.career-register-page {
    padding-top: 120px;
    padding-bottom: 90px;
}

/* Shared Section Utilities */
.section-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #00A7E1;
    display: block;
    margin-bottom: 12px;
}

.title-underline {
    width: 150px;
    height: 3px;
    background: #00A7E1;
    margin: 16px 0 24px;
    border-radius: 2px;
}

/* ============================================================
   1. HERO BANNER SECTION
   ============================================================ */
.career-hero-section {
    background: #EDF5F8;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-inner-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-col {
    flex: 1;
    max-width: 620px;
}

.hero-img-col {
    width: 740px;
    flex-shrink: 0;
    position: relative;
    margin-right: calc(50% - 50vw - var(--gutter-desktop, 60px));
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.3;
    color: #333333;
    margin: 0;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 0 0 28px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #00A7E1;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.35);
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background: #0084B4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.45);
}

.hero-img-box {
    width: 740px;
    height: 488px;
    border-top-left-radius: 120px;
    border-bottom-left-radius: 120px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow: hidden;
    background: #D9EBF3;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   2. PERAN SECTION
   ============================================================ */
.career-peran-section {
    position: relative;
    padding: 0;
    background: url('/img/sales-team/peran-bg.png') center top 80px / cover no-repeat, linear-gradient(90deg, #F2FBFF 50%, #EAFDFF 100%);
    display: flex;
    align-items: center;
    border-bottom: 2px solid;
    border-image: linear-gradient(270deg, #FFFFFF 0%, #00A7E1 100%) 1;
}

.peran-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.peran-img-box {
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.peran-img-placeholder {
    max-width: 100%;
    height: 523px;
    object-fit: cover;
    display: block;
}

.peran-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    color: #333333;
    margin: 0;
}

.peran-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 0;
}

/* ============================================================
   3. KENAPA BERGABUNG SECTION
   ============================================================ */
.career-why-section {
    position: relative;
    padding: 90px 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

.career-why-section::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 0;
    transform: translateY(-50%);
    width: 504px;
    height: 100%;
    background: url('/img/sales-team/bg-kiri.png') left center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.career-why-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    top: 75%;
    right: 0;
    transform: translateY(-50%);
    width: 506px;
    height: 100%;
    background: url('/img/sales-team/bg-kanan.png') right center / contain no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.career-why-section .site-container {
    position: relative;
    z-index: 2;
}

.why-header-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-end;
    margin-bottom: 56px;
}

.why-main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.3;
    color: #333333;
    margin: 0;
}

.why-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #333333;
    margin: 0;
    text-align: right;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-card {
    background: #FFFFFF;
    border: 1px solid rgba(3, 34, 27, 0.1);
    border-radius: 32px;
    padding: 32px 40px;
    height: 277px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 167, 225, 0.12);
}

.why-icon-box {
    width: 70px;
    height: 70px;
    background: #00A7E1;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.why-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 24px;
    color: #03221B;
    margin: 0 0 14px;
}

.why-card-divider {
    width: 100%;
    height: 1px;
    background: #D2D2D2;
    margin-bottom: 14px;
}

.why-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #777777;
    margin: 0;
}

/* ============================================================
   4. TESTIMONI SECTION
   ============================================================ */
.career-testi-section {
    padding: 80px 0;
    background: #F1FBFF;
    text-align: center;
    position: relative;
    width: 100%;
}

.testi-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
    box-sizing: border-box;
}

.testi-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 39px;
    color: #333333;
    margin: 0 0 40px;
}

.testi-cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
    width: 100%;
    margin: 0 auto 36px;
}

.testi-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    padding: 12px 4px;
}

.testi-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.testi-card {
    flex: 0 0 calc((100% - 48px) / 3);
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 36px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.testi-author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    color: #0F0D1D;
    margin: 0;
}

.testi-author-role {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #A4A4A4;
    display: block;
}

.quote-icon-img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.testi-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #585858;
    margin: 0;
}

.testi-nav-btn {
    width: 48px;
    height: 48px;
    background: #00A7E1;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.3);
}

.testi-nav-btn:hover {
    background: #0084B4;
    transform: scale(1.05);
}

.testi-pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.testi-pagination-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(3, 34, 27, 0.15);
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testi-pagination-dots .dot.active {
    width: 24px;
    background: #00A7E1;
}

/* ============================================================
   5. CTA BANNER SECTION
   ============================================================ */
.career-cta-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    overflow: hidden;
    height: 520px;
    min-height: 520px;
    width: 100%;
}

.career-cta-banner .site-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cta-bg-image {
    position: absolute;
    top: -80px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: url('/img/sales-team/cta-bg.webp') center/cover no-repeat;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    z-index: 1;
}

.cta-bg-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(67, 67, 67, 0) 0%, #434343 133.96%);
    z-index: 2;
}

.cta-banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 926px;
    margin: 0 auto;
    width: 100%;
}

.cta-banner-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0 0 16px;
    max-width: 926px;
    text-align: center;
    width: 100%;
}

.cta-banner-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    margin: 0 0 28px;
    text-align: center;
    width: 100%;
    max-width: 926px;
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    background: #00A7E1;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.cta-banner-btn:hover {
    background: #0084B4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.5);
}

/* ============================================================
   6. REGISTRATION FORM SECTION
   ============================================================ */
.career-form-section {
    padding: 80px 0 90px;
    background: #F8FAFC;
    scroll-margin-top: 80px;
}

.career-header-box {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 20px;
}

.career-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #00A7E1;
    margin-bottom: 10px;
    display: block;
}

.career-main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.3;
    color: #333333;
    margin: 0 0 10px;
}

.career-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #606060;
    margin: 0;
}

.career-divider {
    max-width: 1280px;
    margin: 20px auto 32px;
    height: 0;
    border-top: 1px solid #00A7E1;
}

.alert-success-banner {
    background: #E6F9F0;
    border: 1px solid #70E2B1;
    color: #0C7A4A;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 500;
}

.alert-error-banner {
    background: #FDF2F2;
    border: 1px solid #F8B4B4;
    color: #9B1C1C;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 500;
}

/* Form Layout */
.career-form-container {
    max-width: 920px;
    margin: 0 auto;
    background: transparent;
}

.career-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.career-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.career-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #606060;
}

.career-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.career-input,
.career-select {
    width: 100%;
    height: 50px;
    background: #F3F8FB;
    border: 1px solid #8AE1FF;
    border-radius: 16px;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.career-select option {
    background-color: #FFFFFF;
    color: #333333;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.career-input::placeholder {
    color: #A4A4A4;
}

.career-input:focus,
.career-select:focus {
    background: #FFFFFF;
    border-color: #00A7E1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.15);
}

/* Custom Styled Select Dropdown */
.career-select-wrapper {
    position: relative;
    user-select: none;
}

.career-select-native {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.custom-select-trigger {
    width: 100%;
    height: 50px;
    background: #F3F8FB;
    border: 1px solid #8AE1FF;
    border-radius: 16px;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: #00A7E1;
    background: #EDF7FD;
}

.career-select-wrapper.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    background: #FFFFFF;
    border-color: #00A7E1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.15);
}

.custom-select-label.is-placeholder {
    color: #A4A4A4;
}

.custom-select-chevron {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.career-select-wrapper.open .custom-select-chevron {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #8AE1FF;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0, 167, 225, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.career-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
    background: #F1F9FD;
    color: #00A7E1;
    font-weight: 500;
}

.custom-option.selected {
    background: #00A7E1;
    color: #FFFFFF;
    font-weight: 600;
}

.career-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.btn-career-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 48px;
    height: 50px;
    background: #00A7E1;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-career-submit:hover {
    background: #0084B4;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 167, 225, 0.45);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (4 TIERS)
   ============================================================ */
@media (max-width: 1439px) {
    .hero-img-box {
        width: 100%;
        max-width: 740px;
        height: auto;
        min-height: 380px;
    }
}

@media (max-width: 1023px) {

    .hero-inner-grid,
    .peran-inner-grid,
    .why-header-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-img-col {
        margin-right: 0;
    }

    .why-subtitle {
        text-align: left;
    }

    .testi-container {
        padding: 0 24px;
    }

    .testi-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .testi-nav-btn {
        display: none;
    }

    .hero-img-box {
        border-radius: 40px;
        min-height: 280px;
        height: auto;
    }

    .why-card {
        height: auto;
    }
}

/* Mobile Responsive (< 768px) - Clean Figma Match */
@media (max-width: 767px) {

    /* 1. Hero Banner Section */
    .career-hero-section {
        padding: 0 0 40px;
        background: #EDF5F8;
    }

    .hero-inner-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .hero-img-col {
        order: 1;
        width: calc(100% + (2 * var(--gutter-mobile, 20px)));
        margin-left: calc(-1 * var(--gutter-mobile, 20px));
        margin-right: calc(-1 * var(--gutter-mobile, 20px));
        margin-top: 0;
    }

    .hero-img-box {
        width: 100%;
        height: 280px;
        min-height: auto;
        border-radius: 0 0 0 80px !important;
        overflow: hidden;
    }

    .hero-img-placeholder {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-text-col {
        order: 2;
        max-width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 24px !important;
        line-height: 135% !important;
        color: #333333 !important;
        font-weight: 700 !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        line-height: 24px !important;
        color: #606060 !important;
        margin-bottom: 24px;
    }

    .hero-cta-btn {
        height: 42px;
        padding: 10px 28px;
        font-size: 15px;
    }

    /* 2. Peran Section */
    .career-peran-section {
        padding: 40px 0;
        background: linear-gradient(180deg, #F2FBFF 0%, #EAFDFF 100%);
    }

    .peran-inner-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .peran-img-col {
        order: 1;
        width: 100%;
    }

    .peran-img-box {
        min-height: auto;
    }

    .peran-img-placeholder {
        width: 100%;
        max-height: 320px;
        object-fit: contain;
    }

    .peran-text-col {
        order: 2;
        width: 100%;
        padding: 0;
    }

    .peran-title {
        font-size: 24px !important;
        line-height: 135% !important;
        font-weight: 700 !important;
        color: #333333 !important;
    }

    .peran-description {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        color: #606060 !important;
    }

    /* 3. Kenapa Bergabung Section */
    .career-why-section {
        padding: 40px 0;
    }

    .why-header-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }

    .why-main-title {
        font-size: 24px !important;
        line-height: 135% !important;
        font-weight: 700 !important;
        color: #333333 !important;
    }

    .why-subtitle {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        color: #606060 !important;
        text-align: left !important;
    }

    .why-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .why-card {
        padding: 24px 20px !important;
        border-radius: 20px !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    }

    .why-icon-box {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        background: #00A7E1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 16px !important;
    }

    .why-icon-img {
        width: 24px !important;
        height: 24px !important;
        filter: brightness(0) invert(1) !important;
    }

    .why-card-title {
        font-size: 18px !important;
        line-height: 26px !important;
        color: #333333 !important;
        font-weight: 600 !important;
    }

    .why-card-divider {
        width: 100% !important;
        height: 1px !important;
        background: #E2E8F0 !important;
        margin: 12px 0 !important;
    }

    .why-card-text {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        color: #606060 !important;
    }

    /* 4. CTA Banner Section */
    .career-cta-banner {
        padding: 50px 0 !important;
    }

    .cta-banner-title {
        font-size: 24px !important;
        line-height: 135% !important;
        font-weight: 700 !important;
    }

    .cta-banner-subtitle {
        font-size: 15px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
    }

    .cta-banner-btn {
        height: 42px !important;
        padding: 10px 28px !important;
        font-size: 15px !important;
    }

    .testi-card {
        flex: 0 0 100%;
    }

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

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

@media (max-width: 479px) {
    .hero-img-col {
        width: calc(100% + (2 * var(--gutter-mobile-sm, 16px)));
        margin-left: calc(-1 * var(--gutter-mobile-sm, 16px));
        margin-right: calc(-1 * var(--gutter-mobile-sm, 16px));
    }
}