/* =========================================================
   APIE CONTACT PAGE
   PREMIUM + FULLY RESPONSIVE CONTACT DESIGN
========================================================= */

:root {
    --api-teal: #1596A3;
    --api-teal-dark: #08747F;
    --api-pink: #ED2389;
    --api-yellow: #FFD21F;
    --api-blue: #1596D1;
    --api-orange: #F7941D;
    --api-dark: #28373B;
    --api-light: #FFF9F5;
    --api-white: #FFFFFF;
    --api-grey: #718084;
}


/* =========================================================
   GLOBAL RESET
========================================================= */

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--api-dark);
    font-family: "Nunito", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none !important;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   BOOTSTRAP HEADER
========================================================= */

.container-fluid.bg-primary {
    position: relative;
    margin-bottom: 0 !important;
    min-height: 300px;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(255,255,255,.16),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(255,255,255,.12),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #08747F,
            #1596A3
        ) !important;

    overflow: hidden;
}

.container-fluid.bg-primary::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    right: -80px;
    top: -90px;
    background: rgba(255,255,255,.09);
    pointer-events: none;
}

.container-fluid.bg-primary::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    left: -55px;
    bottom: -65px;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.container-fluid.bg-primary > div {
    position: relative;
    z-index: 2;
}

.container-fluid.bg-primary h3 {
    margin-bottom: 12px;
    font-size: 48px !important;
    font-weight: 900;
    letter-spacing: -.8px;
}

.container-fluid.bg-primary .d-inline-flex {
    font-size: 14px;
    font-weight: 700;
    opacity: .92;
}

.container-fluid.bg-primary a:hover {
    color: #ffffff !important;
}

/* =========================================================
   APIE CONTACT SECTION
   FORM + MAP + STICKY NOTES
========================================================= */

.apie-contact-section {
    position: relative;

    width: 100%;
    padding: 90px 20px;

    background: #fffaf5;

    overflow: hidden;

    font-family: "Poppins", sans-serif;
}

.apie-contact-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   FORM CARD
========================================================= */

.apie-form-card {
    position: relative;

    width: 100%;

    background: #ffffff;

    border: 1px solid rgba(21,150,163,.12);

    border-radius: 28px;

    padding: 38px;

    box-shadow:
        0 18px 50px rgba(8,116,127,.10);

    overflow: hidden;
}

.apie-form-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #1596A3,
            #ED2389,
            #FFD21F,
            #F7941D
        );
}


/* =========================================================
   FORM HEADING
========================================================= */

.apie-form-heading span {
    display: inline-block;

    margin-bottom: 10px;

    color: #1596A3;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.apie-form-heading h2 {
    margin: 0;

    color: #28373B;

    font-size: 31px;
    line-height: 1.2;
    font-weight: 700;
}

.apie-form-heading h2 b {
    color: #ED2389;
}

.apie-form-heading p {
    margin: 12px 0 28px;

    color: #7B8588;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.apie-enquiry-form {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 17px;
}

