.ms-cp-hero,
.ms-cp-info-strip,
.ms-cp-offices,
.ms-cp-form-section {
    box-sizing: border-box;
}
.ms-cp-hero *,
.ms-cp-info-strip *,
.ms-cp-offices *,
.ms-cp-form-section * {
    box-sizing: border-box;
}

/* Shared container */
.ms-cp-hero-inner,
.ms-cp-info-inner,
.ms-cp-offices-inner,
.ms-cp-form-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* ---------------------------------------------------------------------
   01. HERO
--------------------------------------------------------------------- */
.ms-cp-hero {
    position: relative;
    width: 100%;
    min-height: 680px;
    overflow: hidden;
    background-color: #F7F4EF;
    display: flex;
    align-items: center;
}
.ms-cp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ms-cp-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}
.ms-cp-hero-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        #F7F4EF 0%,
        #F7F4EF 36%,
        rgba(247,244,239,0.92) 44%,
        rgba(247,244,239,0.65) 52%,
        rgba(247,244,239,0.25) 62%,
        rgba(247,244,239,0) 80%
    );
}
/* Bottom gradient — hidden on desktop, only used on mobile/tablet where the
   layout stacks vertically (see media queries below). Declared here so the
   element always exists in the CSSOM and toggling display in the media
   query is reliable. */
.ms-cp-hero-bottom-gradient {
    display: none;
}
.ms-cp-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}
/* Hero Initial Hidden State for GSAP Cinematic Animation (Global Network Style) */
.ms-cp-hero-bg-img,
.ms-cp-hero-left,
.ms-cp-hero-title,
.ms-cp-hero-desc,
.ms-cp-btn-gold {
    opacity: 0;
}
.ms-cp-hero-left {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-cp-hero-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C79A5B;
    margin-bottom: 20px;
}
.ms-cp-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: #202020;
    margin: 0 0 20px 0;
}
.ms-cp-hero-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: #5B5B5B;
    max-width: 420px;
    margin-bottom: 32px;
}

/* Gold pill buttons */
.ms-cp-btn-gold,
.ms-cp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 28px;
    background-color: #C79A5B;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.ms-cp-btn-gold:hover,
.ms-cp-submit-btn:hover {
    background-color: #B58946;
    transform: translateY(-1px);
    color: #ffffff;
}
.ms-cp-btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: #ce9847;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}
.ms-cp-btn-outline-gold:hover {
    background: #b5853e;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ---------------------------------------------------------------------
   02. CONTACT INFO STRIP
--------------------------------------------------------------------- */
.ms-cp-info-strip {
    background-color: #ffffff;
    padding: 100px 40px;
}
.ms-cp-info-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.ms-cp-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 32px;
    border-left: 1px solid #E8E2D8;
}
.ms-cp-info-item:first-child {
    border-left: none;
    padding-left: 0;
}
.ms-cp-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #C79A5B;
    color: #C79A5B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.ms-cp-info-heading {
    display: block;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #202020;
    margin-bottom: 5px;
}
.ms-cp-info-text {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.3;
    color: #5B5B5B;
    text-decoration: none;
    display: block;
}
a.ms-cp-info-text:hover {
    color: #C79A5B;
}

/* ---------------------------------------------------------------------
   03. GLOBAL OFFICES (dark)
--------------------------------------------------------------------- */
.ms-cp-offices {
    background-color: #1B1B1B;
    padding: 180px 40px;
}
.ms-cp-offices-inner {
    display: grid;
    grid-template-columns: 28% 72%;
    gap: 48px;
    align-items: start;
}
.ms-cp-offices-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C79A5B;
    margin-bottom: 18px;
}
.ms-cp-offices-title {
    font-family: var(--font-display);
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 20px 0;
}
.ms-cp-offices-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: #B8B8B8;
    margin-bottom: 32px;
    max-width: 320px;
}
.ms-cp-offices-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ms-cp-office-card {
    background-color: #232323;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ms-cp-office-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199, 154, 91, 0.4);
}
.ms-cp-office-img-wrapper {
    width: 100%;
    height: 180px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
}
.ms-cp-office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ms-cp-office-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.ms-cp-office-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C79A5B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}
.ms-cp-office-title {
    font-family: var(--font-sans);
    font-size: 15px !important;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}
