/* ==========================================================================
   MOLVIZADAH SONS — CAREERS PAGE (ms-cr- prefix; isolated from ms-cp-/ms-contact-*)
   CSS variables scoped to .ms-cr-page so nothing leaks into global :root.
   ========================================================================== */

.ms-cr-page {
    --cr-bg: #F8F6F2;
    --cr-white: #FFFFFF;
    --cr-dark: #181818;
    --cr-gold: #C89B5E;
    --cr-border: #E8E2D8;
    --cr-text: #222222;
    --cr-max-width: 1400px;
    --cr-content-width: 1320px;
    --cr-pad-desktop: 180px;
    --cr-pad-tablet: 80px;
    --cr-pad-mobile: 60px;
  
}

.ms-cr-page * { box-sizing: border-box; }

/* Full-bleed section shells; inner content capped at --cr-content-width */
.ms-cr-hero,
.ms-cr-why,
.ms-cr-positions,
.ms-cr-form-section,
.ms-cr-cta {
    width: 100%;
    position: relative;
}

.ms-cr-why-inner,
.ms-cr-positions-inner,
.ms-cr-form-inner,
.ms-cr-cta-inner {
    max-width: var(--cr-content-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Shared type */
.ms-cr-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cr-gold);
    margin-bottom: 18px;
}
/* Hero Initial Hidden State for GSAP Cinematic Animation (Global Network Style) */
.ms-cr-hero-bg-img,
.ms-cr-hero-left,
.ms-cr-hero-title,
.ms-cr-gold-divider,
.ms-cr-hero-desc,
.ms-cr-btn-gold {
    opacity: 0;
}
.ms-cr-eyebrow-dark { color: var(--cr-gold); }

.ms-cr-section-title {
    font-family: var(--font-display);
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--cr-text);
    margin: 0 0 20px 0;
}
.ms-cr-title-light { color: var(--cr-white); }

.ms-cr-gold-divider {
    display: block;
    width: 64px;
    height: 2px;
    background-color: var(--cr-gold);
    margin: 22px 0 24px 0;
}

/* Buttons */
.ms-cr-btn-gold,
.ms-cr-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    background-color: var(--cr-gold);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.ms-cr-btn-gold svg,
.ms-cr-submit-btn svg,
.ms-cr-btn-outline-gold svg,
.ms-cr-apply-link svg {
    transition: transform 0.25s ease;
}
.ms-cr-btn-gold:hover svg,
.ms-cr-submit-btn:hover svg,
.ms-cr-btn-outline-gold:hover svg,
.ms-cr-apply-link:hover svg {
    transform: translateX(3px);
}
.ms-cr-btn-gold:hover,
.ms-cr-submit-btn:hover {
    background-color: #b5853e;
    transform: translateY(-2px);
    color: #ffffff;
}
.ms-cr-btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    background: transparent;
    color: var(--cr-gold);
    border: 1px solid var(--cr-gold);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.25s ease;
}
.ms-cr-btn-outline-gold:hover {
    background-color: var(--cr-gold);
    color: var(--cr-dark);
}

/* ---------------------------------------------------------------------
   01. HERO
--------------------------------------------------------------------- */
.ms-cr-hero {
    position: relative;
    width: 100%;
    min-height: 720px;
    overflow: hidden;
    background-color: var(--cr-bg);
    display: flex;
    align-items: center;
}
.ms-cr-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ms-cr-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}
.ms-cr-hero-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        #F8F6F2 0%,
        #F8F6F2 36%,
        rgba(248,246,242,0.92) 44%,
        rgba(248,246,242,0.65) 52%,
        rgba(248,246,242,0.25) 62%,
        rgba(248,246,242,0) 80%
    );
    pointer-events: none;
}
/* Bottom gradient — hidden on desktop, only used on mobile/tablet where the
   layout stacks vertically (see media queries below). */
