/*
 * Contact page (Contact/Index) content area.
 * The theme stylesheet is purged, so these components carry their own styles instead of
 * relying on utility classes that may not exist in the build. Header and footer are untouched.
 * Colours match the homepage, Help Center and blog, and are redefined under html.uc-dark.
 */

.ct {
    --ct-bg: #FBF8F4;
    --ct-surface: #FFFFFF;
    --ct-panel: #F7F3ED;
    --ct-border: #EFE9E1;
    --ct-border-strong: #E2DBCF;
    --ct-input-border: #DDD5C8;
    --ct-text: #14201C;
    --ct-text-2: #4A4640;
    --ct-text-3: #5B5650;
    --ct-accent: #0E5A49;
    --ct-accent-hover: #0A4537;
    --ct-accent-ink: #0E5A49;
    --ct-accent-soft: #E3EFEA;
    --ct-accent-select: #EAF3EF;
    --ct-on-accent: #FFFFFF;
    --ct-deep: #0B3B31;
    --ct-error-bg: #FBE7EA;
    --ct-error-fg: #8A1F2B;
    --ct-shadow-card: 0 50px 100px -50px rgba(11, 59, 49, .55);
    --ct-shadow-way: 0 20px 36px -24px rgba(11, 59, 49, .35);

    background: var(--ct-bg);
    color: var(--ct-text);
    overflow-x: clip;
}

.uc-dark .ct {
    --ct-bg: #101513;
    --ct-surface: #171D1B;
    --ct-panel: #1E2624;
    --ct-border: #252D2A;
    --ct-border-strong: #313B37;
    --ct-input-border: #3A4541;
    --ct-text: #EEF3F1;
    --ct-text-2: #B7C1BD;
    --ct-text-3: #9CA7A2;
    --ct-accent: #17846A;
    --ct-accent-hover: #1C9A7C;
    --ct-accent-ink: #5FC4A6;
    --ct-accent-soft: #173029;
    --ct-accent-select: #173029;
    --ct-deep: #0A2F27;
    --ct-error-bg: #3A1A1F;
    --ct-error-fg: #F3B5BE;
    --ct-shadow-card: 0 50px 100px -50px rgba(0, 0, 0, .8);
    --ct-shadow-way: 0 20px 36px -24px rgba(0, 0, 0, .7);
}

.ct *,
.ct *::before,
.ct *::after {
    box-sizing: border-box;
}

/* The theme forces `svg :not([fill="none"]) { fill: currentColor }`; restore normal inheritance. */
.ct svg :not([fill]) {
    fill: inherit;
}

.ct a {
    color: var(--ct-accent-ink);
}

.ct a:hover {
    color: var(--ct-accent-hover);
}

.uc-dark .ct a:hover {
    color: #8AD8BF;
}

.ct h1,
.ct h2 {
    font-family: inherit;
    color: var(--ct-text);
}

.ct-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 575px) {
    .ct-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.ct .ct-h2 {
    margin: 0;
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.ct-link {
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    align-self: flex-start;
}

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

/* Buttons */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ct-accent);
    background: var(--ct-accent);
    color: var(--ct-on-accent) !important;
    padding: 13px 20px;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.ct-btn:hover {
    background: var(--ct-accent-hover);
    border-color: var(--ct-accent-hover);
}

.ct-btn--ghost {
    background: var(--ct-surface);
    border-color: var(--ct-border-strong);
    color: var(--ct-text) !important;
}

.ct-btn--ghost:hover {
    background: var(--ct-surface);
    border-color: var(--ct-accent-ink);
}

.ct-btn--lg {
    padding: 15px 28px;
    border-radius: 12px;
    font-size: 16px;
}

.ct-btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Hero + form                                                         */
/* ------------------------------------------------------------------ */

.ct-hero {
    position: relative;
    /* The site navigation overlays the top of the page; the dark band starts below it */
    margin-top: 64px;
}

@media (min-width: 992px) {
    .ct-hero {
        margin-top: 80px;
    }
}

.ct-hero__band {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 500px;
    background: var(--ct-deep);
}

.ct-hero__row {
    position: relative;
    padding-top: 72px;
    padding-bottom: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}

@media (max-width: 575px) {
    .ct-hero__row {
        padding-top: 48px;
        padding-bottom: 56px;
        gap: 32px;
    }
}

.ct-intro {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #F2F7F5;
}

.ct-eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: #9FD0BE;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ct .ct-intro__title {
    margin: 0;
    font-size: clamp(46px, 6vw, 80px);
    line-height: .98;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #FFFFFF;
}

.ct-intro__lead {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
    color: #B8D3C9;
    max-width: 460px;
}

.ct-promises {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
}

