/* ============================================================
   COWAY DIRECT SALES TEAM CAREER PAGE STYLES - FLUSH & ZERO OVERLAP
   ============================================================ */

.sales-page {
    position: relative;
    width: 100%;
    background: #F8FAFC;
    overflow-x: hidden;
}

/* Shared Line & Button Utilities */
.sales-blue-line {
    width: 150px;
    height: 0px;
    border: 3px solid #00A7E1;
    margin: 0;
    flex-shrink: 0;
}

.btn-sales-primary {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
    height: 40px;
    background: #00A7E1;
    border-radius: 12px;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 167, 225, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    border: none;
}

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

.btn-sales-primary .btn-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sales-primary .btn-arrow.arrow-down {
    transform: rotate(90deg);
}

.btn-sales-primary:hover .btn-arrow.arrow-down {
    transform: rotate(90deg) translateX(4px);
}

.btn-sales-primary .btn-arrow.arrow-right {
    transform: rotate(0deg);
}

.btn-sales-primary:hover .btn-arrow.arrow-right {
    transform: translateX(4px);
}

/* ============================================================
   1. HERO BANNER SECTION (Frame 2147228082)
   ============================================================ */
.sales-hero-section {
    position: relative;
    width: 100%;
    height: 680px;
    min-height: 680px;
    background: url('/img/sales-team/hero-bg.png') center center / cover no-repeat, linear-gradient(270deg, #0A5D7A 0%, #465A61 100%);
    border-radius: 0px 0px 0px 120px;
    isolation: isolate;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sales-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.sales-hero-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 0px;
    gap: 24px;
    width: 722px;
    max-width: 55%;
    height: 465px;
    z-index: 1;
}

.sales-hero-frame-2147228094 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 100%;
}

.sales-hero-tag {
    width: 100%;
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 23px;
    display: flex;
    align-items: center;
    text-transform: capitalize;
    color: #FFFFFF;
}

.sales-hero-title {
    width: 100%;
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.3;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    margin: 0;
}

.sales-hero-btn-wrapper {
    margin-top: 0;
}

.hero-btn {
    width: 203px;
    height: 40px;
}