.ms-cr-hero-bottom-gradient {
    display: none;
}
.ms-cr-hero-inner {
    position: relative;
    z-index: 3;
    max-width: var(--cr-content-width);
    margin: 0 auto;
    width: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 80px 0px;
}
.ms-cr-hero-left {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}
.ms-cr-hero-title {
    font-family: var(--font-display);
    font-size:  3.5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--cr-text);
    margin: 0 0 20px 0;
}
.ms-cr-hero-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: #5B5B5B;
    max-width: 420px;
    margin-bottom: 32px;
}
.ms-cr-hero-desc p { margin: 0 0 12px 0; }
.ms-cr-hero-desc p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   02. WHY BUILD YOUR CAREER
--------------------------------------------------------------------- */
.ms-cr-why {
    background-color: var(--cr-white);
    padding: var(--cr-pad-desktop) 40px;
}
.ms-cr-why-inner {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 56px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.ms-cr-why-desc {
    font-family: var(--font-sans);
    font-size: 16px !important;
    line-height: 1.7;
    color: #5B5B5B;
    max-width: 420px;
    margin: 0;
}
.ms-cr-why-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.ms-cr-feature-block {
    padding: 28px 24px;
    background-color: #F8F6F2;
    border-radius: 18px;
    border: 1px solid rgba(229, 226, 220, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ms-cr-feature-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.ms-cr-feature-number {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: var(--cr-gold);
    line-height: 1;
    margin-bottom: 14px;
}
.ms-cr-feature-icon {
    display: inline-flex;
    color: var(--cr-gold);
    margin-bottom: 14px;
}
.ms-cr-feature-title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-text);
    margin: 0 0 5px 0;
}
.ms-cr-feature-desc {
    font-family: var(--font-sans);
    font-size: 16px !important;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* ---------------------------------------------------------------------
   03. OPEN POSITIONS (dark)
--------------------------------------------------------------------- */
.ms-cr-positions {
    background-color: var(--cr-dark);
    padding: 160px 40px;
    min-height: 500px;
    overflow: hidden;
}
.ms-cr-positions-network {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 100%;
    background-image:
        radial-gradient(circle at 85% 15%, rgba(200,155,94,0.35) 0, rgba(200,155,94,0) 2px),
        radial-gradient(circle at 70% 40%, rgba(200,155,94,0.25) 0, rgba(200,155,94,0) 2px),
        radial-gradient(circle at 95% 55%, rgba(200,155,94,0.3) 0, rgba(200,155,94,0) 2px),
        repeating-linear-gradient(115deg, rgba(200,155,94,0.06) 0px, rgba(200,155,94,0.06) 1px, transparent 1px, transparent 60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.ms-cr-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
}
.ms-cr-table {
    width: 100%;
    border-collapse: collapse;
}
.ms-cr-table thead th {
    text-align: left;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-gold);
    padding: 0 12px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ms-cr-th-apply { text-align: right; }
.ms-cr-table-row {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background-color 0.25s ease;
}
.ms-cr-table-row:hover {
    background-color: rgba(255,255,255,0.03);
}
.ms-cr-table td {
    font-family: var(--font-sans);
    font-size: 15px;
    color: #E5E5E5;
    padding: 20px 12px;
}
.ms-cr-td-apply { text-align: left; }
.ms-cr-apply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--cr-gold);
    text-decoration: none;
}
.ms-cr-positions-btn-row {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

/* -----------------------------------------------------------------------
   03a. OPEN POSITIONS — EXPANDABLE ROW DETAILS (accordion)
   ----------------------------------------------------------------------- */

.ms-cr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ms-cr-table-row.ms-cr-row-has-toggle {
    cursor: pointer;
}

.ms-cr-table-row.ms-cr-row-has-toggle:hover {
    background-color: rgba(200, 155, 94, 0.06);
}

.ms-cr-table-row.is-open {
    background-color: rgba(200, 155, 94, 0.08);
    border-bottom-color: transparent;
}

.ms-cr-position-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ms-cr-row-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(200, 155, 94, 0.4);
    background: rgba(200, 155, 94, 0.08);
    color: var(--cr-gold);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ms-cr-table-row.ms-cr-row-has-toggle:hover .ms-cr-row-toggle,
.ms-cr-row-toggle:focus-visible {
    background-color: var(--cr-gold);
    border-color: var(--cr-gold);
    color: var(--cr-dark);
}

.ms-cr-row-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-cr-table-row.is-open .ms-cr-row-toggle-icon {
    transform: rotate(180deg);
}

.ms-cr-table-row.is-open .ms-cr-row-toggle {
    background-color: var(--cr-gold);
    border-color: var(--cr-gold);
    color: var(--cr-dark);
}

.ms-cr-position-title {
    font-weight: 600;
    color: #FFFFFF;
}

/* Detail row: height is animated via inline max-height set by JS
   (based on measured scrollHeight), so it works for any content length. */
.ms-cr-detail-row td {
    padding: 0;
    border: none;
}

.ms-cr-detail-inner {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ms-cr-detail-content {
    padding: 32px 12px 32px 12px;
}

.ms-cr-detail-block-full {
    margin: 24px 0;
}

.ms-cr-detail-heading {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cr-gold);
    margin: 0 0 12px 0;
}

.ms-cr-detail-text {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    color: #C9C9C9;
    margin: 0;
    max-width: 760px;
}

.ms-cr-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ms-cr-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-cr-detail-list li {
    position: relative;
    padding-left: 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.6;
    color: #C9C9C9;
    margin-bottom: 10px;
}

.ms-cr-detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--cr-gold);
}