.ct-promises li {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ct-promises__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #9FD0BE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Stacked (narrower screens): the intro carries its own full-width dark background, however
   long the translated text is, and the form follows on the page background */
@media (max-width: 1079px) {
    .ct-hero {
        /* Keeps the intro's full-width background from reaching up behind the site header */
        overflow: clip;
    }

    .ct-hero__band {
        display: none;
    }

    .ct-intro,
    .ct-card {
        flex-basis: 100%;
    }

    .ct-intro {
        position: relative;
        padding-bottom: 40px;
        background: var(--ct-deep);
        box-shadow: 0 0 0 100vmax var(--ct-deep);
        clip-path: inset(-100vmax -100vmax 0 -100vmax);
    }
}

.ct-card {
    flex: 1.25 1 520px;
    min-width: 0;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 28px;
    padding: clamp(24px, 3.5vw, 44px);
    box-shadow: var(--ct-shadow-card);
    scroll-margin-top: 96px;
}

@media (max-width: 575px) {
    .ct-card {
        border-radius: 20px;
        flex-basis: 100%;
    }
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ct-topics {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.ct-legend {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    padding: 0;
    color: var(--ct-text);
}

.ct-topics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

@media (max-width: 575px) {
    .ct-topics__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ct-topic {
    position: relative;
    display: block;
    cursor: pointer;
    margin: 0;
}

.ct-topic input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ct-topic__box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--ct-border-strong);
    background: var(--ct-surface);
    color: var(--ct-text);
    padding: 14px 15px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color .15s ease, background-color .15s ease;
}

.ct-topic__box svg {
    color: var(--ct-text-3);
}

.ct-topic:hover .ct-topic__box {
    border-color: var(--ct-accent-ink);
}

.ct-topic input:checked + .ct-topic__box {
    border: 2px solid var(--ct-accent);
    padding: 13px 14px;
    background: var(--ct-accent-select);
    color: var(--ct-text);
    font-weight: 700;
}

.ct-topic input:checked + .ct-topic__box svg {
    color: var(--ct-accent-ink);
}

.ct-topic input:focus-visible + .ct-topic__box {
    outline: 2px solid var(--ct-accent-ink);
    outline-offset: 2px;
}

.ct-hint {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--ct-panel);
    border-radius: 16px;
    padding: 16px 18px;
}

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

.ct-hint__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ct-surface);
    color: var(--ct-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ct-hint__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.ct-hint__text span {
    color: var(--ct-text-2);
}

.ct-hint__text a {
    font-weight: 600;
    align-self: flex-start;
    padding: 2px 0;
    text-decoration: none;
}

.ct-hint__text a:hover {
    text-decoration: underline;
}

.ct-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ct-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--ct-text);
}

.ct-optional {
    font-weight: 400;
    color: var(--ct-text-3);
}

.ct-input {
    width: 100%;
    border: 1px solid var(--ct-input-border);
    background: var(--ct-surface);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--ct-text);
    outline: none;
}

.ct-input::placeholder {
    color: var(--ct-text-3);
    opacity: .8;
}

.ct-input:focus {
    border-color: var(--ct-accent-ink);
    box-shadow: 0 0 0 3px rgba(14, 90, 73, .15);
}

.ct-input--area {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.ct-error {
    background: var(--ct-error-bg);
    color: var(--ct-error-fg);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
}

.ct-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.ct-submit__note {
    flex: 1 1 260px;
    font-size: 13px;
    color: var(--ct-text-3);
    line-height: 1.5;
}

.ct-submit .ct-btn {
    flex: 0 0 auto;
}

/* Sent */
.ct-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 48px 8px;
}

.ct-sent__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ct-accent-soft);
    color: var(--ct-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-sent p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ct-text-2);
    max-width: 420px;
}

.ct-sent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* Other ways to reach us                                              */
/* ------------------------------------------------------------------ */

.ct-ways {
    padding-top: 16px;
    padding-bottom: 80px;
}

.ct-ways .ct-h2 {
    margin-bottom: 24px;
}

.ct-ways__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.ct-way {
    text-decoration: none;
    color: var(--ct-text) !important;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ct-way:hover {
    transform: translateY(-2px);
    box-shadow: var(--ct-shadow-way);
    border-color: var(--ct-accent-soft);
}

.ct-way strong {
    font-size: 18px;
}

.ct-way > span:last-child {
    color: var(--ct-text-2);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ct-way__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ct-accent-soft);
    color: var(--ct-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-way__icon--solid {
    background: var(--ct-accent);
    color: #FFFFFF;
}

/* ------------------------------------------------------------------ */
/* Company                                                             */
/* ------------------------------------------------------------------ */

.ct-company-wrap {
    padding-bottom: 96px;
}

.ct-company {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.ct-company__intro {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-company__intro .ct-h2 {
    font-size: clamp(26px, 2.6vw, 34px);
}

.ct-company__intro p {
    margin: 0;
    font-size: 16px;
    color: var(--ct-text-2);
    line-height: 1.6;
}

.ct-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ct-accent-soft);
    color: var(--ct-accent-ink);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.ct-facts {
    flex: 1.3 1 420px;
    min-width: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px;
    align-content: start;
}

.ct-facts dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ct-text-3);
    margin-bottom: 6px;
}

.ct-facts dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .ct *,
    .ct *::before,
    .ct *::after {
        transition: none !important;
    }

    .ct-way:hover {
        transform: none;
    }
}