.sales-hero-img-box {
    position: absolute;
    width: auto;
    height: 600px;
    max-height: 90%;
    right: 80px;
    bottom: 0px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.sales-hero-team-img {
    height: 100%;
    width: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    margin-bottom: 0;
    vertical-align: bottom;
}

/* ============================================================
   2. KONSULTAN SOLUSI AIR DAN UDARA SEHAT (Frame 2147227929)
   ============================================================ */
.sales-peran-section {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    isolation: isolate;
    width: 100%;
    min-height: 600px;
    background: #F8FAFC;
    overflow: hidden;
}

.sales-peran-blue-rect {
    position: absolute;
    width: 531px;
    height: 244px;
    left: 0px;
    top: calc(50% - 122px);
    background: linear-gradient(94.27deg, #3EC2F0 0%, rgba(0, 167, 225, 0) 96%);
    border-radius: 0 40px 40px 0;
    z-index: 0;
}

.sales-peran-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.sales-peran-img-area {
    position: relative;
    width: 573px;
    height: 600px;
    flex-shrink: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-peran-img-box {
    position: relative;
    width: 480px;
    height: 493px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-peran-team-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sales-peran-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 40px 0px 40px;
    gap: 24px;
    width: 750px;
    height: 179px;
    z-index: 2;
}

.sales-peran-title {
    width: 667px;
    max-width: 100%;
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 130%;
    display: flex;
    align-items: center;
    color: #333333;
    margin: 0;
}

.sales-peran-desc-wrapper {
    width: 667px;
    max-width: 100%;
}

.sales-peran-desc {
    width: 667px;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #606060;
    margin: 0;
}

/* ============================================================
   3. MULAI KARIER ANDA MENJADI SALES COWAY (Frame 2147228087)
   ============================================================ */
.sales-cta-section {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    isolation: isolate;
    width: 100%;
    height: 584px;
    min-height: 584px;
    border-radius: 0px 120px 0px 0px;
    background: url('/img/sales-team/cta-bg.png') center center / cover no-repeat, linear-gradient(90deg, rgba(0, 102, 137, 0.9) 0%, rgba(0, 101, 136, 0.9) 100%);
    overflow: hidden;
}

.sales-cta-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.sales-cta-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    width: 641px;
    max-width: 55%;
    height: 234px;
    z-index: 1;
}

.sales-cta-title {
    width: 641px;
    max-width: 100%;
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 130%;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    margin: 0;
}

.sales-cta-subtitle-wrapper {
    width: 641px;
    max-width: 100%;
}

.sales-cta-subtitle {
    width: 641px;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    margin: 0;
}

.cta-btn {
    width: 190px;
    height: 40px;
}

.sales-cta-img-box {
    position: absolute;
    width: auto;
    height: 520px;
    max-height: 90%;
    right: 100px;
    bottom: 0px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.sales-cta-team-img {
    height: 100%;
    width: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    margin-bottom: 0;
    vertical-align: bottom;
}

/* ============================================================
   4. RECRUITMENT FORM SECTION (Frame 2147227927, 2147228000, 2147228001)
   ============================================================ */
.career-register-page {
    padding-top: 140px;
    padding-bottom: 90px;
    background: #F8FAFC;
}

.career-header-box {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

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

.career-title-line-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1280px;
}

.career-title-line {
    flex: 1;
    height: 0px;
    border-top: 1px solid #00A7E1;
}

.career-main-title {
    font-family: 'Stack Sans Headline', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    line-height: 130%;
    color: #333333;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.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;
    width: 100%;
}

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

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

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

.input-calendar-icon {
    position: absolute;
    right: 14px;
    pointer-events: none;
    z-index: 1;
}

.career-input[type="date"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.career-input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.career-input[type="date"]::-webkit-inner-spin-button,
.career-input[type="date"]::-webkit-clear-button {
    -webkit-appearance: none;
    margin: 0;
}

.career-input,
.career-select {
    width: 100%;
    height: 50px;
    background: #F3F8FB;
    border: 1px solid #00A7E1;
    border-radius: 16px;
    padding: 16px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.career-input::placeholder {
    color: #8E8E8E;
    font-weight: 400;
}

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

.career-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    width: 100%;
}

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

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

/* Custom Select Dropdown Styling */
.career-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.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 #00A7E1;
    border-radius: 16px;
    padding: 16px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

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

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

.custom-select-label.is-placeholder {
    color: #8E8E8E;
    font-weight: 400;
}

.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% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #00A7E1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
}

.career-select-wrapper.open .custom-select-options {
    display: block;
    animation: fadeInSelect 0.2s ease;
}

@keyframes fadeInSelect {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.custom-option:hover {
    background: #F0F9FD;
    color: #00A7E1;
}

.custom-option.selected {
    background: #E0F4FB;
    color: #0084B4;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE STYLES (DESKTOP SMALL, TABLET, MOBILE)
   ============================================================ */
@media (max-width: 1399px) {
    .sales-hero-img-box {
        height: 540px;
        right: 40px;
    }

    .sales-hero-text-box {
        width: 560px;
    }

    .sales-hero-title {
        font-size: 44px;
        line-height: 58px;
    }

    .sales-cta-img-box {
        height: 460px;
        right: 40px;
    }
}

@media (max-width: 1199px) {
    .sales-hero-img-box {
        height: 480px;
        right: 20px;
    }

    .sales-hero-text-box {
        width: 500px;
    }

    .sales-hero-title {
        font-size: 38px;
        line-height: 50px;
    }

    .sales-peran-text-box {
        width: 480px;
        padding-left: 20px;
    }

    .sales-cta-text-box {
        width: 480px;
    }

    .sales-cta-img-box {
        height: 420px;
        right: 20px;
    }

    .career-form-container {
        max-width: 800px;
    }
}

@media (max-width: 991px) {
    .sales-hero-section {
        height: auto;
        min-height: 600px;
        border-radius: 0px 0px 0px 60px;
        padding-top: 80px;
        padding-bottom: 0;
    }

    .sales-hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        height: 100%;
    }

    .sales-hero-text-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 0 10px;
        align-items: center;
    }

    .sales-hero-frame-2147228094 {
        width: 100%;
        align-items: center;
    }

    .sales-hero-tag {
        width: 100%;
        justify-content: center;
    }

    .sales-hero-title {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 36px;
        line-height: 48px;
    }

    .sales-hero-img-box {
        position: relative;
        right: auto;
        bottom: 0;
        width: 100%;
        max-width: 380px;
        height: 400px;
        margin-top: 30px;
        margin-bottom: 0;
        padding-bottom: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .sales-hero-team-img {
        height: 100%;
        width: auto;
        max-height: 400px;
        object-position: bottom center;
        margin-bottom: 0;
        vertical-align: bottom;
    }

    /* Section 2 Mobile: Pure vertical separation, blue rect pushed DOWN behind image only */
    .sales-peran-section {
        height: auto;
        min-height: auto;
        padding: 60px 0 40px;
    }

    .sales-peran-blue-rect {
        display: none;
    }

    .sales-peran-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 0px;
    }

    .sales-peran-text-box {
        width: 100%;
        height: auto;
        padding: 0;
        align-items: center;
        text-align: center;
        margin-bottom: 36px;
    }

    .sales-peran-title {
        justify-content: center;
        text-align: center;
    }

    .sales-peran-img-area {
        width: 100%;
        max-width: 440px;
        height: auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
    }

    .sales-peran-img-area::before {
        content: '';
        position: absolute;
        width: 90%;
        height: 200px;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(94.27deg, #3EC2F0 0%, rgba(0, 167, 225, 0) 96%);
        border-radius: 30px;
        z-index: 0;
    }

    .sales-peran-img-box {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 380px;
        height: auto;
        z-index: 1;
    }

    .sales-cta-section {
        height: auto;
        min-height: 500px;
        border-radius: 0px 60px 0px 0px;
        padding-top: 60px;
        padding-bottom: 0;
    }

    .sales-cta-container {
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        height: 100%;
    }

    .sales-cta-text-box {
        width: 100%;
        max-width: 100%;
        height: auto;
        align-items: center;
        padding-bottom: 10px;
    }

    .sales-cta-title {
        justify-content: center;
        text-align: center;
    }

    .sales-cta-img-box {
        position: relative;
        right: auto;
        bottom: 0;
        width: 100%;
        max-width: 380px;
        height: 380px;
        margin-top: 30px;
        margin-bottom: 0;
        padding-bottom: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .sales-cta-team-img {
        height: 100%;
        width: auto;
        max-height: 380px;
        object-position: bottom center;
        margin-bottom: 0;
        vertical-align: bottom;
    }

    /* Registration Form Mobile Responsive */
    .career-register-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .career-title-line-row {
        gap: 12px;
    }

    .career-title-line {
        display: none;
    }

    .career-main-title {
        font-size: 26px;
        white-space: normal;
    }

    .career-form-container {
        padding: 0 16px;
    }

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

    .btn-career-submit {
        width: max-content;
        height: 50px;
    }
}

@media (max-width: 575px) {
    .sales-hero-section {
        border-radius: 0px 0px 0px 40px;
    }

    .sales-hero-title {
        font-size: 28px;
        line-height: 38px;
    }

    .sales-blue-line {
        width: 100px;
    }

    .sales-hero-img-box {
        max-width: 320px;
        height: 320px;
    }

    .sales-hero-team-img {
        max-height: 320px;
    }

    .sales-peran-title,
    .sales-cta-title {
        font-size: 24px;
        line-height: 32px;
    }

    .sales-peran-img-area::before {
        top: 60px;
        height: 170px;
    }

    .sales-cta-section {
        border-radius: 0px 40px 0px 0px;
    }

    .sales-cta-img-box {
        max-width: 320px;
        height: 320px;
    }

    .sales-cta-team-img {
        max-height: 320px;
    }

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

    .career-tagline {
        font-size: 15px;
    }

    .career-main-title {
        font-size: 22px;
    }
}