/* =========================================================
   RED FARMACY · TALENTHUB
========================================================= */

.rf-careers-hero {
    position: relative;
    padding: 165px 0 100px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(204, 33, 40, .13),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(15, 118, 110, .14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 55%,
            #eefdf9 100%
        );
}


.rf-careers-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(15,23,42,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(15,23,42,.04) 1px,
            transparent 1px
        );

    background-size: 44px 44px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}


.rf-careers-hero__grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr .9fr;

    gap: 70px;

    align-items: center;
}


.rf-careers-hero__content h1 {
    margin: 18px 0 22px;

    max-width: 720px;

    font-family:
        'Manrope',
        sans-serif;

    font-size:
        clamp(
            42px,
            5.4vw,
            72px
        );

    line-height: .98;

    letter-spacing: -.05em;

    color:
        var(--rf-dark);

    font-weight: 800;
}


.rf-careers-hero__content h1 strong {
    color:
        var(--rf-primary);
}


.rf-careers-hero__content p {
    max-width: 660px;

    color:
        var(--rf-muted);

    font-size: 18px;

    line-height: 1.8;
}


.rf-careers-hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 30px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.rf-careers-hero__visual {
    position: relative;

    min-height: 510px;
}


.rf-careers-hero__image {
    position: relative;

    height: 500px;

    overflow: hidden;

    border-radius: 42px;

    box-shadow:
        var(--rf-shadow);
}


.rf-careers-hero__image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(15,23,42,.34)
        );
}


.rf-careers-hero__image img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


.rf-careers-floating {
    position: absolute;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 14px 18px;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    box-shadow:
        0 18px 45px
        rgba(15,23,42,.16);

    backdrop-filter:
        blur(15px);
}


.rf-careers-floating i {
    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background:
        rgba(204,33,40,.10);

    color:
        var(--rf-primary);
}


.rf-careers-floating strong,
.rf-careers-floating span {
    display: block;
}


.rf-careers-floating strong {
    color:
        var(--rf-dark);

    font-size: 14px;

    font-weight: 800;
}


.rf-careers-floating span {
    margin-top: 3px;

    color:
        var(--rf-muted);

    font-size: 12px;
}


.rf-careers-floating--top {
    top: 45px;
    left: -35px;
}


.rf-careers-floating--bottom {
    right: -26px;
    bottom: 60px;
}


/* =========================================================
   VALUES
========================================================= */

.rf-careers-values {
    padding: 38px 0;

    background:
        var(--rf-white);

    border-bottom:
        1px solid
        var(--rf-border);
}


.rf-careers-values__grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}


.rf-careers-values article {
    display: flex;

    gap: 18px;

    padding: 26px;

    border-radius: 26px;

    background:
        #f8fafc;

    border:
        1px solid
        var(--rf-border);
}


.rf-careers-values__icon {
    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        rgba(15,118,110,.10);

    color:
        var(--rf-secondary);

    font-size: 21px;
}


.rf-careers-values h3 {
    margin: 0 0 7px;

    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-size: 18px;

    font-weight: 800;
}


.rf-careers-values p {
    margin: 0;

    color:
        var(--rf-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   OPENINGS
========================================================= */

.rf-careers-openings {
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );
}


.rf-careers-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}


.rf-careers-heading h2 {
    margin: 0;

    font-family:
        'Manrope',
        sans-serif;

    color:
        var(--rf-dark);

    font-size:
        clamp(
            32px,
            4vw,
            52px
        );

    line-height: 1.05;

    letter-spacing: -.04em;

    font-weight: 800;
}


.rf-careers-count {
    min-width: 170px;

    padding: 18px 22px;

    border-radius: 22px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    text-align: center;
}


.rf-careers-count strong {
    display: block;

    color:
        var(--rf-primary);

    font-size: 30px;

    font-weight: 800;
}


.rf-careers-count span {
    color:
        var(--rf-muted);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   FILTERS
========================================================= */

.rf-careers-filters {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        auto;

    gap: 16px;

    align-items: flex-end;

    margin-bottom: 34px;

    padding: 24px;

    border-radius: 28px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    box-shadow:
        0 18px 45px
        rgba(15,23,42,.06);
}


.rf-careers-filters label {
    margin: 0;
}


.rf-careers-filters label > span {
    display: block;

    margin-bottom: 8px;

    color:
        var(--rf-dark);

    font-size: 13px;

    font-weight: 800;
}


.rf-careers-filters input,
.rf-careers-filters select {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border:
        1px solid
        var(--rf-border);

    border-radius: 16px;

    background:
        #f8fafc;

    color:
        var(--rf-dark);

    outline: none;

    font-weight: 600;
}


.rf-careers-input {
    position: relative;
}


.rf-careers-input i {
    position: absolute;

    top: 50%;

    left: 16px;

    transform:
        translateY(-50%);

    color:
        var(--rf-muted);
}


.rf-careers-input input {
    padding-left: 43px;
}


.rf-careers-filter-button {
    min-height: 50px;
}


/* =========================================================
   VACANCY CARDS
========================================================= */

.rf-careers-list {
    display: grid;

    gap: 16px;
}


.rf-career-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;

    padding: 26px;

    border-radius: 28px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    box-shadow:
        0 16px 40px
        rgba(15,23,42,.05);

    transition:
        all .25s ease;
}


