/* Contact page (Figma: "Snetch-Contact", node 5801:40718). Builds on home.css tokens and shared blocks. */

/* ---------------- Hero ---------------- */
.ct-hero {
    position: relative;
    background: var(--hp-black);
    height: 1024px;
    overflow: hidden;
}

.ct-hero__deco {
    position: absolute;
    left: calc(50% - 720px);
    top: 0;
    width: 1440px;
    height: 1024px;
    pointer-events: none;
}

/* Mobile-only art layers (shown from 767px down) */
.ct-hero__deco--m,
.ct-social__art--m {
    display: none;
}

.ct-hero__content {
    position: relative;
    padding-top: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 59px;
}

.ct-hero__logo {
    position: relative;
    width: 247.73px;
    height: 114px;
}

/* Logo SVG carries its glow, so it overflows its 247x114 slot (Figma inset -104.74% / -48.2%) */
.ct-hero__logo img {
    position: absolute;
    left: -119.4px;
    top: -119.4px;
    width: 486.53px;
    height: 352.8px;
}

.ct-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 960px;
    max-width: 100%;
}

.ct-eyebrow {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: var(--hp-yellow);
    text-align: center;
}

.hp-body .ct-hero__title {
    margin-bottom: 16px;
}

.ct-hero__lead {
    width: 818px;
    max-width: 100%;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--hp-white);
}

.hp-body .ct-hero__text {
    margin-top: -11px;
    width: 888px;
    max-width: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 28px;
    color: var(--hp-white);
}

/* ---------------- Get in touch ---------------- */
.ct-touch {
    background: var(--hp-white);
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.ct-touch .hp-heading {
    width: 638px;
}

.ct-map {
    position: relative;
    width: var(--hp-content);
    height: 581px;
}

.ct-map__img {
    position: absolute;
    left: 0;
    top: 1.19px;
    width: 1220.7px;
    height: 575.03px;
}

.ct-map__office {
    position: absolute;
    left: 545px;
    top: 23px;
    width: 216px;
    height: 199px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ct-tooltip {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--hp-white);
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, .15));
    text-align: center;
}

.ct-tooltip > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.ct-tooltip__title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #363636;
}

.ct-tooltip__address {
    margin: -4px 0 0;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: .25px;
    color: #475467;
    font-style: normal;
}

/* Arrow sits right under the card, centred (its SVG includes the shadow, so it's larger than the 16x6 slot) */
.ct-tooltip__arrow {
    position: relative;
    z-index: 1;
    width: 33.94px;
    height: 16.56px;
}

.ct-map__pin {
    position: absolute;
    left: calc(50% - 28.5px);
    top: 143px;
    width: 56px;
    height: 56px;
}

.ct-channels {
    width: var(--hp-content);
    display: grid;
    grid-template-columns: 395px 388px 388px;
    justify-content: space-between;
}

.ct-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ct-channel__head {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ct-channel__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-channel__title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--hp-black);
    white-space: nowrap;
    margin: 0;
}

.ct-channel__line {
    width: 100%;
    height: 1px;
    margin: 15px 0 24px;
}

.ct-channel__text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hp-medium-grey);
}

.ct-channel__link {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hp-yellow);
    text-decoration: none;
}

.ct-channel__link:hover {
    text-decoration: underline;
}

