/* Contact page - tokens + sections (hero uses .works-hero* from works-page.css) */

.contact-page {
    --contact-mist-bloom: rgba(130, 210, 175, 0.1);
    --contact-mist-bloom-mid: rgba(70, 120, 95, 0.04);
    --works-champagne: #c9b896;
    --works-champagne-bright: #e8d5b4;
    --works-void: #04050a;
    background: var(--works-void);
    min-height: 100vh;
}

/*
 * Contact hero shares .works-hero with Works, but must keep its own layout:
 * flex-centred block (not lamp translateY(-50%)), original padding, softer body colour.
 */
.contact-page__hero-shell.works-hero {
    align-items: stretch;
    background: transparent;
    box-sizing: border-box;
    color: #f4f2f8;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(104px, 15vh, 148px) clamp(28px, 6vw, 72px) clamp(56px, 9vh, 88px);
    position: relative;
}

/* Hero mist: sage bloom (replacing Works champagne radial on this page only) */
.contact-page__hero-shell .works-hero__bloom {
    background: radial-gradient(
        ellipse 55% 42% at 58% 38%,
        var(--contact-mist-bloom) 0%,
        var(--contact-mist-bloom-mid) 42%,
        transparent 72%
    );
}

@media (prefers-reduced-motion: reduce) {
    .contact-page__hero-shell .works-hero__webgl {
        background:
            linear-gradient(102deg, transparent 40%, rgba(120, 200, 160, 0.07) 50%, transparent 60%),
            radial-gradient(ellipse 120% 28% at 54% 46%, rgba(50, 85, 70, 0.38) 0%, transparent 62%),
            radial-gradient(ellipse 32% 72% at 50% 48%, rgba(40, 70, 58, 0.26) 0%, transparent 55%),
            linear-gradient(168deg, #040a08 0%, #030a07 42%, #050c0a 100%);
    }
}

.contact-page__hero-shell .works-hero__content {
    flex-shrink: 0;
    left: auto;
    margin: 0 auto;
    max-width: 820px;
    padding: 0;
    position: relative;
    right: auto;
    text-align: center;
    top: auto;
    transform: none;
    width: 100%;
    z-index: 4;
}

.contact-page__hero-shell .works-hero__lede {
    color: rgba(210, 206, 218, 0.78);
}

.contact-page__hero-heading.works-hero__title-block {
    align-items: center;
    margin-bottom: clamp(1.25rem, 3vh, 1.75rem);
    text-align: center;
    width: 100%;
}

.contact-page__headline-line {
    display: block;
    text-align: center;
}

/* Hero CTAs - solid primary + outline secondary (matches site .btn-* patterns) */
.contact-page__hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.65rem, 2vw, 0.95rem);
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(1.5rem, 3.5vh, 2.35rem);
    max-width: 560px;
    width: 100%;
}

.contact-page__hero-cta {
    flex: 1 1 auto;
    min-width: min(240px, 100%);
}

/* Same section title face as works / home heroes (Montserrat + gradient) */
.contact-page__block-intro {
    margin: 0 auto clamp(1.85rem, 4vw, 2.65rem);
    max-width: 720px;
    text-align: center;
}

.contact-page__block-title {
    background: linear-gradient(180deg, #fdfcfa 0%, #e8e4ec 48%, #c8c2d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--uxm-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2.1rem, 5.5vw, 3.35rem);
    font-weight: var(--uxm-hero-heading-weight, 500);
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin: 0 0 clamp(1rem, 2vw, 1.35rem);
}

.contact-page__block-lede {
    color: rgba(210, 206, 218, 0.78);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.12rem);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page__block-title {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        color: #fdfcfa;
    }
}

.contact-calendly__intro {
    padding-left: clamp(14px, 4vw, 28px);
    padding-right: clamp(14px, 4vw, 28px);
}

/* Rotating word - same face + gradient as .works-hero__title-line (nested clip needs explicit styles) */
.contact-page__rotating-word {
    background: linear-gradient(180deg, #fdfcfa 0%, #e8e4ec 48%, #c8c2d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-family: var(--uxm-font-heading, 'Montserrat', sans-serif);
    font-size: inherit;
    font-weight: var(--uxm-hero-heading-weight, 500);
    letter-spacing: -0.045em;
    line-height: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .contact-page__rotating-word {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        color: #f4f2f8;
    }
}

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

/* Section 2 - three steps */
.contact-next {
    background: #03040a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(56px, 8vw, 88px) clamp(20px, 4vw, 48px);
}

.contact-next__container {
    max-width: 1320px;
}

.contact-next__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
}

.contact-next__rule {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0 clamp(12px, 2.5vw, 28px);
    width: 1px;
}