.ms-cr-detail-btn-row {
    margin-top: 28px;
}

.ms-cr-detail-apply-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 13px;
}

/* ---------------------------------------------------------------------
   04. SUBMIT APPLICATION
--------------------------------------------------------------------- */
.ms-cr-form-section {
    background-color: var(--cr-bg);
    padding: var(--cr-pad-desktop) 40px;
}
.ms-cr-form-inner {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 64px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.ms-cr-form-left {
    position: sticky;
    top: 100px;
    padding-bottom: 0;
}
.ms-cr-form-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: #5B5B5B;
    max-width: 340px;
    margin: 0;
}
.ms-cr-form-right .ms-rfq-form-container {
    background: #fcf8f4;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgb(69 64 64 / 10%);
}
.ms-cr-form-right .ms-rfq-section {
    margin-bottom: 8px;
}
.ms-cr-form-right .ms-rfq-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 24px 0;
    border: none;
}
.ms-cr-form-right .ms-rfq-section-header h3 {
    font-size: 18px;
    color: #102A1D;
    margin: 0;
    font-weight: 600;
}
.ms-cr-form-right .ms-rfq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
}
.ms-cr-form-right .ms-full-width {
    grid-column: 1 / -1;
}
.ms-cr-form-right .ms-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #102A1D;
    margin-bottom: 8px;
	
}
.ms-cr-form-right .ms-form-group label span {
    color: #C7A24B;
}
.ms-cr-form-right .ms-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.3s;
}
.ms-cr-form-right .ms-input-icon-wrapper:focus-within {
    border-color: #102A1D;
}
.ms-cr-form-right .ms-input-icon-wrapper svg {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    pointer-events: none;
    flex-shrink: 0;
}
.ms-cr-form-right .ms-input-icon-wrapper input,
.ms-cr-form-right .ms-input-icon-wrapper select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    color: #102A1D;
    font-family: var(--font-sans);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.ms-cr-form-right .ms-input-icon-wrapper input {
    pointer-events: auto;
    cursor: text;
}

.ms-cr-form-right .ms-input-icon-wrapper select {
    pointer-events: none; /* Disables native OS picker while custom dropdown handles UI */
}

/* Custom Styled Select Dropdown (Product Details / Catalogue Style) */
.ms-cr-form-right select option {
    background-color: #FFFFFF !important;
    color: #102A1D !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-family: var(--font-sans) !important;
}

.ms-cr-form-right .ms-select-wrapper {
    position: relative;
    cursor: pointer;
}

.ms-cr-custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(200, 155, 94, 0.35);
    box-shadow: 0 16px 36px rgba(16, 42, 29, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 8px 6px !important;
}

.ms-cr-custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.ms-cr-custom-select-options::-webkit-scrollbar-track {
    background: rgba(200, 155, 94, 0.05);
    border-radius: 8px;
}
.ms-cr-custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(200, 155, 94, 0.4);
    border-radius: 8px;
}
.ms-cr-custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #C89B5E;
}

.ms-cr-form-right .ms-select-wrapper.is-open .ms-cr-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ms-cr-custom-option {
    padding: 10px 16px !important;
    margin: 2px 4px !important;
    border-radius: 8px !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #102A1D;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left !important;
    display: block !important;
    justify-content: flex-start !important;
    width: auto !important;
}

