/* ==========================================================================
   Contact page styles.
   Layout source of truth: design/contact.psd / design/contact.jpg,
   canvas 1920 x 2501. Sizes and colours are measured from the design.
   Everything is scoped to .zxy-contact-page so nothing leaks into other
   pages (Avada compatibility).
   ========================================================================== */

.zxy-contact-page {
    --zxy-red: #a8343c;
    --zxy-gold: #e1cda0;
    --zxy-light-gold: #f0dbac;
    --zxy-navy: #04132b;
    --zxy-dae3ef: #dae3ef;
    --zxy-dark: #181818;
    --zxy-text: #353535;
    --zxy-muted: #6b6b6b;
    --zxy-border: #d2d2d2;
    --zxy-article: #f2f2f2;

    /* contact page only */
    --zxy-field: #f5f5f5;
    --zxy-field-text: #797979;
    --zxy-address: #657481;
    --zxy-marker: #4a9eff;

    color: var(--zxy-text);
    font-family: Poppins, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
}

.zxy-contact-page,
.zxy-contact-page *,
.zxy-contact-page *::before,
.zxy-contact-page *::after {
    box-sizing: border-box;
}

.zxy-contact-page h1,
.zxy-contact-page h2,
.zxy-contact-page h3,
.zxy-contact-page p,
.zxy-contact-page ol {
    margin: 0;
}

.zxy-contact-page h1,
.zxy-contact-page h2,
.zxy-contact-page h3 {
    font-family: Poppins, sans-serif;
    text-wrap: balance;
}

.zxy-contact-page img,
.zxy-contact-page svg {
    max-width: 100%;
}

.zxy-contact-page a {
    color: inherit;
    text-decoration: none;
}

.zxy-contact-page input,
.zxy-contact-page textarea,
.zxy-contact-page button {
    font: inherit;
    color: inherit;
}

.zxy-contact-page :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ==========================================================================
   1. Banner (design y 0 - 1005, image 1920 x 1009)
   ========================================================================== */

.zxy-contact-page .zxy-contact-banner {
    position: relative;
    height: min(950px, 52.552vw);
    padding-top: min(414px, 21.563vw);
    background: #1e1f21 url("../images/contact-banner-bg.jpg") center center / cover no-repeat;
}

.zxy-contact-page .zxy-contact-banner h1 {
    color: #fff;
    font-size: min(72px, 3.75vw);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
}

/* ==========================================================================
   2. Enquiry card + information band (design y 1006 - 1860, red)
   ========================================================================== */

/* `display: flow-root` stops the card's negative margin from collapsing with
   this section — without it the whole section (and its red background) is
   dragged up over the banner, which hides the overlap. The red itself is
   painted by the ::before instead of a background so it can only ever cover
   the band, never the banner above it. */
.zxy-contact-page .zxy-contact-band {
    position: relative;
    display: flow-root;
    padding-bottom: min(96px, 5vw);
}

.zxy-contact-page .zxy-contact-band::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background: var(--zxy-red);
}

/* the card overlaps the bottom of the banner exactly as in the design */
.zxy-contact-page .zxy-contact-card {
    position: relative;
    width: min(1498px, 78.021vw);
    z-index: 1;
    /* design: banner is 1009 tall, the card's top sits at y 789, so the card
       rides 220px up over the bottom of the banner photo */
    margin: calc(-1 * min(220px, 11.458vw)) auto 0;
    padding: min(47px, 2.448vw) min(81px, 4.219vw) min(52px, 2.708vw);
    /* keeps the design's card height while the form body is still empty;
       remove once the real form defines its own height */
    background: #fff;
}

.zxy-contact-page .zxy-contact-card h2 {
    color: #282727;
    font-size: min(30px, 1.563vw);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin-bottom:15px;
}
.zxy-contact-page .zxy-contact-card p{
      color: #444;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom:30px;
    text-align: center;  
}
/* ---- .zxy-contact-fields is intentionally left unstyled: the design's
   6 fields (3 columns x 2 rows of 428 x 48, gap 25 / 55) are added later ---- */

/* the message block, tips list, textarea and submit button are added later,
   so no styles are defined for them here. Design reference values:
   message block 1334 x 227 (bg #f5f5f5, padding 30 / 23), tips text 16px
   #797979 with "Tips:" in #a8343c, submit pill 164 x 47 bg #a8343c */