.ms-cp-office-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-cp-office-sublabel {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C79A5B;
}
.ms-cp-office-address {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: #D1D1D1;
    margin: 0;
}
.ms-cp-office-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: auto;
}
.ms-cp-office-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #A8A8A8;
    margin: 0;
}
.ms-cp-office-meta span {
    color: #C79A5B;
    font-weight: 600;
}
.ms-cp-office-meta a {
    color: #A8A8A8;
    text-decoration: none;
    transition: color 0.25s ease;
}
.ms-cp-office-meta a:hover {
    color: #C79A5B;
}

/* ---------------------------------------------------------------------
   04. CONTACT FORM
--------------------------------------------------------------------- */
.ms-cp-form-section {
    background-color: #F7F4EF;
    padding: 180px 40px;
}
.ms-cp-form-inner {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 64px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.ms-cp-form-left {
    position: sticky;
    top: 100px;
    padding-top: 0;
}
.ms-cp-form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C79A5B;
    margin-bottom: 18px;
}
.ms-cp-form-title {
    font-family: var(--font-display);
    font-size: 3.5rem !important;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    color: #202020;
    margin: 0 0 20px 0;
}
.ms-cp-form-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: #5B5B5B;
    max-width: 340px;
}
.ms-cp-form-right .ms-rfq-form-container {
    background: #fcf8f4;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgb(69 64 64 / 10%);
}
.ms-cp-form-right .ms-rfq-section {
    margin-bottom: 8px;
}
.ms-cp-form-right .ms-rfq-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 24px 0;
    border: none;
}
.ms-cp-form-right .ms-rfq-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7A24B;
}
.ms-cp-form-right .ms-rfq-section-header h3 {
    font-size: 18px;
    color: #102A1D;
    margin: 0;
    font-weight: 800;
}
.ms-cp-form-right .ms-rfq-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
}
.ms-cp-form-right .ms-full-width {
    grid-column: 1 / -1;
}
.ms-cp-form-right .ms-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #102A1D;
    margin-bottom: 8px;
}
.ms-cp-form-right .ms-form-group label span {
    color: #C7A24B;
}
.ms-cp-form-right .ms-input-icon-wrapper,
.ms-cp-form-right .ms-textarea-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.3s;
}
.ms-cp-form-right .ms-input-icon-wrapper:focus-within,
.ms-cp-form-right .ms-textarea-wrapper:focus-within {
    border-color: #102A1D;
}
.ms-cp-form-right .ms-input-icon-wrapper svg {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    pointer-events: none;
    flex-shrink: 0;
}
.ms-cp-form-right .ms-input-icon-wrapper input,
.ms-cp-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;
}

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

.ms-cp-form-right .ms-input-icon-wrapper select {
    pointer-events: none; /* Prevents native OS picker from opening alongside custom dropdown */
    cursor: pointer;
}

/* Custom Styled Select Dropdown for Contact Page (Product Details / Catalogue Style) */
.ms-cp-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-cp-form-right .ms-select-wrapper {
    position: relative;
    cursor: pointer;
}

.ms-cp-custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(199, 154, 91, 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-cp-custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.ms-cp-custom-select-options::-webkit-scrollbar-track {
    background: rgba(199, 154, 91, 0.05);
    border-radius: 8px;
}
.ms-cp-custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(199, 154, 91, 0.4);
    border-radius: 8px;
}
.ms-cp-custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #C79A5B;
}

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

.ms-cp-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-cp-custom-option::before {
    display: none !important;
    content: none !important;
}

.ms-cp-custom-option:hover {
    background: rgba(199, 154, 91, 0.08) !important;
    color: #C79A5B !important;
}

