/* ==========================================================================
   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: 120px;
    --cr-pad-tablet: 80px;
    --cr-pad-mobile: 60px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.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-hero-inner,
.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;
}
.ms-cr-eyebrow-dark { color: var(--cr-gold); }

.ms-cr-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem !important;
    font-weight: 600;
    line-height: 1.12;
    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: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    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: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    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: 680px;
    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;
}
.ms-cr-hero-inner {
    position: relative;
    z-index: 3;
    max-width: var(--cr-content-width);
    margin: 0 auto;
    width: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}
.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: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--cr-text);
    margin: 0;
}
.ms-cr-hero-desc {
    font-family: 'Inter', sans-serif;
    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: 17px !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:first-child {
    border-left: none;
    padding-left: 24px;
}
.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: 'Cormorant Garamond', serif;
    font-size: 46px;
    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: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cr-text);
    margin: 0 0 10px 0;
}
.ms-cr-feature-desc {
    font-family: var(--font-sans);
    font-size: 17px !important;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* ---------------------------------------------------------------------
   03. OPEN POSITIONS (dark)
--------------------------------------------------------------------- */
.ms-cr-positions {
    background-color: var(--cr-dark);
    padding: 90px 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: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    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: 'Inter', sans-serif;
    font-size: 15px;
    color: #E5E5E5;
    padding: 20px 12px;
}
.ms-cr-td-apply { text-align: right; }
.ms-cr-apply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--cr-gold);
    text-decoration: none;
}
.ms-cr-positions-btn-row {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

/* ---------------------------------------------------------------------
   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: 'Inter', sans-serif;
    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: 'Inter', sans-serif;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.ms-cr-form-right .ms-select-wrapper .icon-right {
    position: absolute;
    right: 16px;
    left: auto;
    color: #9ca3af;
}
.ms-cr-form-right .ms-input-icon-wrapper input::placeholder {
    color: #9ca3af;
}

.ms-cr-file-input { display: none; }
.ms-cr-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 110px;
    border: 1.5px dashed #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;
    color: #9ca3af;
    cursor: pointer;
    text-align: center;
    padding: 12px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.ms-cr-upload-area:hover,
.ms-cr-upload-area.is-focused {
    border-color: #102A1D;
    color: #102A1D;
}
.ms-cr-upload-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #102A1D;
}
.ms-cr-upload-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #9ca3af;
}

.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: 'Inter', sans-serif;
}
.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: 'Inter', sans-serif;
    font-size: 13px;
}
.ms-cr-form-status.is-success { color: #2E7D32; }
.ms-cr-form-status.is-error { color: #C0392B; }

/* ---------------------------------------------------------------------
   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: 'Cormorant Garamond', serif;
    font-size: 48px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
    color: #FFFFFF !important;
    margin: 0 0 16px 0 !important;
}
.ms-cr-cta-desc {
    font-family: 'Inter', sans-serif;
    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; }
}

@media (max-width: 1024px) {
    .ms-cr-hero {
        position: relative;
        width: 100%;
        min-height: auto;
        background-color: var(--cr-bg);
        padding-top: 260px;
        padding-bottom: 40px;
        overflow: hidden;
        display: block;
    }
    .ms-cr-hero-bg-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 480px;
        z-index: 1;
    }
    .ms-cr-hero-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .ms-cr-hero-fade {
        display: none;
    }
    .ms-cr-hero-inner {
        position: relative;
        z-index: 3;
        width: 100%;
        margin: 0 auto;
        padding: 0 1.25rem;
        min-height: auto;
        display: block;
    }
    .ms-cr-hero-left {
        background-color: #FFFFFF;
        border-radius: 24px;
        border: 1px solid rgba(229, 226, 220, 0.9);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
        padding: 34px 24px 30px 24px;
        max-width: 100%;
        width: 100%;
    }
    .ms-cr-hero-title {
        font-size: 32px !important;
        line-height: 1.12 !important;
        margin: 0 0 14px 0 !important;
    }
    .ms-cr-hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    .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-feature-block:first-child { padding-left: 20px; }

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

    .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) {
    .ms-cr-hero { padding-top: 20px; padding-bottom: 30px; }
    .ms-cr-hero-bg-wrapper { height: 400px; }
    .ms-cr-hero-inner { padding: 0 1rem; }
    .ms-cr-hero-left { padding: 28px 20px 24px 20px; border-radius: 20px; }
    .ms-cr-hero-title { font-size: 28px !important; }

    .ms-cr-why { padding: 44px 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: 48px 16px; }
    .ms-cr-section-title { font-size: 26px !important; }

    .ms-cr-form-section { padding: 44px 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: 48px 18px; }
    .ms-cr-cta-title { font-size: 28px !important; }
}