.rf-career-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(204,33,40,.25);

    box-shadow:
        var(--rf-shadow);
}


.rf-career-card__main {
    display: flex;

    align-items: center;

    gap: 20px;
}


.rf-career-card__icon {
    width: 64px;

    height: 64px;

    flex: 0 0 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 22px;

    background:
        rgba(204,33,40,.1);

    color:
        var(--rf-primary);

    font-size: 24px;
}


.rf-career-card__date {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 6px;

    color:
        var(--rf-muted);

    font-size: 12px;

    font-weight: 700;
}


.rf-career-card h3 {
    margin:
        0 0 12px;

    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-size: 23px;

    font-weight: 800;
}


.rf-career-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


.rf-career-card__meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--rf-muted);

    font-size: 13px;

    font-weight: 600;
}


.rf-career-card__meta i {
    color:
        var(--rf-secondary);
}


.rf-career-card__link {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--rf-primary);

    text-decoration: none;

    font-weight: 800;
}


.rf-career-card__link:hover {
    color:
        var(--rf-primary-dark);
}


/* =========================================================
   EMPTY / PAGINATION
========================================================= */

.rf-careers-empty {
    max-width: 680px;

    margin: 40px auto 0;

    padding: 55px 30px;

    border-radius: 32px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    text-align: center;
}


.rf-careers-empty__icon {
    width: 72px;

    height: 72px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 24px;

    background:
        rgba(204,33,40,.1);

    color:
        var(--rf-primary);

    font-size: 28px;
}


.rf-careers-empty h3 {
    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-weight: 800;
}


.rf-careers-empty p {
    margin:
        10px auto 22px;

    max-width: 500px;

    color:
        var(--rf-muted);
}


.rf-careers-pagination {
    margin-top: 34px;
}


/* =========================================================
   CTA
========================================================= */

.rf-careers-cta {
    padding:
        30px 0 105px;

    background:
        var(--rf-white);
}


.rf-careers-cta__box {
    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    gap: 28px;

    align-items: center;

    padding: 42px;

    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            rgba(204,33,40,.97),
            rgba(159,23,30,.97)
        );

    color:
        var(--rf-white);

    box-shadow:
        var(--rf-shadow);
}


.rf-careers-cta__icon {
    width: 72px;

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 24px;

    background:
        rgba(255,255,255,.15);

    font-size: 28px;
}


.rf-careers-cta .rf-section__tag,
.rf-careers-cta h2,
.rf-careers-cta p {
    color:
        var(--rf-white);
}


.rf-careers-cta .rf-section__tag::before,
.rf-careers-cta .rf-section__tag::after {
    background:
        var(--rf-white);
}


.rf-careers-cta h2 {
    margin:
        0 0 10px;

    font-family:
        'Manrope',
        sans-serif;

    font-size:
        clamp(
            28px,
            3vw,
            42px
        );

    font-weight: 800;
}


.rf-careers-cta p {
    margin: 0;

    max-width: 670px;

    opacity: .86;

    line-height: 1.7;
}


.rf-careers-cta .rf-btn {
    background:
        var(--rf-white);

    color:
        var(--rf-primary);
}


/* =========================================================
   DETAIL HERO
========================================================= */

.rf-career-detail-hero {
    position: relative;

    padding:
        145px 0 85px;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(204,33,40,.14),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f8fafc
        );
}


.rf-career-back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    color:
        var(--rf-muted);

    text-decoration: none;

    font-weight: 800;
}


.rf-career-back:hover {
    color:
        var(--rf-primary);
}


.rf-career-detail-hero__content {
    max-width: 950px;
}


.rf-career-detail-hero h1 {
    margin:
        10px 0 22px;

    font-family:
        'Manrope',
        sans-serif;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    line-height: 1;

    letter-spacing: -.05em;

    color:
        var(--rf-dark);

    font-weight: 800;
}


.rf-career-detail-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


.rf-career-detail-meta span {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 14px;

    border-radius:
        999px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    color:
        var(--rf-muted);

    font-size: 13px;

    font-weight: 700;
}


.rf-career-detail-meta i {
    color:
        var(--rf-primary);
}


.rf-career-mobile-apply {
    display: none;

    margin-top: 25px;
}


/* =========================================================
   DETAIL GRID
========================================================= */

.rf-career-detail-section {
    background:
        #f8fafc;
}