.ms-cp-custom-option.is-selected {
    background: rgba(199, 154, 91, 0.12) !important;
    color: #C79A5B !important;
    font-weight: 600 !important;
}

.ms-cp-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-cp-form-right .ms-select-wrapper.is-open .icon-right {
    transform: rotate(180deg);
    color: #C79A5B;
}
.ms-cp-form-right .ms-textarea-wrapper {
    align-items: flex-start;
}
.ms-cp-form-right .ms-textarea-wrapper .textarea-icon {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #9ca3af;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.ms-cp-form-right .ms-textarea-wrapper textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 16px 14px 48px;
    font-size: 14px;
    color: #102A1D;
    font-family: var(--font-sans);
    outline: none;
    resize: vertical;
    min-height: 140px;
}
.ms-cp-form-right .ms-select-wrapper .icon-right {
    position: absolute;
    right: 16px;
    left: auto;
    color: #9ca3af;
}
.ms-cp-form-right .ms-input-icon-wrapper input::placeholder,
.ms-cp-form-right .ms-textarea-wrapper textarea::placeholder {
    color: #9ca3af;
}
.ms-cp-submit-btn,
.ms-cp-form-right .ms-rfq-submit-btn {
    width: 100%;
    background: #ce9847;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    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-cp-submit-btn:hover,
.ms-cp-form-right .ms-rfq-submit-btn:hover {
    background: #b5853e;
    transform: translateY(-2px);
}
.ms-cp-submit-btn svg,
.ms-cp-form-right .ms-rfq-submit-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}
.ms-cp-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-cp-form-status.is-success {
    background-color: #E8F8F0;
    border: 1px solid #A3E9C9;
    color: #0D6E46;
    padding: 14px 20px;
    display: block;
}

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

.ms-form-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #888888;
    margin-top: 16px;
    text-align: center;
}
.ms-form-security-note svg {
    color: #ce9847;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
@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-cp-hero {
        position: relative !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        background-color: #F7F4EF !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    .ms-cp-hero-bg {
        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-cp-hero-bg-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 25% !important;
        display: block !important;
    }

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

    .ms-cp-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-cp-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-cp-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-cp-hero-title {
        font-size: 3.5rem !important;
        line-height: 1.3 !important;
        letter-spacing: -0.5px !important;
        margin: 0 0 20px 0 !important;
    }

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

    /* ---- INFO STRIP / OFFICES / FORM (unchanged) ---- */

    .ms-cp-info-strip { padding: 60px 24px; }
    .ms-cp-info-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .ms-cp-info-item:nth-child(3) { border-left: none; padding-left: 0; }

    .ms-cp-offices { padding: 60px 24px; }
    .ms-cp-offices-inner { grid-template-columns: 1fr; gap: 40px; }
    .ms-cp-offices-right { grid-template-columns: repeat(2, 1fr); }

    .ms-cp-form-section { padding: 60px 24px; }
    .ms-cp-form-inner { grid-template-columns: 1fr; gap: 40px; }
    .ms-cp-form-left { position: static; }
    .ms-cp-form-title { font-size: 35px !important; line-height: 1.3 !important; }
}

@media (max-width: 640px) {

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

    /* ---- INFO STRIP / OFFICES / FORM (unchanged) ---- */
    .ms-cp-info-inner { grid-template-columns: 1fr; gap: 20px; }
    .ms-cp-info-item { border-left: none; padding-left: 0; border-top: 1px solid #E8E2D8; padding-top: 20px; }
    .ms-cp-info-item:first-child { border-top: none; padding-top: 0; }
    .ms-cp-info-text { white-space: nowrap; }

    .ms-cp-offices-right { grid-template-columns: 1fr; }
    .ms-cp-form-right .ms-rfq-form-grid { grid-template-columns: 1fr; }
    .ms-cp-form-right .ms-rfq-form-container { padding: 24px 18px; }
    .ms-cp-form-title { font-size: 35px !important; }
	.ms-cp-offices-title { font-size: 35px !important; }
	.ms-cp-info-text { white-space: normal !important; word-wrap: break-word !important; }
}