.apie-form-row {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.apie-input-group {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.apie-input-group label {
    color: #28373B;

    font-size: 12px;
    font-weight: 700;
}

.apie-input-group input,
.apie-input-group select,
.apie-input-group textarea {
    width: 100%;
    min-width: 0;

    border: 1px solid #E4EAEB;

    background: #FBFDFD;

    border-radius: 12px;

    padding: 13px 15px;

    color: #28373B;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.apie-input-group input,
.apie-input-group select {
    height: 48px;
}

.apie-input-group textarea {
    min-height: 105px;
    resize: vertical;
}

.apie-input-group input::placeholder,
.apie-input-group textarea::placeholder {
    color: #A9B1B3;
}

.apie-input-group input:focus,
.apie-input-group select:focus,
.apie-input-group textarea:focus {
    border-color: #1596A3;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(21,150,163,.08);
}


/* =========================================================
   PREMIUM SEND BUTTON
========================================================= */

.apie-send-btn {
    position: relative;

    width: 100%;
    height: 56px;

    margin-top: 5px;

    padding: 0 8px 0 22px;

    border: none;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #08747F 0%,
            #1596A3 100%
        );

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .3px;

    box-shadow:
        0 10px 24px rgba(8,116,127,.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.apie-send-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(255,255,255,.18),
            transparent
        );

    transform: skewX(-20deg);

    transition: left .6s ease;
}

.apie-send-btn span {
    position: relative;
    z-index: 2;
}

.apie-send-btn strong {
    position: relative;
    z-index: 2;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #FFD21F;

    color: #28373B;

    font-size: 21px;
    font-weight: 500;

    box-shadow:
        0 4px 10px rgba(40,55,59,.12);

    transition:
        transform .3s ease,
        background .3s ease;
}

.apie-send-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(8,116,127,.28);
}

.apie-send-btn:hover::before {
    left: 140%;
}

.apie-send-btn:hover strong {
    transform: translateX(4px) rotate(-4deg);
    background: #ffffff;
}

.apie-send-btn:active {
    transform: translateY(0);

    box-shadow:
        0 7px 15px rgba(8,116,127,.20);
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.apie-right-side {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   MAP CARD
========================================================= */

.apie-map-card {
    width: 100%;

    padding: 15px;

    background: #ffffff;

    border: 1px solid rgba(21,150,163,.12);

    border-radius: 25px;

    box-shadow:
        0 18px 50px rgba(8,116,127,.10);
}

.apie-map-header {
    min-width: 0;

    padding: 8px 8px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.apie-map-header > div {
    min-width: 0;
}

.apie-map-header span {
    display: block;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    color: #ED2389;
}

.apie-map-header h3 {
    margin: 3px 0 0;

    color: #28373B;

    font-size: 20px;
    line-height: 1.3;
}

.apie-location-icon {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #FFF2F8;

    color: #ED2389;

    font-size: 18px;
}

.apie-map {
    width: 100%;
    height: 255px;

    overflow: hidden;

    border-radius: 18px;
}

.apie-map iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =========================================================
   STICKY NOTES — 2 x 2
========================================================= */

.apie-sticky-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 17px;

    padding: 2px 7px 8px;
}

.apie-sticky {
    position: relative;

    min-width: 0;
    min-height: 145px;

    padding: 23px 21px;

    border-radius: 3px;

    box-shadow:
        0 12px 22px rgba(40,55,59,.13);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    overflow: hidden;
}


/* paper fold */

.apie-sticky::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 22px;
    height: 22px;

    background: rgba(255,255,255,.42);

    clip-path:
        polygon(
            100% 0,
            100% 100%,
            0 100%
        );
}


/* pin */

.apie-pin {
    position: absolute;

    top: 8px;
    right: 13px;

    font-size: 14px;

    color: rgba(40,55,59,.35);
}


/* note typography */

.apie-sticky h4 {
    margin: 0 0 8px;

    color: #28373B;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.25;
}

.apie-sticky p {
    margin: 0;

    color: rgba(40,55,59,.72);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   NOTE COLORS
========================================================= */

.apie-sticky-yellow {
    background: #FFF2A8;
    transform: rotate(-1.4deg);
}

.apie-sticky-pink {
    background: #FFD0E7;
    transform: rotate(1.5deg);
}

.apie-sticky-orange {
    background: #FFD29B;
    transform: rotate(1.2deg);
}

.apie-sticky-teal {
    background: #BDECEF;
    transform: rotate(-1.3deg);
}


/* =========================================================
   NOTE HOVER
========================================================= */

.apie-sticky:hover {
    transform: translateY(-6px) rotate(0deg);

    box-shadow:
        0 18px 30px rgba(40,55,59,.18);
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .contact-card-grid {
        width: min(100% - 30px, 1000px);
        gap: 18px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .apie-contact-container {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 22px;
    }

    .apie-form-card {
        padding: 30px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .container-fluid.bg-primary {
        min-height: 250px;
    }

    .container-fluid.bg-primary h3 {
        font-size: 40px !important;
    }

    .contact-card-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .contact-card-grid .contact-card:nth-child(1),
    .contact-card-grid .contact-card:nth-child(2),
    .contact-card-grid .contact-card:nth-child(3) {
        transform: none;
    }

    .contact-card-grid .contact-card:nth-child(2):hover,
    .contact-card-grid .contact-card:hover {
        transform: translateY(-7px) !important;
    }

    .apie-contact-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .apie-form-card {
        padding: 32px;
    }

    .apie-map {
        height: 300px;
    }
}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 700px) {

    .apie-contact-section {
        padding: 65px 15px;
    }

    .apie-contact-container {
        width: 100%;
    }

    .apie-form-card {
        padding: 28px 22px;
    }

    .apie-form-heading h2 {
        font-size: 28px;
    }

    .apie-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .apie-sticky-grid {
        gap: 14px;
    }

    .apie-sticky {
        min-height: 140px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container-fluid.bg-primary {
        min-height: 210px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .container-fluid.bg-primary h3 {
        font-size: 32px !important;
        letter-spacing: -.4px;
    }

    .container-fluid.bg-primary .d-inline-flex {
        font-size: 12px;
    }


    /* Contact cards */

    .apie-contact-cards {
        padding: 45px 0 65px;
    }

    .contact-card-grid {
        width: calc(100% - 28px);
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        width: 100%;
        min-height: 145px;

        padding: 22px 18px;

        border-radius: 21px;

        gap: 14px;
    }

    .contact-card-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;

        border-radius: 16px;

        font-size: 20px;
    }

    .contact-card-icon i {
        font-size: 20px;
    }


    /* Main contact */

    .apie-contact-section {
        padding: 50px 12px;
    }

    .apie-contact-container {
        width: 100%;
        gap: 20px;
    }

    .apie-form-card {
        padding: 24px 17px;

        border-radius: 21px;
    }

    .apie-form-card::before {
        height: 4px;
    }

    .apie-form-heading span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .apie-form-heading h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .apie-form-heading p {
        margin: 10px 0 22px;
        font-size: 13px;
        line-height: 1.65;
    }

    .apie-enquiry-form {
        gap: 14px;
    }

    .apie-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .apie-input-group {
        gap: 6px;
    }

    .apie-input-group label {
        font-size: 11px;
    }

    .apie-input-group input,
    .apie-input-group select,
    .apie-input-group textarea {
        font-size: 13px;
        border-radius: 11px;
        padding: 12px 13px;
    }

    .apie-input-group input,
    .apie-input-group select {
        height: 46px;
    }

    .apie-input-group textarea {
        min-height: 105px;
    }


    /* Button */

    .apie-send-btn {
        height: 53px;

        padding-left: 17px;

        border-radius: 13px;

        font-size: 13px;
    }

    .apie-send-btn strong {
        width: 37px;
        height: 37px;

        border-radius: 10px;

        font-size: 19px;
    }


    /* Map */

    .apie-right-side {
        gap: 15px;
    }

    .apie-map-card {
        padding: 10px;

        border-radius: 20px;
    }

    .apie-map-header {
        padding: 7px 7px 12px;
    }

    .apie-map-header span {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .apie-map-header h3 {
        font-size: 18px;
    }

    .apie-location-icon {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 16px;
    }

    .apie-map {
        height: 235px;
        border-radius: 15px;
    }


    /* Sticky notes */

    .apie-sticky-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;

        padding: 2px 2px 7px;
    }

    .apie-sticky {
        min-height: 145px;

        padding: 19px 14px;

        border-radius: 3px;
    }

    .apie-sticky h4 {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .apie-sticky p {
        font-size: 10.5px;
        line-height: 1.55;
    }

    .apie-pin {
        top: 6px;
        right: 8px;
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .container-fluid.bg-primary {
        min-height: 190px;
    }

    .container-fluid.bg-primary h3 {
        font-size: 28px !important;
    }

    .contact-card {
        min-height: 135px;
        padding: 19px 15px;
    }

    .contact-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .apie-contact-section {
        padding-left: 9px;
        padding-right: 9px;
    }

    .apie-form-card {
        padding: 22px 14px;
    }

    .apie-form-heading h2 {
        font-size: 23px;
    }

    .apie-map {
        height: 210px;
    }

    .apie-sticky-grid {
        gap: 8px;
    }

    .apie-sticky {
        min-height: 135px;
        padding: 17px 11px;
    }

    .apie-sticky h4 {
        font-size: 13px;
    }

    .apie-sticky p {
        font-size: 10px;
    }
}


/* =========================================================
   EXTRA SAFETY — PREVENT HORIZONTAL OVERFLOW
========================================================= */

.apie-contact-section *,
.apie-contact-cards *,
.contact-card-grid * {
    max-width: 100%;
}

.apie-form-card,
.apie-map-card,
.apie-sticky,
.contact-card {
    min-width: 0;
}
/* =========================================================
   APIE PHONE POPUP
========================================================= */

.apie-phone-popup {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(20, 35, 40, 0.72);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 20px;

    z-index: 99999999 !important;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease,
                visibility 0.3s ease;
}

.apie-phone-popup.show {
    opacity: 1;
    visibility: visible;
}


/* POPUP BOX */

.apie-phone-popup-box {
    position: relative;

    width: min(400px, 100%);

    background: #fffaf5;

    border-radius: 28px;

    padding: 42px 30px 30px;

    text-align: center;

    box-sizing: border-box;

    box-shadow: 0 30px 90px rgba(0,0,0,.35);

    transform: scale(.85) translateY(25px);

    transition: transform .35s ease;
}

.apie-phone-popup.show .apie-phone-popup-box {
    transform: scale(1) translateY(0);
}


/* CLOSE */

.apie-phone-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #eeeeee;

    color: #28373b;

    font-size: 25px;

    line-height: 38px;

    cursor: pointer;

    padding: 0;

    z-index: 2;
}

.apie-phone-close:hover {
    background: #ed2389;
    color: #ffffff;
}


/* ICON */

.apie-phone-icon {
    width: 78px;
    height: 78px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #ffd21f,
        #f7941d
    );

    color: #ffffff;

    font-size: 30px;

    box-shadow:
        0 12px 30px rgba(247,148,29,.35);
}


/* LABEL */

.apie-phone-label {
    color: #f7941d;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 6px;
}


/* TITLE */

.apie-phone-popup-box h2 {
    margin: 0;

    color: #28373b;

    font-size: 30px;

    font-weight: 800;
}


/* DESCRIPTION */

.apie-phone-popup-box p {
    margin: 8px 0 22px;

    color: #6d777a;

    font-size: 14px;
}


/* NUMBER */

.apie-phone-number {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 20px;

    color: #08747f;

    font-size: 20px;

    font-weight: 800;
}


/* CALL BUTTON */

.apie-phone-call {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    padding: 15px;

    box-sizing: border-box;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #1596a3,
        #08747f
    );

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s ease;
}

.apie-phone-call:hover {
    transform: translateY(-2px);

    color: #ffffff !important;
}


/* MOBILE */

@media (max-width: 480px) {

    .apie-phone-popup {
        padding: 15px !important;
    }

    .apie-phone-popup-box {
        padding: 38px 22px 25px;

        border-radius: 24px;
    }

    .apie-phone-icon {
        width: 68px;
        height: 68px;

        font-size: 25px;
    }

    .apie-phone-popup-box h2 {
        font-size: 26px;
    }

    .apie-phone-number {
        font-size: 18px;
    }

}

/* =========================================
   APIE PHONE & EMAIL VALIDATION ONLY
   ========================================= */

#apiePhoneError,
#apieEmailError {
    display: none;
    width: 100%;
    margin-top: 6px;
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Phone error */
#apiePhone.apie-phone-invalid {
    border-color: #e53935 !important;
}

/* Email error */
#apieEmail.apie-email-invalid {
    border-color: #e53935 !important;
}