.rf-career-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        390px;

    gap: 32px;

    align-items: flex-start;
}


/* =========================================================
   CONTENT CARDS
========================================================= */

.rf-career-description {
    display: grid;

    gap: 22px;
}


.rf-career-content-card {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    gap: 22px;

    padding: 30px;

    border-radius: 30px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    box-shadow:
        0 16px 40px
        rgba(15,23,42,.05);
}


.rf-career-content-card__icon {
    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        rgba(15,118,110,.10);

    color:
        var(--rf-secondary);

    font-size: 21px;
}


.rf-career-content-card h2 {
    margin:
        4px 0 14px;

    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-size: 25px;

    font-weight: 800;
}


.rf-career-richtext {
    color:
        var(--rf-muted);

    line-height: 1.8;

    white-space: normal;
}


/* =========================================================
   SKILLS
========================================================= */

.rf-career-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.rf-career-skills span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        9px 14px;

    border-radius: 999px;

    background:
        rgba(204,33,40,.08);

    color:
        var(--rf-primary);

    font-weight: 800;
}


.rf-career-skills small {
    color:
        var(--rf-muted);

    font-weight: 600;
}


/* =========================================================
   APPLY CARD
========================================================= */

.rf-career-apply-card {
    position: sticky;

    top: 110px;

    padding: 28px;

    border-radius: 32px;

    background:
        var(--rf-white);

    border:
        1px solid
        var(--rf-border);

    box-shadow:
        var(--rf-shadow);
}


.rf-career-apply-card__head {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 24px;
}


.rf-career-apply-card__icon {
    width: 54px;

    height: 54px;

    flex: 0 0 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        rgba(204,33,40,.10);

    color:
        var(--rf-primary);

    font-size: 21px;
}


.rf-career-apply-card__head
.rf-section__tag {
    margin-bottom: 4px;
}


.rf-career-apply-card__head
.rf-section__tag::after {
    display: none;
}


.rf-career-apply-card h2 {
    margin: 0;

    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-size: 25px;

    font-weight: 800;
}


/* =========================================================
   ALERTS
========================================================= */

.rf-career-alert {
    display: flex;

    gap: 11px;

    margin-bottom: 18px;

    padding: 14px;

    border-radius: 16px;

    background:
        #eff6ff;

    color:
        #1e40af;

    font-size: 13px;
}


.rf-career-alert--success {
    background:
        #ecfdf5;

    color:
        #047857;
}


.rf-career-alert--error {
    background:
        #fef2f2;

    color:
        #b91c1c;
}


.rf-career-alert p {
    margin: 0;
}


/* =========================================================
   APPLIED / LOGIN
========================================================= */

.rf-career-applied,
.rf-career-apply-message {
    text-align: center;
}


.rf-career-applied {
    padding:
        24px 15px;
}


.rf-career-applied__icon {
    width: 64px;

    height: 64px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 16px;

    border-radius: 50%;

    background:
        #ecfdf5;

    color:
        #059669;

    font-size: 25px;
}


.rf-career-applied h3 {
    margin:
        0 0 8px;

    color:
        var(--rf-dark);

    font-family:
        'Manrope',
        sans-serif;

    font-weight: 800;
}


.rf-career-applied p,
.rf-career-apply-message p {
    color:
        var(--rf-muted);

    line-height: 1.65;
}


.rf-career-apply-message i {
    display: block;

    margin-bottom: 15px;

    color:
        var(--rf-primary);

    font-size: 32px;
}


/* =========================================================
   APPLICATION FORM
========================================================= */

.rf-career-form {
    display: grid;

    gap: 17px;
}


.rf-career-form label {
    display: block;

    margin: 0;
}


.rf-career-form label > span {
    display: block;

    margin-bottom: 8px;

    color:
        var(--rf-dark);

    font-size: 13px;

    font-weight: 800;
}


.rf-career-form label b {
    color:
        var(--rf-primary);
}


.rf-career-form input,
.rf-career-form textarea,
.rf-career-form select {
    width: 100%;

    border:
        1px solid
        var(--rf-border);

    border-radius: 16px;

    background:
        #f8fafc;

    color:
        var(--rf-dark);

    outline: none;

    font-size: 14px;

    transition:
        all .2s ease;
}


.rf-career-form input,
.rf-career-form select {
    height: 50px;

    padding:
        0 14px;
}


.rf-career-form textarea {
    padding:
        14px;

    resize: vertical;
}


.rf-career-form input:focus,
.rf-career-form textarea:focus,
.rf-career-form select:focus {
    background:
        var(--rf-white);

    border-color:
        rgba(204,33,40,.5);

    box-shadow:
        0 0 0 4px
        rgba(204,33,40,.07);
}