.contact-next__cell {
    flex: 1 1 0;
    max-width: 380px;
    min-width: 0;
    padding: 0 clamp(8px, 2vw, 20px);
    text-align: center;
}

.contact-next__num {
    color: #e8195a;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-bottom: 0.85rem;
}

/* Override global `h3` - fluid type so long lines never letter-stack on narrow phones */
.contact-page .contact-next h3.contact-next__step-title {
    color: #fdfcfa;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.8125rem, 0.55rem + 2.4vw, 1.25rem);
    font-weight: 600;
    hyphens: none;
    letter-spacing: -0.015em;
    line-height: 1.22;
    margin: 0 auto 0.65rem;
    max-width: 22rem;
    overflow-wrap: break-word;
    text-wrap: balance;
    word-break: normal;
}

.contact-next__step-body {
    color: rgba(210, 206, 218, 0.78);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.875rem, 0.82rem + 0.35vw, 0.95rem);
    font-weight: 300;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 26rem;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 767px) {
    .contact-next {
        padding: clamp(40px, 7vw, 64px) clamp(18px, 4vw, 32px);
    }

    .contact-next__row {
        flex-direction: column;
        gap: 0;
    }

    .contact-next__rule {
        height: 1px;
        margin: clamp(14px, 3.5vw, 22px) auto;
        width: min(200px, 60%);
    }

    .contact-next__cell {
        flex: none;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .contact-next__num {
        margin-bottom: 0.55rem;
    }

    .contact-page .contact-next h3.contact-next__step-title {
        font-size: clamp(0.78rem, 0.42rem + 3.6vw, 1.12rem);
        line-height: 1.2;
        margin-bottom: 0.45rem;
        max-width: min(22rem, 100%);
    }

    .contact-next__step-body {
        font-size: clamp(0.84rem, 0.78rem + 0.45vw, 0.92rem);
        max-width: none;
    }
}

/* Section 3 - contact bar */
.contact-bar {
    background: #04050a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(40px, 6vw, 56px) clamp(20px, 4vw, 48px);
}

.contact-bar__container {
    max-width: 1320px;
}

.contact-bar__grid {
    display: grid;
    gap: clamp(28px, 5vw, 40px);
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

@media (max-width: 767px) {
    .contact-bar__grid {
        grid-template-columns: 1fr;
    }
}

.contact-bar__label {
    color: rgba(255, 255, 255, 0.48);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.contact-bar__value {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
}

.contact-bar__value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-bar__value a:hover,
.contact-bar__value a:focus-visible {
    color: #e8195a;
}

.contact-bar__value--stack span {
    display: block;
}

.contact-bar__value--stack span + span {
    margin-top: 0.35rem;
}

/* Calendly embed (below enquiry form; anchor #book-a-call) - same void as page */
.contact-calendly {
    background: #04050a;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    box-sizing: border-box;
    margin: 0;
    padding-bottom: clamp(56px, 9vw, 96px);
    padding-top: clamp(40px, 6vw, 64px);
    scroll-margin-top: 88px;
    width: 100%;
}

/*
 * Wrapper only - stays page-void-coloured so nothing reads as a white Bootstrap “card”.
 * No Container-fluid here (that was punching a pale strip on some breakpoints).
 */
.contact-calendly__embed-wrap {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: min(1040px, 100%);
    padding: clamp(16px, 3.5vw, 28px) clamp(14px, 4vw, 28px) 0;
}

/*
 * Transparent host - only the iframe draws the greige Calendly chrome (via URL colours).
 */
.contact-calendly__embed {
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    isolation: isolate;
    line-height: 0;
    margin: 0;
    max-width: none;
    min-height: min(920px, 92vh);
    min-width: 320px;
    overflow: hidden;
    width: 100%;
}

.contact-calendly__embed .calendly-inline-widget {
    background-color: transparent !important;
    background-image: none !important;
    height: auto !important;
    line-height: 0;
    margin: 0 !important;
    max-width: none !important;
    min-height: min(920px, 92vh);
    overflow: hidden !important;
    padding: 0 !important;
}

.contact-calendly__embed iframe {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 8px;
    display: block;
    height: min(920px, 92vh) !important;
    margin: 0 !important;
    max-width: 100%;
    min-height: min(920px, 92vh);
    vertical-align: top;
    width: 100% !important;
}

@media (max-width: 576px) {
    .contact-calendly__embed,
    .contact-calendly__embed .calendly-inline-widget,
    .contact-calendly__embed iframe {
        min-height: 740px;
    }

    .contact-calendly__embed iframe {
        height: 740px !important;
        min-height: 740px;
    }
}

/* Section - form + bg image */
.contact-page-form-section {
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    overflow: visible;
    padding: clamp(72px, 10vw, 120px) clamp(18px, 4vw, 32px) clamp(96px, 12vw, 140px);
    position: relative;
    scroll-margin-top: 88px;
}

.contact-page-form-section::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.62) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 58%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.contact-form-wide.container-fluid {
    margin-left: auto;
    margin-right: auto;
    max-width: min(1120px, 100%);
    padding-left: clamp(12px, 2.5vw, 28px);
    padding-right: clamp(12px, 2.5vw, 28px);
    position: relative;
    width: 100%;
    z-index: 1;
}

.contact-form-wide__fields {
    margin-top: 0.75rem;
}

#contact-form-data.contact-form--sent .contact-form-wide__fields,
#contact-form-data.contact-form--sent .contact-form__submit-wrap {
    display: none;
}

#contact-form-data.contact-form--sent #result {
    margin: 0;
}

