/*============================================

   ThemeAdapt — Contact page (template-contact.php)

   Loaded only on that template. The form fields themselves are styled by the
   .ta-formcard rules in themeadapt-app.css; this file adds the page around
   them, the form's heading and the topic chips.

==============================================*/

/* -------------------------------------------------------------------------
 * Hero: who reads the messages, and every way to reach them
 * ---------------------------------------------------------------------- */

.ta-contact-hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(52px, 4vw + 28px, 84px);
    text-align: center;
}

.ta-contact-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -200px;
    width: 900px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--ta-accent) 15%, transparent), transparent);
    translate: -50% 0;
    pointer-events: none;
}

.ta-contact-hero .ta-container {
    position: relative;
}

.ta-contact-hero__key {
    display: block;
    width: clamp(72px, 5vw + 40px, 92px);
    height: auto;
    margin: 0 auto 26px;
    rotate: -6deg;
    filter: drop-shadow(0 22px 34px color-mix(in srgb, var(--ta-accent) 35%, transparent));
}

.ta-contact-hero__title {
    max-width: 900px;
    margin: 0 auto 18px;
    font-size: clamp(2.375rem, 1.4rem + 3.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.ta-contact-hero__title span {
    display: block;
    color: var(--ta-accent);
}

.ta-contact-hero__text {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--ta-muted);
}

.ta-contact-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.ta-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 9px;
    border: 1px solid #2c2c2c;
    border-radius: var(--ta-radius-pill);
    background: #1b1b1b;
    font-size: .875rem;
    font-weight: var(--ta-fw-semibold);
    color: var(--ta-foreground);
    transition: border-color .2s ease;
}

a.ta-contact-pill:hover {
    border-color: color-mix(in srgb, var(--ta-accent) 55%, transparent);
}

.ta-contact-pill i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #262626;
    color: #fff;
}

.ta-contact-pill svg {
    width: 15px;
    height: 15px;
}

.ta-contact-pill--mail i {
    background: var(--ta-accent);
    color: #0c1705;
}

.ta-contact-pill--telegram i {
    background: #229ed9;
}

.ta-contact-pill--whatsapp i {
    background: #25d366;
}

.ta-contact-pill--time {
    font-weight: var(--ta-fw-medium);
    color: #9a9a9a;
}

.ta-contact-pill--time i {
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

/* -------------------------------------------------------------------------
 * Before you write: the answers people most often write in for
 * ---------------------------------------------------------------------- */

.ta-contact-before {
    margin-top: 64px;
    text-align: left;
}

.ta-contact-before h2 {
    margin-bottom: 16px;
    font-size: 1.375rem;
    letter-spacing: -.025em;
}

.ta-contact-before h2 span {
    margin-left: 6px;
    font-family: var(--ta-font);
    font-size: .9375rem;
    font-weight: var(--ta-fw-medium);
    letter-spacing: 0;
    color: #8d8d8d;
}

.ta-contact-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ta-contact-quick__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 22px 20px;
    border: 1px solid #2c2c2c;
    border-radius: 20px;
    background: #1b1b1b;
    color: var(--ta-foreground);
    transition: border-color .2s ease, transform .3s var(--ta-ease);
}

.ta-contact-quick__item:hover {
    border-color: color-mix(in srgb, var(--ta-accent) 55%, transparent);
    transform: translateY(-2px);
}

.ta-contact-quick__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--ta-accent-soft);
    color: var(--ta-accent);
}

.ta-contact-quick__icon svg {
    width: 20px;
    height: 20px;
}

.ta-contact-quick__item b {
    font-family: var(--ta-font-head);
    font-size: 1.03125rem;
    letter-spacing: -.015em;
}

.ta-contact-quick__item > span:not(.ta-contact-quick__icon) {
    font-size: .84375rem;
    line-height: 1.55;
    color: #9a9a9a;
}

.ta-contact-quick__item em {
    position: absolute;
    right: 18px;
    top: 20px;
    color: #6f6f6f;
    transition: color .2s ease;
}

.ta-contact-quick__item:hover em {
    color: var(--ta-accent);
}

.ta-contact-quick__item em svg {
    width: 16px;
    height: 16px;
}

/* -------------------------------------------------------------------------
 * The form card
 * ---------------------------------------------------------------------- */