.rf-career-consent {
    display: flex;

    gap: 10px;

    margin: 2px 0;

    padding: 13px;

    border-radius: 15px;

    background:
        rgba(15,118,110,.07);

    color:
        var(--rf-muted);

    font-size: 12px;

    line-height: 1.55;
}


.rf-career-consent i {
    margin-top: 2px;

    color:
        var(--rf-secondary);
}


.rf-career-full-btn {
    width: 100%;
}

.rf-career-auth-intro { color: var(--rf-muted); line-height: 1.65; }
.rf-career-auth-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 18px 0 22px; }
.rf-career-auth-steps span { padding: 9px 5px; border-radius: 11px; background: #f1f4f7; color: #788693; text-align: center; font-size: 11px; font-weight: 800; }
.rf-career-auth-steps span.active { background: var(--rf-dark); color: #fff; }
.rf-career-auth-steps span.done { background: rgba(15,118,110,.1); color: var(--rf-secondary); }
.rf-career-auth-feedback { display: none; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #eef4f8; color: #34495a; font-size: 13px; }
.rf-career-auth-feedback.error { background: #fff0ef; color: #9c2825; }
.rf-career-auth-back { border: 0; background: transparent; color: var(--rf-muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.rf-career-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rf-career-form-section { padding-top: 5px; border-top: 1px solid var(--rf-border); }
.rf-career-form-section:first-child { border-top: 0; }
.rf-career-form-section h3 { margin: 8px 0 5px; color: var(--rf-dark); font-family: 'Manrope',sans-serif; font-size: 17px; font-weight: 800; }
.rf-career-form-section p,.rf-career-form label small { display: block; margin: 0; color: var(--rf-muted); font-size: 12px; line-height: 1.55; }
.rf-career-form label small { margin-top: 6px; }
.rf-career-checkbox { display: flex!important; align-items: flex-start; gap: 10px; color: var(--rf-muted); font-size: 12px; line-height: 1.55; }
.rf-career-checkbox input { width: auto!important; height: auto!important; margin-top: 3px; }
.rf-career-checkbox > span { margin: 0!important; font-weight: 500!important; }
.rf-career-form button:disabled { opacity: .65; cursor: wait; }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .rf-careers-hero__grid {
        grid-template-columns: 1fr;
    }


    .rf-careers-hero__visual {
        min-height: 420px;
    }


    .rf-careers-hero__image {
        height: 410px;
    }


    .rf-careers-values__grid {
        grid-template-columns: 1fr;
    }


    .rf-careers-filters {
        grid-template-columns:
            repeat(2,1fr);
    }


    .rf-careers-filter-button {
        width: 100%;
    }


    .rf-careers-cta__box {
        grid-template-columns:
            auto
            1fr;
    }


    .rf-careers-cta__action {
        grid-column:
            1 / -1;
    }


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


    .rf-career-apply-card {
        position: relative;

        top: auto;
    }


    .rf-career-mobile-apply {
        display: inline-flex;
    }

}


@media (max-width: 767px) {

    .rf-careers-hero {
        padding:
            125px 0 70px;
    }


    .rf-careers-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .rf-careers-count {
        width: 100%;
    }


    .rf-careers-filters {
        grid-template-columns: 1fr;
    }


    .rf-career-card {
        align-items: flex-start;

        flex-direction: column;
    }


    .rf-career-card__main {
        align-items: flex-start;
    }


    .rf-career-card__link {
        margin-left: 84px;
    }


    .rf-careers-cta__box {
        grid-template-columns: 1fr;

        padding: 30px;
    }


    .rf-careers-cta__action {
        grid-column: auto;
    }


    .rf-careers-cta__action .rf-btn {
        width: 100%;
    }


    .rf-career-detail-hero {
        padding:
            120px 0 65px;
    }


    .rf-career-content-card {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 575px) {

    .rf-careers-hero__visual {
        min-height: 330px;
    }


    .rf-careers-hero__image {
        height: 320px;

        border-radius: 30px;
    }


    .rf-careers-floating {
        padding:
            10px 12px;
    }


    .rf-careers-floating--top {
        left: 8px;
    }


    .rf-careers-floating--bottom {
        right: 8px;
        bottom: 30px;
    }


    .rf-careers-floating span {
        display: none;
    }


    .rf-career-card {
        padding: 22px;

        border-radius: 24px;
    }


    .rf-career-card__icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        border-radius: 18px;
    }


    .rf-career-card h3 {
        font-size: 20px;
    }


    .rf-career-card__link {
        margin-left: 0;

        width: 100%;

        justify-content: center;

        padding-top: 14px;

        border-top:
            1px solid
            var(--rf-border);
    }


    .rf-career-content-card,
    .rf-career-apply-card {
        padding: 22px;

        border-radius: 26px;
    }

}

@media (max-width: 480px) {
    .rf-career-form-row { grid-template-columns: 1fr; }
}