/* ---- three contact columns: icon circle, label, value ---- */
.zxy-contact-page .zxy-contact-info {
    position: relative;
    height: min(120px, 6.25vw);
    margin-top: min(126px, 6.563vw);
}

/* each column is centred on its circle: 530 / 960 / 1370 in the design,
   i.e. 320 / 750 / 1160 inside the 1500 container */
.zxy-contact-page .zxy-contact-info-item {
    position: absolute;
    top: 0;
    width: min(300px, 15.625vw);
    text-align: center;
    transform: translateX(-50%);
}

.zxy-contact-page .zxy-contact-info-item--1 {
    left: 21.333%;
}

.zxy-contact-page .zxy-contact-info-item--2 {
    left: 50%;
}

.zxy-contact-page .zxy-contact-info-item--3 {
    left: 77.333%;
}

/* design: the ring and the glyph inside it are the light gold, not white */
.zxy-contact-page .zxy-contact-info-icon {
    display: grid;
    width: min(60px, 3.125vw);
    height: min(60px, 3.125vw);
    margin: 0 auto;
    border: 1px solid var(--zxy-gold);
    border-radius: 50%;
    color: var(--zxy-gold);
    place-items: center;
}

.zxy-contact-page .zxy-contact-info-icon svg {
    width: min(26px, 1.354vw);
    height: min(26px, 1.354vw);
}

/* wide gap under the ring, then a tight gap between the two text lines */
.zxy-contact-page .zxy-contact-info-label {
    margin-top: min(24px, 1.25vw);
    color: #fff;
    font-size: min(24px, 1.25vw);
    font-weight: 600;
    line-height: 1.3;
}

.zxy-contact-page .zxy-contact-info-value {
    color: #fff;
    font-size: min(18px, 0.938vw);
    font-weight: 400;
    line-height: 1.3;
    word-break: break-word;
    margin-top:10px;
}

.zxy-contact-page .zxy-contact-info-value a:hover {
    color: var(--zxy-light-gold);
}

.zxy-contact-page .zxy-contact-info-sep {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px dashed rgba(255, 255, 255, 0.45);
}

.zxy-contact-page .zxy-contact-info-sep--1 {
    left: 35.467%;
}

.zxy-contact-page .zxy-contact-info-sep--2 {
    left: 63.333%;
}

/* ==========================================================================
   3. World map with the two overseas locations (design y 1861 - 2500)
   ========================================================================== */

.zxy-contact-page .zxy-contact-globe {
    position: relative;
    aspect-ratio: 1920 / 640;
    background: #f7f9fa url("../images/contact-btm-world.jpg") center center / cover no-repeat;
}

/* dot + country label on one row, address aligned under the label */
.zxy-contact-page .zxy-contact-marker {
    position: absolute;
    display: grid;
    margin-left: calc(-0.5 * min(26px, 1.354vw));
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: min(12px, 0.625vw);
}

.zxy-contact-page .zxy-contact-marker--uzbekistan {
    top: 34.2%;
    left: 52.5%;
}

.zxy-contact-page .zxy-contact-marker--indonesia {
    top: 67.8%;
    left: 78.646%;
}

.zxy-contact-page .zxy-contact-pulse {
    position: relative;
    display: block;
    width: min(26px, 1.354vw);
    height: min(26px, 1.354vw);
    align-self: center;
}

.zxy-contact-page .zxy-contact-dot {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    background: var(--zxy-marker);
    box-shadow: 0 0 6px rgba(74, 158, 255, 0.45);
}

.zxy-contact-page .zxy-contact-dot::after {
    content: "";
    position: absolute;
    inset: 33%;
    border-radius: 50%;
    background: #fff;
}

.zxy-contact-page .zxy-contact-country {
    padding: min(2px, 0.104vw) min(6px, 0.313vw);
    align-self: center;
    justify-self: start;
    border-radius: min(3px, 0.156vw);
    background: #fff;
    color: var(--zxy-marker);
    font-size: min(13px, 0.677vw);
    line-height: 1.4;
    white-space: nowrap;
}

