/* HELP CENTRE & SUBMIT ENQUIRY button base transition */
.contact-help-btn,
.contact-submit-btn,
.kp-contact-hover-btn {
    transition: background-color 0.25s ease,
}

/* HELP CENTRE & SUBMIT ENQUIRY button hover → dark navy */
.contact-help-btn:hover,
.contact-submit-btn:hover,
.kp-contact-hover-btn:hover {
    background-color: #173158 !important;
    color: #ffffff !important;
    transition: background-color 0.25s ease,
        /* box-shadow: 0 6px 20px rgba(23, 49, 88, 0.3); */
}

.contact-help-btn:hover i,
.contact-submit-btn:hover i {
    color: #E83161 !important;
}

.kp-contact-hover-btn:hover svg path {
    fill: #E83161 !important;
    transition: fill 0.25s ease;
}

.kp-contact-hover-btn:hover span {
    color: #ffffff !important;
}

/* Sticky breadcrumb */
.contact-breadcrumb-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--nav-mega-top, 140px);
    z-index: 901;
    background: #ffffff;
    padding: 20px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}

/* Contact With Us button hover */
.contact-cta-btn {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent !important;
}

.contact-cta-btn:hover {
    background-color: #ffffff !important;
    color: #173158 !important;
    /* border: 2px solid #2ECC71 !important;
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.25) !important; */
}

.contact-cta-btn:hover svg path {
    fill: #E83161 !important;
    transition: fill 0.25s ease;
}

.contact-cta-btn:hover span,
.contact-cta-btn:hover * {
    color: #173158 !important;
}

.contact-btn-icon-left {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 2.1rem;
    padding-right: 1rem;
}

.contact-btn-icon-left i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.contact-btn-icon-left .contact-btn-text {
    width: 100%;
    text-align: center;
}

/* Decorative banner SVG (matches Offers page) */
.hero-section.hero-split .hero-split-left .contact-banner-shape,
.kp-desktop-contact-hero .contact-banner-shape {
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}

