@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --page-bg: #eef2f3;
    --text: #242424;
    --muted: #b7bcc5;
    --accent: #35f2c2;
    --border: #e2e6e8;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.contact-page {
    width: min(1264px, calc(100% - 64px));
    margin: 34px auto 100px;
}

.page-heading h1 {
    margin: 0 0 1px;
    font-size: clamp(48px, 4.2vw, 72px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -2.5px;
}

.page-heading p {
    margin: 0;
    max-width: 700px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.contact-layout {
    display: flex;
    gap: 34px;
    align-items: start;
    margin-top: 44px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    min-width: 500px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    padding: 0 29px;
    border: 1px solid var(--border);
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #30343a;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input {
    height: 46px;
}

.contact-form textarea {
    height: 142px;
    padding-top: 14px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(53, 242, 194, .12);
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    padding-right: 60px;
}

.name-wrap input {
    border-color: var(--accent);
}

.input-icon {
    position: absolute;
    top: 14px;
    right: 34px;
    width: 19px;
    height: 17px;
    border-radius: 4px;
    background: #b9c0ca;
    color: #fff;
    font-size: 9px;
    line-height: 11px;
    letter-spacing: 1px;
    text-align: center;
    padding-top: 2px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1px;
}

.form-actions button {
    width: 119px;
    height: 50px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: #152f3b;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.form-actions button:hover {
    background: rgba(53, 242, 194, .18);
}

.form-actions button:active {
    transform: translateY(1px);
}

/* Form validation error text (mailto contact flow). */
.error-title {
    margin: -16px 0 14px;
    min-height: 15px;
    color: #e5484d;
    font-size: 13px;
    line-height: 1.2;
}

.error-title:empty {
    margin: -16px 0 0;
}

.address-card {
    position: relative;
    min-height: 438px;
    overflow: visible;
    padding: 44px 50px 35px;
    background: #35efbd;
    isolation: isolate;
    flex: 1;
}

.address-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    right: 5px;
    top: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 162, .23), transparent 68%);
}

.address-copy {
    position: relative;
    z-index: 2;
    max-width: 270px;
}

.address-group {
    margin: 0 0 27px;
}

.address-group h2 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.address-group p {
    margin: 0 0 14px;
    line-height: 1.45;
    font-size: 12.5px;
}

.address-group p:last-child {
    margin-bottom: 0;
}

.address-group a {
    color: inherit;
    text-decoration: none;
}

.address-group a:hover {
    text-decoration: underline;
}

/* A lightweight paper-plane illustration built entirely with CSS. */
.paper-plane {
    position: absolute;
    z-index: 1;
    width: 258px;
    height: 278px;
    right: -103px;
    top: 77px;
    filter: drop-shadow(0 10px 8px rgba(25, 73, 67, .16));
    transform: rotate(1deg);
}

.paper-plane::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #fff 0%, #f7f8f8 55%, #dfe3e3 100%);
    clip-path: polygon(10% 0, 100% 50%, 10% 100%, 10% 57%, 0 51%, 10% 45%);
}

.plane-wing {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, .95), rgba(220, 225, 225, .92));
    clip-path: polygon(10% 0, 100% 50%, 10% 45%);
}

.plane-fold {
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(190, 196, 196, .55), rgba(255, 255, 255, .6));
    clip-path: polygon(10% 45%, 100% 50%, 10% 57%);
}

.chat-button {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #35f2c2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
}

.chat-button svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1500px) {
    .contact-page {
        width: min(1264px, calc(100% - 80px));
    }
}

@media (max-width: 900px) {
    .contact-page {
        width: min(680px, calc(100% - 40px));
        margin-top: 28px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 32px;
    }

    .address-card {
        min-height: 420px;
    }

    .paper-plane {
        right: -75px;
    }
}

@media (max-width: 520px) {
    .contact-page {
        width: calc(100% - 32px);
        margin-top: 24px;
    }

    .page-heading h1 {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .page-heading p {
        font-size: 13px;
    }

    .desktop-break {
        display: none;
    }

    .contact-form input, .contact-form textarea {
        padding-left: 18px;
    }

    .address-card {
        padding: 32px 25px;
        min-height: 455px;
    }

    .address-copy {
        max-width: 245px;
    }

    .paper-plane {
        width: 190px;
        height: 215px;
        right: -105px;
        top: 130px;
        opacity: .9;
    }
}