/* ---------------- Stay connected ---------------- */
.ct-social {
    position: relative;
    height: 648px;
    background: linear-gradient(90deg, #000, #8c8c8c);
    overflow: hidden;
}

.ct-social__stage {
    position: relative;
    width: 1440px;
    height: 648px;
    margin: 0 auto;
}

.ct-social__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ct-bubble {
    position: absolute;
    display: grid;
    place-items: center;
}

.ct-bubble--glass {
    border-radius: 480px;
    /* Figma radial: centered, radius 176.5px on the 216px disc */
    background: radial-gradient(circle var(--glass-r, 176.5px) at center, #fff 0%, #d5d5d5 25%, #ababab 50%, #808080 75%, #565656 100%);
}

.ct-bubble::before {
    content: "";
    grid-area: 1 / 1;
    width: var(--icon);
    height: var(--icon);
    border-radius: 480px;
    background: var(--hp-white);
    filter: blur(var(--blur, 23.05px));
}

.ct-bubble img {
    grid-area: 1 / 1;
    position: relative;
    width: var(--icon);
    height: var(--icon);
    /* The 3D icon PNGs are 1024x704 and Figma stretches them into the square slot, which makes them round */
    object-fit: fill;
}

.ct-social__heading {
    position: absolute;
    left: 401px;
    top: 120px;
    width: 638px;
}

.ct-social__heading .hp-h2,
.ct-social__heading .hp-sub {
    color: var(--hp-white);
}

.ct-social__follow {
    position: absolute;
    left: 110px;
    top: 324px;
    width: 296px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.ct-social__follow .hp-h3 {
    margin-top: 8px;
    color: var(--hp-white);
}

.ct-social__eyebrow {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hp-white);
}

.hp-body .ct-social__text {
    margin-top: 16px;
    font-size: 20px;
    line-height: 28px;
    color: var(--hp-light-gray);
}

.ct-social__icons {
    display: flex;
    gap: 24px;
}

.ct-social__icons a {
    display: block;
    width: 40px;
    height: 40px;
    transition: transform .2s ease;
}

.ct-social__icons a:hover {
    transform: translateY(-2px);
}

.ct-social__icons a > img {
    width: 40px;
    height: 40px;
}

.ct-ig {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
}

.ct-ig img {
    position: absolute;
}

/* ---------------- Let's talk ---------------- */
.ct-talk {
    background: var(--hp-white);
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.ct-talk .hp-heading {
    width: 900px;
    max-width: 100%;
}

.ct-talk__row {
    width: var(--hp-content);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ct-talk__art {
    width: 660px;
    height: 710px;
    margin-top: 84px;
}

.ct-talk__photo {
    border-radius: 50%;
    object-fit: cover;
}

.ct-form {
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-form__intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.ct-form__lead {
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--hp-medium-grey);
}

.ct-form__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-field--phone,
.ct-field--message {
    gap: 8px;
}

.ct-field__label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hp-black);
}

.ct-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--hp-light-medium-gray);
    border-radius: 48px;
    background: var(--hp-white);
    font: 400 16px/24px 'Poppins', sans-serif;
    color: var(--hp-dark-grey);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ct-input::placeholder {
    color: var(--hp-medium-grey);
    opacity: 1;
}

.ct-input:focus {
    border-color: var(--hp-yellow);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, .18);
}

.ct-input.is-invalid {
    border-color: #d92d20;
}

.ct-phone {
    display: flex;
    gap: 8px;
}

.ct-phone .ct-input {
    flex: 1;
    padding-left: 16px;
}

.ct-phone__code {
    position: relative;
    flex: 0 0 102px;
    height: 44px;
}

.ct-phone__select {
    width: 100%;
    height: 100%;
    padding: 10px 24px 10px 36px;
    border: 1px solid var(--hp-light-medium-gray);
    border-radius: 48px;
    background: var(--hp-white);
    font: 400 16px/24px 'Poppins', sans-serif;
    color: var(--hp-medium-grey);
    appearance: none;
    cursor: pointer;
    outline: none;
}

.ct-phone__select {
    display: flex;
    align-items: center;
    text-align: left;
}

.ct-phone__select:focus-visible,
.ct-phone__code.is-open .ct-phone__select {
    border-color: var(--hp-yellow);
}

.ct-phone__chevron {
    transition: transform .2s ease;
}

.ct-phone__code.is-open .ct-phone__chevron {
    transform: rotate(180deg);
}

/* Country code list: opens right under the field */
.hp-body .ct-phone__list {
    position: absolute;
    z-index: 20;
    left: 0;
    top: calc(100% + 6px);
    width: max-content;
    min-width: 100%;
    max-height: 240px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--hp-light-gray);
    border-radius: 16px;
    background: var(--hp-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    outline: none;
}

.ct-phone__list[hidden] {
    display: none;
}

.ct-phone__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font: 400 16px/24px 'Poppins', sans-serif;
    color: var(--hp-dark-grey);
    white-space: nowrap;
    cursor: pointer;
}

.ct-phone__option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.ct-phone__option-code {
    min-width: 48px;
    font-weight: 600;
}

.ct-phone__option-name {
    color: var(--hp-medium-grey);
    font-size: 14px;
}

.ct-phone__option.is-active {
    background: #f2f2f2;
}

.ct-phone__option[aria-selected="true"] {
    color: var(--hp-black);
}

.ct-phone__option[aria-selected="true"] .ct-phone__option-code {
    color: var(--hp-yellow);
}

.ct-phone__flag {
    position: absolute;
    left: 8px;
    top: 10px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--hp-light-gray);
    border-radius: 48px;
    object-fit: cover;
    pointer-events: none;
}

.ct-phone__chevron {
    position: absolute;
    left: 83px;
    top: 19px;
    width: 11px;
    height: 6px;
    pointer-events: none;
}

.ct-textarea {
    height: 210px;
    padding: 16px;
    border-radius: 16px;
    resize: vertical;
    scrollbar-width: thin;
    scrollbar-color: var(--hp-light-medium-gray) #d9d9d9;
}

.ct-form__submit {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ct-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: rgba(38, 38, 38, .8);
    cursor: pointer;
}

.ct-check input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1px solid var(--hp-light-medium-gray);
    border-radius: 6px;
    background: var(--hp-white);
    appearance: none;
    cursor: pointer;
}