.contact-brief-success {
    background: linear-gradient(145deg, rgba(8, 12, 20, 0.9) 0%, rgba(18, 24, 34, 0.9) 100%);
    border: 1px solid rgba(232, 25, 90, 0.35);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    margin-top: 0.75rem;
    padding: clamp(24px, 4vw, 36px);
    text-align: left;
}

.contact-brief-success__eyebrow {
    color: #e8195a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.contact-brief-success__title {
    color: #fdfcfa;
    font-family: var(--uxm-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: var(--uxm-hero-heading-weight, 500);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 0.9rem;
}

.contact-brief-success__text {
    color: rgba(226, 224, 232, 0.88);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.02rem);
    font-weight: 300;
    line-height: 1.65;
    margin: 0;
}

.contact-brief-success__text + .contact-brief-success__text {
    margin-top: 0.55rem;
}

.contact-form__group {
    margin-bottom: clamp(2rem, 4.5vw, 2.85rem);
    padding-bottom: clamp(1.75rem, 3.5vw, 2.35rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form__group:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-form__section-label {
    color: rgba(255, 255, 255, 0.52);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.3;
    margin: 0 0 1.1rem;
    padding: 0;
    text-transform: uppercase;
}

.contact-form__details-row {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .contact-form__details-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-form__field--full-width {
        grid-column: 1 / -1;
    }
}

.contact-form__field.form-group {
    margin-bottom: 0;
}

.contact-form__field--flush.form-group {
    margin-bottom: 0;
}

.contact-fieldset {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 0;
}

.contact-fieldset--in-group {
    margin-bottom: 0;
}

.contact-fieldset__legend {
    color: rgba(255, 255, 255, 0.52);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    padding: 0;
    text-transform: uppercase;
}

.contact-check-grid {
    display: grid;
    gap: 0.65rem 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
    .contact-check-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.contact-check {
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: flex;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    gap: 0.55rem;
    line-height: 1.3;
    margin: 0;
}

.contact-check input {
    accent-color: #e8195a;
    flex-shrink: 0;
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.contact-budget {
    margin-bottom: 1.5rem;
}

.contact-budget--in-group {
    margin-bottom: 0;
}

.contact-budget__label,
.contact-form__label {
    color: rgba(255, 255, 255, 0.52);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.contact-form__submit-wrap {
    margin-top: clamp(1.75rem, 3vw, 2.25rem);
    padding-top: 0.25rem;
}

.contact-form__submit {
    letter-spacing: 0.04em;
    max-width: 100%;
    text-transform: none;
    width: 100%;
}

.contact-page-form-section .contact-form__submit-wrap {
    padding-left: 0;
    text-align: left;
    width: 100%;
}

.contact-budget__row {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.contact-budget__tick {
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
}

.contact-budget__row input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    flex: 1;
    height: 28px;
    margin: 0;
}

.contact-budget__row input[type='range']::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    height: 4px;
}

.contact-budget__row input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #e8195a;
    border-radius: 50%;
    cursor: pointer;
    height: 16px;
    margin-top: -6px;
    width: 16px;
}

.contact-budget__row input[type='range']::-moz-range-track {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    height: 4px;
}

.contact-budget__row input[type='range']::-moz-range-thumb {
    background: #e8195a;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.contact-budget__output {
    color: #ffffff;
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.65rem;
}

.contact-page-form-section .innovative-contact__button {
    padding-left: 0;
}

/* Brief form: pink focus underline to match sliders, checks, footer CTAs */
.contact-page-form-section .innovative-contact-form .form-control:focus {
    border-bottom-color: rgba(232, 25, 90, 0.9);
    box-shadow: 0 1px 0 0 rgba(232, 25, 90, 0.45);
}

.contact-page-form-section .contact-form__submit.contact_btn:focus-visible {
    outline: 2px solid rgba(232, 25, 90, 0.55);
    outline-offset: 3px;
}