.hero-section.hero-split .hero-split-left .contact-banner-shape svg,
.kp-desktop-contact-hero .contact-banner-shape svg {
    display: block;
    width: 401.188px;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* Pink dropdown arrow for all selects on contact page */
.contact-select,
.contact-section .form-select,
.kp-mobile-contact-main .form-select,
.kp-desktop-contact-main .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23E83161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

@media (max-width: 575.98px) {
    .contact-mobile-left .contact-info-title {
        font-size: 1.4rem;
    }

    .contact-mobile-left .contact-info-label {
        font-size: 0.72rem;
    }

    .contact-mobile-left .contact-info-value {
        font-size: 15px;
    }

    .contact-mobile-left,
    .contact-mobile-left .contact-info-highlight {
        font-size: 18px;
        line-height: 1.5;
    }

    .contact-mobile-left .contact-help-btn {
        font-size: 0.78rem;
    }
}

/* Laptop Screen Overrides (992px to 1639.98px) */
@media (min-width: 992px) and (max-width: 1639.98px) {

    /* Breadcrumb Container fluid adjustment */
    .kp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    /* 1. Show Desktop layout, Hide Tablet layout */
    .hero-section.hero-split.d-md-block.d-xl-none {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
    }

    .contact-section.contact-page-section.d-md-block.d-xl-none {
        display: none !important;
    }

    .contact-map-section.d-md-block.d-xl-none {
        display: none !important;
    }

    .kp-desktop-contact-hero.d-none.d-xl-flex {
        display: flex !important;
    }

    .kp-desktop-contact-main.d-none.d-xl-flex {
        display: flex !important;
    }

    section.d-none.d-xl-flex.justify-content-center.align-items-center.bg-white {
        display: flex !important;
    }

    /* 2. Hero Banner — desktop proportions (1230 + 10 + 400) */
    .kp-desktop-contact-hero {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-bottom: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .kp-desktop-contact-hero>div {
        width: 100% !important;
        max-width: 1640px !important;
        margin: 0 auto !important;
        gap: 10px !important;
    }

    .kp-desktop-contact-hero>div>div:first-child {
        width: calc(75% - 5px) !important;
        max-width: 1230px !important;
        height: 380px !important;
        min-height: 380px !important;
        padding: clamp(36px, 4vw, 52px) clamp(40px, 4.5vw, 66px) !important;
        overflow: hidden !important;
    }

    .kp-desktop-contact-hero>div>div:first-child>div:first-child {
        padding-left: 0 !important;
        z-index: 2 !important;
        position: relative !important;
        max-width: calc(100% - min(34%, 401.188px) - 16px) !important;
    }

    .kp-desktop-contact-hero>div>div:first-child h1 {
        font-size: clamp(30px, 3vw, 48px) !important;
        margin-bottom: clamp(12px, 1.5vw, 24px) !important;
        line-height: 1.12 !important;
    }

    .kp-desktop-contact-hero>div>div:first-child p {
        font-size: clamp(15px, 1.3vw, 20px) !important;
        max-width: min(650px, calc(100% - min(34%, 401.188px) - 20px)) !important;
        margin-bottom: clamp(1rem, 2vw, 2rem) !important;
        line-height: 1.5 !important;
    }

    .kp-desktop-contact-hero>div>div:first-child a {
        width: clamp(200px, 16vw, 260px) !important;
        height: clamp(48px, 4vw, 60px) !important;
        padding: 10px 10px 10px 20px !important;
    }

    .kp-desktop-contact-hero>div>div:first-child a span {
        font-size: clamp(14px, 1.1vw, 16px) !important;
    }

    .kp-desktop-contact-hero .contact-banner-shape {
        top: 0 !important;
        right: -1px !important;
        bottom: -1px !important;
        height: 100% !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        opacity: 1 !important;
    }

    .kp-desktop-contact-hero .contact-banner-shape svg {
        width: auto !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: min(34%, 401.188px) !important;
        max-height: 100% !important;
    }

    .kp-desktop-contact-hero>div>div:nth-child(2) {
        width: 350px !important;
        max-width: 350px !important;
        height: 380px !important;
        min-height: 380px !important;
        flex: 0 0 auto !important;
    }

    .kp-desktop-contact-hero>div>div:nth-child(2) img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* 3. Main Info + Form — desktop 800x800 blocks */
    .kp-desktop-contact-main {
        padding-left: 40px !important;
        padding-right: 40px !important;
        margin-bottom: 50px !important;
    }

    .kp-desktop-contact-main>div {
        width: 100% !important;
        max-width: 1640px !important;
        margin: clamp(40px, 5vw, 70px) auto 0 !important;
        min-height: 0 !important;
        gap: 40px !important;
        align-items: stretch !important;
    }

    .kp-desktop-contact-main>div>div:first-child,
    .kp-desktop-contact-main>div>div:nth-child(2) {
        width: calc(50% - 20px) !important;
        max-width: 800px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: clamp(560px, 48vw, 800px) !important;
        overflow: visible !important;
    }

    .kp-desktop-contact-main>div>div:first-child {
        padding: clamp(48px, 7vw, 100px) !important;
    }

    .kp-desktop-contact-main>div>div:first-child h2 {
        font-size: clamp(32px, 3.2vw, 48px) !important;
        margin-bottom: clamp(1.5rem, 2.5vw, 3rem) !important;
    }

    .kp-desktop-contact-main>div>div:first-child p {
        font-size: clamp(15px, 1.2vw, 18px) !important;
        line-height: 1.5 !important;
    }

    .kp-desktop-contact-main>div>div:first-child a[href^="tel:"],
    .kp-desktop-contact-main>div>div:first-child a[href^="mailto:"] {
        font-size: clamp(28px, 3.2vw, 48px) !important;
        line-height: 1.15 !important;
        word-break: break-word !important;
    }

    .kp-desktop-contact-main>div>div:first-child a:not([href^="tel:"]):not([href^="mailto:"]) {
        width: clamp(190px, 14vw, 210px) !important;
        height: clamp(48px, 4vw, 60px) !important;
    }

    .kp-desktop-contact-main>div>div:first-child a:not([href^="tel:"]):not([href^="mailto:"]) span {
        font-size: 16px !important;
    }

    .kp-desktop-contact-main>div>div:nth-child(2) {
        padding: clamp(40px, 40px, 60px) clamp(40px, 40px, 70px) !important;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1) !important;
    }

    .kp-desktop-contact-main>div>div:nth-child(2) h2 {
        font-size: clamp(24px, 2.2vw, 30px) !important;
        margin-bottom: 12px !important;
        color: #173158 !important;
    }

    .kp-desktop-contact-main>div>div:nth-child(2) p {
        font-size: clamp(14px, 1.1vw, 16px) !important;
        max-width: 100% !important;
        margin-bottom: clamp(16px, 2vw, 24px) !important;
        line-height: 1.5 !important;
        color: #183158 !important;
    }

    .kp-desktop-contact-main .contact-form {
        width: 100% !important;
        max-width: 660px !important;
    }

    .kp-desktop-contact-main .contact-form .mb-4 {
        margin-bottom: clamp(12px, 1.4vw, 16px) !important;
    }

    .kp-desktop-contact-main .contact-form input,
    .kp-desktop-contact-main .contact-form select {
        height: clamp(44px, 3.5vw, 50px) !important;
        font-size: 14px !important;
    }

    .kp-desktop-contact-main .contact-form textarea {
        height: clamp(100px, 12vw, 151px) !important;
        min-height: 100px !important;
        font-size: 14px !important;
        resize: none !important;
    }

    .kp-desktop-contact-main .contact-form .d-flex.justify-content-between {
        gap: clamp(12px, 1.5vw, 20px) !important;
        flex-wrap: nowrap !important;
    }

    .kp-desktop-contact-main .contact-form .d-flex.justify-content-between>div {
        width: calc(50% - 10px) !important;
        max-width: 320px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .kp-desktop-contact-main .contact-form .d-flex.justify-content-between input,
    .kp-desktop-contact-main .contact-form .d-flex.justify-content-between select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .kp-desktop-contact-main .contact-form .d-flex.justify-content-between label {
        font-size: clamp(14px, 1.1vw, 16px) !important;
    }

    .kp-desktop-contact-main .contact-form button[type="submit"] {
        height: clamp(44px, 3.5vw, 50px) !important;
    }

    .kp-desktop-contact-main .contact-form button[type="submit"] span {
        font-size: 16px !important;
    }

    /* 4. Map — desktop 1640x800 feel (exclude hero — same utility classes) */
    section.d-none.d-xl-flex.justify-content-center.align-items-center.bg-white:not(.kp-desktop-contact-hero) {
        padding-left: 40px !important;
        padding-right: 40px !important;
        padding-bottom: clamp(60px, 8vw, 130px) !important;
    }

    section.d-none.d-xl-flex.justify-content-center.align-items-center.bg-white:not(.kp-desktop-contact-hero)>div {
        width: 100% !important;
        max-width: 1640px !important;
        height: clamp(380px, 42vw, 800px) !important;
        min-height: 380px !important;
        margin: 0 auto !important;
    }

    section.d-none.d-xl-flex.justify-content-center.align-items-center.bg-white:not(.kp-desktop-contact-hero)>div iframe {
        width: 100% !important;
        height: 100% !important;
    }

    .contact-breadcrumb-sticky {
        padding: 12px 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Tablet Screen Overrides (768px to 991.98px)
   At tablet, Bootstrap shows the `d-md-block d-xl-none` variant of the
   contact page (banner, main contact section, and map) and hides the
   PC `d-xl-flex` variant. The global .kp-container is 1640px with no
   responsive fallback in this range, so content overflows. This block
   makes the container fluid and adjusts the tablet/laptop variant
   typography for tablet widths.

   Mobile <768 keeps the existing `(max-width: 575.98px)` rules and the
   separate `.kp-mobile-banner` / `.kp-mobile-contact-main` markup. The
   laptop block (992–1639.98) above keeps its own approach (it forces
   the PC variant visible). PC ≥1640 is not touched.
   ═══════════════════════════════════════════════════════════════════ */
/* ───────── Shift Breakpoint for Contact Page (apply mobile until 712px, then tablet) ───────── */
@media (min-width: 712px) and (max-width: 767.98px) {

    /* Hide Mobile Layout */
    .kp-mobile-banner,
    .kp-mobile-contact-main,
    .kp-mobile-contact-map {
        display: none !important;
    }

    /* Show Tablet Layout */
    .hero-section.hero-split,
    .contact-section.contact-page-section,
    .contact-map-section {
        display: block !important;
    }
}

@media (min-width: 712px) and (max-width: 991.98px) {

    /* Containers: make fluid for the tablet range. */
    .kp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .breadcrumb-nav {
        top: 85px !important;
    }

    /* Tablet/laptop banner variant — uses `.hero-section.hero-split`
       (shown via `d-md-block d-xl-none`). Force image col visible at tablet
       and shrink both columns into a fluid flex split. */
    .hero-section.hero-split .hero-split-wrap {
        max-width: 100% !important;
        height: 320px !important;
        gap: 10px !important;
        --bs-gutter-x: 0 !important;
    }

    .hero-section.hero-split .hero-split-wrap>.col-lg-8,
    .hero-section.hero-split .hero-split-wrap>.col-lg-4 {
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
    }

    /* Override the markup `d-none d-lg-block` so the image col becomes
       visible inside the tablet range. */
    .hero-section.hero-split .hero-split-wrap>.col-lg-4 {
        display: block !important;
    }

    .hero-section.hero-split .hero-split-left,
    .hero-section.hero-split .hero-split-right {
        height: 320px !important;
        min-height: 0 !important;
        --parallax-y: 0px !important;
    }

    .hero-section.hero-split .hero-split-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        padding: 28px 28px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-section.hero-split .hero-split-left .hero-text {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        flex-grow: 1 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .hero-section.hero-split .hero-split-left h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin-bottom: 12px !important;
    }

    .hero-section.hero-split .hero-split-left .hero-desc {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-section.hero-split .hero-split-left .hero-sub-desc {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 0 !important;
    }

    .hero-section.hero-split .hero-cta-row {
        gap: 14px !important;
        margin-top: auto !important;
    }

    .hero-section.hero-split .hero-split-left .kp-btn-pink {
        width: 200px !important;
        height: 44px !important;
        font-size: 13px !important;
    }

    /* Decorative SVG inside the gradient card — clamp so it
       doesn't dominate the narrower tablet card. */
    .hero-section.hero-split .hero-split-left .contact-banner-shape {
        right: -1px !important;
        bottom: -1px !important;
        top: auto !important;
    }

    .hero-section.hero-split .hero-split-left .contact-banner-shape svg {
        width: auto !important;
        max-width: 220px !important;
        max-height: 220px !important;
        opacity: 0.97 !important;
        display: none !important;
    }

    /* Right image col content */
    .hero-section.hero-split .hero-side-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .hero-section.hero-split .hero-arrow-chip-image {
        top: 12px !important;
        left: 12px !important;
    }

    .hero-section.hero-split .hero-arrow-chip-image svg {
        width: 38px !important;
        height: 38px !important;
    }

    /* Main contact section (tablet/laptop variant — info card + form
       card stack via Bootstrap `col-12 col-lg-6`). At md they stack;
       at lg+ they are side-by-side. Polish padding + typography for
       the tablet sub-range. */
    .contact-section.contact-page-section {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .contact-section.contact-page-section .contact-page-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .contact-section.contact-page-section .contact-info-card .card-body {
        padding: 1.75rem 1.5rem !important;
    }

    .contact-section.contact-page-section .contact-info-title {
        font-size: 26px !important;
        margin-bottom: 1rem !important;
    }

    .contact-section.contact-page-section .contact-info-label {
        font-size: 11px !important;
    }

    .contact-section.contact-page-section .contact-info-value {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .contact-section.contact-page-section .contact-info-highlight {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    .contact-section.contact-page-section .contact-help-btn {
        width: 100% !important;
        max-width: 220px !important;
        height: 44px !important;
        font-size: 13px !important;
    }

    .contact-section.contact-page-section .contact-form-card .card-body {
        padding: 1.5rem 1.5rem !important;
    }

    .contact-section.contact-page-section .contact-form-panel h2 {
        font-size: 22px !important;
        margin-bottom: 0.5rem !important;
    }

    .contact-section.contact-page-section .contact-form-lead {
        font-size: 12px !important;
        margin-bottom: 1rem !important;
    }

    .contact-section.contact-page-section .contact-input,
    .contact-section.contact-page-section .contact-select,
    .contact-section.contact-page-section .contact-textarea {
        font-size: 13px !important;
    }

    .contact-section.contact-page-section .contact-textarea {
        min-height: 7rem !important;
    }

    .contact-section.contact-page-section .contact-submit-btn {
        height: 44px !important;
        font-size: 13px !important;
    }

    /* Tablet/laptop map */
    .contact-map-section {
        padding-top: 0.5rem !important;
        padding-bottom: 2rem !important;
    }

    .contact-map-section .contact-map-wrap,
    .contact-map-section .contact-map-wrap iframe {
        min-height: 340px !important;
        border-radius: 0 !important;
    }
}

/* Contact Form Placeholder Styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #173158 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}