.ct-check input:checked {
    border-color: var(--hp-yellow);
    background: var(--hp-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.ct-check a {
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
}

.ct-send {
    width: 100%;
    padding: 19px 48px;
    border: 0;
    border-radius: 48px;
    background: var(--hp-medium-grey);
    font: 700 18px/26px 'Poppins', sans-serif;
    letter-spacing: .25px;
    color: var(--hp-white);
    cursor: pointer;
    transition: background-color .2s ease;
}

.ct-form.is-ready .ct-send {
    background: var(--hp-black);
}

.ct-send:disabled {
    cursor: progress;
    opacity: .7;
}

.ct-form__submit {
    position: relative;
}

/* Status line sits below the button without changing the design's layout height */
.ct-form__msg {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hp-dark-grey);
}

.ct-form__msg.is-error {
    color: #d92d20;
}

.ct-talk + .hp-early {
    margin: 120px auto;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1279px) {
    .ct-map,
    .ct-social__stage {
        zoom: .8;
    }

    .ct-channels,
    .ct-talk__row {
        width: auto;
        margin: 0 32px;
    }

    .ct-channels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .ct-talk__row {
        gap: 48px;
    }

    .ct-talk__art {
        zoom: .7;
    }
}

@media (max-width: 991px) {
    .ct-hero__title {
        font-size: 64px;
        line-height: 72px;
        letter-spacing: -1.28px;
    }

    .ct-map {
        zoom: .6;
    }

    .ct-channels {
        grid-template-columns: 1fr;
        row-gap: 48px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0 16px;
    }

    .ct-social {
        height: auto;
    }

    .ct-social__stage {
        zoom: 1;
        width: auto;
        height: auto;
        padding: 80px 32px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .ct-social__art {
        display: none;
    }

    .ct-social__heading,
    .ct-social__follow {
        position: static;
        width: auto;
        align-items: center;
        text-align: center;
    }

    .ct-talk__row {
        flex-direction: column;
        align-items: center;
    }

    .ct-talk__art {
        zoom: .5;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .ct-hero {
        height: auto;
        padding-bottom: 96px;
    }

    .ct-hero__deco {
        display: none;
    }

    .ct-hero__content {
        padding: 140px 16px 0;
        gap: 40px;
    }

    .ct-hero__logo {
        zoom: .6;
    }

    .ct-hero__title {
        font-size: 44px;
        line-height: 50px;
        letter-spacing: -.88px;
    }

    .ct-hero__lead {
        font-size: 18px;
        line-height: 26px;
    }

    .hp-body .ct-hero__text {
        margin-top: 0;
        font-size: 16px;
        line-height: 24px;
    }

    .ct-talk {
        padding: 80px 16px;
        gap: 48px;
    }

    .ct-talk__row {
        margin: 0;
        width: 100%;
    }

    .ct-talk__art {
        zoom: .45;
    }

    .ct-form {
        width: 100%;
    }

    .ct-talk + .hp-early {
        margin: 80px auto;
    }
}

/* ---------------- Mobile (Figma "Snetch-Contact" 390px frame, node 5801:71666) ----------------
   Scoped to body.ct-page so the About / Contribute pages (which reuse .ct-hero and .ct-talk)
   keep their own behaviour. Fluid from ~360px; 20px side padding per the design. */
@media (max-width: 767px) {
    .ct-page .hp-h2 {
        font-size: 32px;
        line-height: 40px;
        font-weight: 800;
    }

    .ct-page .hp-sub {
        font-size: 20px;
        line-height: 28px;
        font-weight: 500;
    }

    /* Hero */
    .ct-page .ct-hero {
        height: auto;
        min-height: 844px;
        padding: 0 0 120px;
    }

    .ct-page .ct-hero .hp-hero__glow {
        left: calc(50% - 135px);
        top: 112px;
        width: 270px;
        height: 732px;
    }

    .ct-page .ct-hero__deco {
        display: none;
    }

    .ct-page .ct-hero__deco--m {
        display: block;
        inset: 0;
        width: auto;
        height: auto;
    }

    .ct-page .ct-hero__content {
        padding: 112px 20px 0;
        gap: 32px;
    }

    /* 195x89 slot in the design (desktop slot is 247.73x114) */
    .ct-page .ct-hero__logo {
        zoom: .7872;
    }

    .ct-page .ct-hero__copy {
        gap: 4px;
        width: 350px;
    }

    .ct-page .ct-eyebrow {
        font-size: 16px;
        line-height: 24px;
        font-weight: 700;
    }

    .ct-page .ct-hero__title {
        margin-bottom: 12px;
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -.96px;
    }

    .ct-page .ct-hero__lead {
        font-size: 20px;
        line-height: 28px;
        font-weight: 400;
    }

    .hp-body.ct-page .ct-hero__text {
        margin-top: 16px;
        width: 350px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }

    /* Get in touch */
    .ct-page .ct-touch {
        padding: 80px 0;
        gap: 48px;
    }

    .ct-page .ct-touch .hp-heading {
        width: auto;
        padding: 0 20px;
    }

    /* Desktop map, cropped to the viewport and centred on the office pin */
    .ct-page .ct-map {
        zoom: 1;
        width: 100%;
        height: 581px;
        overflow: hidden;
    }

    .ct-page .ct-map__img {
        left: calc(50% - 653px);
    }

    .ct-page .ct-map__office {
        left: calc(50% - 108px);
    }

    .ct-page .ct-channels {
        width: 100%;
        max-width: 390px;
        margin: -48px auto 0;
        padding: 0 20px;
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .ct-page .ct-channel__title {
        max-width: 216px;
        white-space: normal;
        text-align: left;
        font-size: 24px;
        line-height: 32px;
    }

    /* The design's line is 0px tall; the 1px image eats 1px of the 24px gap */
    .ct-page .ct-channel__line {
        margin: 16px 0 23px;
    }

    /* Stay connected */
    .ct-page .ct-social {
        height: auto;
    }

    /* Compact mobile version (Figma 8057:3819): 912px tall, art 350x446 at y 188 */
    .ct-page .ct-social__stage {
        zoom: 1;
        display: block;
        width: auto;
        height: 912px;
        padding: 0;
    }

    .ct-page .ct-social__art {
        display: none;
    }

    .ct-page .ct-social__art--m {
        display: block;
        left: calc(50% - 175px);
        top: 188px;
        width: 350px;
        height: 446px;
        overflow: hidden;
    }

    .ct-page .ct-social__heading {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 80px;
        width: auto;
        align-items: center;
        text-align: center;
    }

    .ct-page .ct-social__follow {
        position: absolute;
        left: max(20px, calc(50% - 175px));
        top: 658px;
        width: 296px;
        align-items: flex-start;
        text-align: left;
        gap: 48px;
    }

    .ct-page .ct-social__eyebrow {
        font-size: 14px;
        line-height: 22px;
    }

    .ct-page .ct-social__follow .hp-h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .hp-body.ct-page .ct-social__text {
        font-size: 20px;
        line-height: 28px;
    }

    /* Let's talk */
    .ct-page .ct-talk {
        position: relative;
        padding: 80px 20px 60px;
        gap: 48px;
        box-shadow: 8px 0 80px rgba(0, 0, 0, .15);
    }

    .ct-page .ct-talk .hp-heading {
        width: 100%;
        max-width: 350px;
    }

    .ct-page .ct-talk__row {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    /* 660x710 desktop art scaled to the 350px design box */
    .ct-page .ct-talk__art {
        zoom: .5303;
        margin-top: 0;
    }

    .ct-page .ct-form {
        width: 100%;
        gap: 17px;
    }

    .ct-page .ct-form__intro {
        gap: 24px;
        margin-bottom: 31px;
    }

    .ct-page .ct-form .hp-h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .ct-page .ct-form__lead {
        font-size: 16px;
        line-height: 24px;
    }

    .ct-page .ct-form__fields {
        gap: 16px;
    }

    .ct-page .ct-field {
        gap: 8px;
    }

    .ct-page .ct-field__label {
        font-size: 14px;
        line-height: 22px;
    }

    .ct-page .ct-input,
    .ct-page .ct-phone__select {
        border-color: var(--hp-light-gray);
    }

    .ct-page .ct-input {
        height: 43px;
        padding: 9px 16px;
    }

    .ct-page .ct-phone {
        gap: 4px;
    }

    .ct-page .ct-phone__code {
        height: 40px;
    }

    .ct-page .ct-phone .ct-input {
        height: 40px;
        padding: 7px 16px;
        min-width: 0;
    }

    .ct-page .ct-phone__select {
        padding: 7px 24px 7px 36px;
    }

    .ct-page .ct-phone__flag {
        top: 8px;
    }

    .ct-page .ct-phone__chevron {
        left: 77px;
        top: 17px;
    }

    .ct-page .ct-textarea {
        height: 319px;
        padding: 9px 16px;
        border-radius: 24px;
    }

    .ct-page .ct-form__submit {
        gap: 48px;
    }

    .ct-page .ct-check {
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
    }

    .ct-page .ct-check input {
        margin-top: 1px;
    }

    .ct-page .ct-send {
        height: 56px;
        padding: 16px 48px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0;
    }

    .ct-page .ct-talk + .hp-early {
        margin: 80px auto;
    }
}

@media (max-width: 380px) {
    .ct-page .ct-talk__art {
        zoom: .48;
    }
}