/* ripple rings expanding out of the dot */
.zxy-contact-page .zxy-contact-ripple {
    position: absolute;
    inset: 0;
    display: block;
    border: 1.5px solid rgba(122, 180, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: zxy-contact-ripple 2.4s ease-out infinite;
}

.zxy-contact-page .zxy-contact-ripple:nth-child(2) {
    animation-delay: 0.8s;
}

.zxy-contact-page .zxy-contact-ripple:nth-child(3) {
    animation-delay: 1.6s;
}

/* the outermost ring reaches about twice the dot, not four times */
@keyframes zxy-contact-ripple {
    0% {
        transform: scale(0.7);
        opacity: 0.85;
    }

    70% {
        opacity: 0.22;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.zxy-contact-page .zxy-contact-address {
    max-width: min(330px, 17.188vw);
    margin-top: min(10px, 0.521vw);
    grid-column: 2;
    justify-self: start;
    color: var(--zxy-address);
    font-size: min(13px, 0.677vw);
    line-height: min(22px, 1.146vw);
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .zxy-contact-page .zxy-contact-ripple {
        animation: none;
        opacity: 0.35;
        transform: scale(2.2);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .zxy-contact-page .zxy-contact-banner {
        height: 62vw;
        padding-top: 24vw;
    }

    .zxy-contact-page .zxy-contact-banner h1 {
        font-size: 44px;
    }

    .zxy-contact-page .zxy-contact-card {
        width: 92%;
        padding: 34px 40px 38px;
    }

    .zxy-contact-page .zxy-contact-card h2 {
        font-size: 24px;
    }


    .zxy-contact-page .zxy-contact-info {
        height: 104px;
        margin-top: 84px;
    }

    .zxy-contact-page .zxy-contact-info-item {
        width: 220px;
    }

    .zxy-contact-page .zxy-contact-info-icon {
        width: 50px;
        height: 50px;
    }

    .zxy-contact-page .zxy-contact-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .zxy-contact-page .zxy-contact-info-label {
        font-size: 18px;
    }

    .zxy-contact-page .zxy-contact-info-value {
        font-size: 14px;
    }

    .zxy-contact-page .zxy-contact-pulse {
        width: 22px;
        height: 22px;
    }

    .zxy-contact-page .zxy-contact-marker {
        margin-left: -11px;
    }

    .zxy-contact-page .zxy-contact-country {
        padding: 2px 9px;
        font-size: 13px;
    }

    .zxy-contact-page .zxy-contact-address {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .zxy-contact-page .zxy-contact-banner {
        height: 74vw;
        padding-top: 30vw;
    }

    .zxy-contact-page .zxy-contact-banner h1 {
        font-size: 32px;
    }

    .zxy-contact-page .zxy-contact-card {
        width: 100%;
        margin-top: -60px;
        padding: 26px 20px 30px;
    }

    .zxy-contact-page .zxy-contact-card h2 {
        font-size: 19px;
    }



    /* the three contact columns become a stack, separators are dropped */
    .zxy-contact-page .zxy-contact-info {
        height: auto;
        margin-top: 44px;
        padding-bottom: 10px;
    }

    .zxy-contact-page .zxy-contact-info-item {
        position: static;
        width: 100%;
        margin-bottom: 22px;
        text-align: center;
        transform: none;
    }

    .zxy-contact-page .zxy-contact-info-icon {
        margin: 0 auto;
    }

    .zxy-contact-page .zxy-contact-info-sep {
        display: none;
    }

    .zxy-contact-page .zxy-contact-globe {
        aspect-ratio: auto;
        height: 380px;
    }

    .zxy-contact-page .zxy-contact-marker--uzbekistan {
        top: 30%;
        left: 34%;
    }

    .zxy-contact-page .zxy-contact-marker--indonesia {
        top: 62%;
        left: 56%;
    }

    .zxy-contact-page .zxy-contact-country {
        font-size: 12px;
    }

    .zxy-contact-page .zxy-contact-address {
        font-size: 11px;
        line-height: 1.6;
    }
}

@media (max-width: 420px) {
    .zxy-contact-page .zxy-contact-banner {
        height: 78vw;
    }

    .zxy-contact-page .zxy-contact-banner h1 {
        font-size: 26px;
    }

    .zxy-contact-page .zxy-contact-card {
        padding: 22px 16px 26px;
    }

    .zxy-contact-page .zxy-contact-country {
        font-size: 11px;
    }

    .zxy-contact-page .zxy-contact-address {
        font-size: 10px;
    }
}