.ta-contact-form.ta-formcard {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(24px, 3vw + 8px, 44px);
    border-color: color-mix(in srgb, var(--ta-accent) 25%, #2c2c2c);
    border-radius: 32px;
    background:
        radial-gradient(500px 280px at 50% 0%, color-mix(in srgb, var(--ta-accent) 12%, transparent), transparent 70%),
        #1b1b1b;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}

/* The heading reads like every other section heading on the site: an eyebrow,
   a title with its key word in lime, one line of context, then a rule. */
.ta-contact-form__head {
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.ta-contact-form__head h2 {
    margin: 14px 0 10px;
    font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.ta-contact-form__head h2 span {
    color: var(--ta-accent);
}

.ta-contact-form__head p {
    max-width: 460px;
    margin: 0 auto;
    font-size: .9375rem;
    line-height: 1.6;
    color: #9a9a9a;
}

/* The form's own heading, from before the page drew one. */
.ta-contact-form .form-title {
    display: none;
}

.ta-formcard .row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ta-formcard .form-label em {
    margin-left: 4px;
    font-style: normal;
    font-weight: var(--ta-fw-medium);
    color: #8d8d8d;
}

.ta-formcard .form-hint {
    display: block;
    margin-top: 8px;
    font-size: .78125rem;
    line-height: 1.5;
    color: #8d8d8d;
}

/* Topic chips: Contact Form 7 radio buttons drawn as pills. */
.ta-formcard .ta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ta-formcard .ta-chips .wpcf7-list-item {
    margin: 0;
}

.ta-formcard .ta-chips label {
    position: relative;
    display: block;
    cursor: pointer;
}

.ta-formcard .ta-chips input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ta-formcard .ta-chips .wpcf7-list-item-label {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid #333;
    border-radius: var(--ta-radius-pill);
    background: #181818;
    font-size: .84375rem;
    font-weight: var(--ta-fw-semibold);
    color: #cfcfcf;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ta-formcard .ta-chips label:hover .wpcf7-list-item-label {
    border-color: color-mix(in srgb, var(--ta-accent) 55%, transparent);
}

.ta-formcard .ta-chips input:checked + .wpcf7-list-item-label {
    border-color: var(--ta-accent);
    background: var(--ta-accent);
    color: #0c1705;
}

.ta-formcard .ta-chips input:focus-visible + .wpcf7-list-item-label {
    outline: 2px solid var(--ta-accent);
    outline-offset: 2px;
}

.ta-contact-form__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 16px 0 0;
    font-size: .8125rem;
    color: #8d8d8d;
}

.ta-contact-form__note svg {
    width: 14px;
    height: 14px;
}

/* -------------------------------------------------------------------------
 * Who answers
 * ---------------------------------------------------------------------- */

/* One section's gap between the form card and the team card, the same as
   above the form: the team section adds no space of its own on top. */
.ta-contact-team {
    padding-top: 0;
}

.ta-contact-who {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 34px;
    border: 1px solid #2c2c2c;
    border-radius: 28px;
    background: #1b1b1b;
}

.ta-contact-who h2 {
    margin-top: 16px;
    font-size: 1.875rem;
    letter-spacing: -.035em;
}

.ta-contact-who p {
    margin: 12px 0 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: #9a9a9a;
}

.ta-contact-who__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
}

.ta-contact-member {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-contact-member__tile {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--ta-accent);
    font-family: var(--ta-font-head);
    font-size: .9375rem;
    font-weight: var(--ta-fw-extrabold);
    letter-spacing: -.03em;
    color: #0c1705;
}

.ta-contact-member:nth-child(even) .ta-contact-member__tile {
    border: 1px solid #333;
    background: #262626;
    color: var(--ta-accent);
}

.ta-contact-member b {
    display: block;
    font-family: var(--ta-font-head);
    font-size: .90625rem;
}

.ta-contact-member small {
    font-size: .78125rem;
    color: #8d8d8d;
}

.ta-contact-biz {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 24px 0 0;
    padding: 18px 24px;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    font-size: .84375rem;
    text-align: center;
    color: #9a9a9a;
}

.ta-contact-biz b {
    font-weight: var(--ta-fw-semibold);
    color: #e6e6e6;
}

.ta-contact-biz i {
    font-style: normal;
    color: #444;
}

.ta-contact-biz a {
    color: inherit;
}

.ta-contact-biz a:hover {
    color: var(--ta-accent);
}

/* -------------------------------------------------------------------------
 * Smaller screens
 * ---------------------------------------------------------------------- */

@media (max-width: 991px) {
    .ta-contact-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-contact-who {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .ta-contact-hero {
        padding-top: 44px;
    }

    .ta-contact-before {
        margin-top: 40px;
    }

    .ta-contact-before h2 span {
        display: block;
        margin: 4px 0 0;
    }

    .ta-contact-quick {
        gap: 10px;
    }

    .ta-contact-quick__item {
        padding: 16px;
    }

    .ta-contact-quick__item em {
        display: none;
    }

    .ta-contact-quick__icon {
        width: 34px;
        height: 34px;
        margin-bottom: 6px;
    }

    .ta-contact-quick__item b {
        font-size: .90625rem;
    }

    .ta-contact-quick__item > span:not(.ta-contact-quick__icon) {
        font-size: .78125rem;
    }

    .ta-contact-form.ta-formcard {
        border-radius: 24px;
    }

    .ta-contact-who {
        padding: 22px;
    }

    .ta-contact-who h2 {
        font-size: 1.5rem;
    }

    .ta-contact-who__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ta-contact-biz i {
        display: none;
    }

    .ta-contact-biz {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 575px) {
    .ta-formcard .row--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .ta-contact-who__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ta-contact-member b,
    .ta-contact-member small {
        white-space: nowrap;
    }
}