.ms-cr-custom-option::before {
    display: none !important;
    content: none !important;
}

.ms-cr-custom-option:hover {
    background: rgba(200, 155, 94, 0.08) !important;
    color: #C89B5E !important;
}

.ms-cr-custom-option.is-selected {
    background: rgba(200, 155, 94, 0.12) !important;
    color: #C89B5E !important;
    font-weight: 600 !important;
}

.ms-cr-form-right .ms-select-wrapper .icon-right {
    position: absolute;
    right: 16px;
    left: auto;
    color: #9ca3af;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.ms-cr-form-right .ms-select-wrapper.is-open .icon-right {
    transform: rotate(180deg);
    color: #C89B5E;
}
.ms-cr-form-right .ms-input-icon-wrapper input::placeholder {
    color: #9ca3af;
}

.ms-cr-file-input { display: none; }
.ms-cr-upload-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    height: 100px !important;
    min-height: 100px !important;
    border: 1.5px dashed rgba(206, 152, 71, 0.45) !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    color: #ce9847 !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, background-color 0.25s ease !important;
}
.ms-cr-upload-area:hover,
.ms-cr-upload-area.is-focused {
    border-color: #ce9847 !important;
    background-color: rgba(206, 152, 71, 0.04) !important;
}
.ms-cr-upload-area svg {
    flex-shrink: 0 !important;
    color: #ce9847 !important;
    margin: 0 !important;
}
.ms-cr-upload-text {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ce9847 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.ms-cr-submit-btn {
    width: 100%;
    background: #ce9847;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    transition: background 0.3s, transform 0.3s;
    font-family: var(--font-sans);
}
.ms-cr-submit-btn:hover {
    background: #b5853e;
    transform: translateY(-2px);
}
.ms-cr-submit-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}
.ms-cr-form-right .ms-rfq-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #C7A24B;
    flex-shrink: 0;
}
.ms-cr-form-status {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ms-cr-form-status.is-success {
    background-color: #E8F8F0;
    border: 1px solid #A3E9C9;
    color: #0D6E46;
    padding: 14px 20px;
    display: block;
}

.ms-cr-form-status.is-error {
    background-color: #FDE8E8;
    border: 1px solid #F8B4B4;
    color: #9B1C1C;
    padding: 14px 20px;
    display: block;
}

/* ---------------------------------------------------------------------
   05. BOTTOM CTA
--------------------------------------------------------------------- */
.ms-cr-cta {
    position: relative;
    background-color: #102A1D;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 40px;
}
.ms-cr-cta-network {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 50%, rgba(200,155,94,0.25), transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.ms-cr-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.ms-cr-cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
    color: #FFFFFF !important;
    margin: 0 0 20px 0 !important;
}
.ms-cr-cta-desc {
    font-family: var(--font-sans);
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #CCCCCC !important;
    max-width: 540px;
    margin: 0 0 28px 0 !important;
}

/* ---------------------------------------------------------------------
   ANIMATIONS (subtle)
--------------------------------------------------------------------- */
.ms-cr-fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.ms-cr-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .ms-cr-why-inner,
    .ms-cr-form-inner { grid-template-columns: 1fr; }
    .ms-cr-why-right { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .ms-cr-feature-block { border-left: none; }
    .ms-cr-form-left { padding-bottom: 0; }

    .ms-cr-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {

    /* ---- HERO (fixed: mirrors Global Network's proven mobile mechanism —
       image becomes a real block element via position:relative so the
       card is naturally pushed below it in document flow, then pulled
       up by a small !important negative margin. Every property is
       !important so nothing else in the theme/Elementor cascade can
       silently override it and collapse the card back to the top,
       which is what caused it to overlap the header logo before. ---- */

    .ms-cr-hero {
        position: relative !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        background-color: var(--cr-bg) !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .ms-cr-hero-bg-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 52vh !important;
        min-height: 380px !important;
        max-height: 488px !important;
        z-index: 1;
        overflow: hidden !important;
        top: auto !important;
        left: auto !important;
        inset: auto !important;
    }

    .ms-cr-hero-bg-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 25% !important;
        display: block !important;
    }

    .ms-cr-hero-fade {
        display: none !important;
    }

    .ms-cr-hero-bottom-gradient {
        display: block !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 120px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%) !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    .ms-cr-hero-inner {
        position: relative !important;
        z-index: 10 !important;
        margin-top: -70px !important;
        margin-bottom: 50px !important;
        padding: 0 1.25rem !important;
        width: 100% !important;
        min-height: auto !important;
        display: block !important;
        max-width: 100% !important;
    }

    .ms-cr-hero-left {
        max-width: 100% !important;
        width: 100% !important;
        background-color: #FFFFFF !important;
        border-radius: 24px !important;
        border: 1px solid rgba(229, 226, 220, 0.9) !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
        padding: 38px 24px 34px 24px !important;
    }

    .ms-cr-hero-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        letter-spacing: -0.5px !important;
        margin: 0 0 1rem 0 !important;
    }

    .ms-cr-hero-desc {
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #555555 !important;
        margin-bottom: 20px !important;
    }

    .ms-cr-gold-divider {
        margin: 16px 0 20px 0 !important;
    }

    /* ---- WHY / POSITIONS / FORM / CTA (unchanged) ---- */

    .ms-cr-why { padding: 60px 24px; }
    .ms-cr-why-inner { grid-template-columns: 1fr; gap: 36px; }
    .ms-cr-why-desc { max-width: 100%; }
    .ms-cr-why-right { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ms-cr-feature-block {
        border-left: none;
        padding: 24px 20px;
        background-color: #F8F6F2;
        border-radius: 16px;
        border: 1px solid rgba(229, 226, 220, 0.9);
    }

    .ms-cr-positions { padding: 64px 24px; }
    .ms-cr-section-title { font-size: 32px !important; line-height: 1.3 !important; }
    .ms-cr-table-wrapper { overflow-x: auto; }
    .ms-cr-table { min-width: 640px; }

    .ms-cr-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .ms-cr-detail-content { padding: 8px 4px 28px 4px; }

    .ms-cr-form-section { padding: 60px 24px; }
    .ms-cr-form-inner { grid-template-columns: 1fr; gap: 36px; }
    .ms-cr-form-left { position: static; }
    .ms-cr-form-desc { max-width: 100%; }
    .ms-cr-form-right .ms-rfq-form-container { padding: 32px 24px; }

    .ms-cr-cta { padding: 60px 24px; }
    .ms-cr-cta-title { font-size: 36px !important; }
}

@media (max-width: 640px) {

    /* ---- HERO ---- */
    .ms-cr-hero-bg-wrapper { height: 50vh !important; min-height: 360px !important; }
	.ms-cr-hero-bg-img { object-position: right 50% !important; }
    .ms-cr-hero-inner { margin-top: -65px !important; margin-bottom: 40px !important; padding: 0 1rem !important; }
    .ms-cr-hero-left { padding: 32px 20px 28px 20px !important; border-radius: 20px !important; }
    .ms-cr-hero-title { font-size: 35px !important; }

    /* ---- WHY / POSITIONS / FORM / CTA (unchanged) ---- */
    .ms-cr-why { padding: 60px 16px; }
    .ms-cr-why-right { grid-template-columns: 1fr; gap: 14px; }
    .ms-cr-feature-block { padding: 20px 18px; border-radius: 14px; }
    .ms-cr-feature-number { font-size: 40px; margin-bottom: 10px; }

    .ms-cr-positions { padding: 60px 16px; }
    .ms-cr-section-title { font-size: 26px !important; }

    .ms-cr-position-cell { gap: 10px; }
    .ms-cr-row-toggle { width: 24px; height: 24px; }
    .ms-cr-detail-content { padding: 8px 0 24px 0; }

    .ms-cr-form-section { padding: 60px 16px; }
    .ms-cr-form-right .ms-rfq-form-container { padding: 22px 16px; border-radius: 18px; }
    .ms-cr-form-right .ms-rfq-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .ms-cr-form-right .ms-input-icon-wrapper input,
    .ms-cr-form-right .ms-input-icon-wrapper select {
        padding: 12px 14px 12px 42px;
        font-size: 13.5px;
    }
    .ms-cr-submit-btn { padding: 14px; font-size: 14px; margin-top: 24px; }

    .ms-cr-cta { padding: 60px 18px; }
    .ms-cr-cta-title { font-size: 28px !important; }
}