/* "Contact Page" template only. Self-contained: relies only on the design
   tokens, .container, and .btn defined in custom.css (always loaded). */

.rv {
    opacity: 1;
    transform: none;
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.rv.rv--hidden {
    opacity: 0;
    transform: translateY(26px);
}

/* Hero */
.contact-hero {
    padding: 48px 24px 0;
}
.contact-hero__card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--cx-ink);
}
.contact-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,13,13,.55) 0%, rgba(13,13,13,.85) 100%);
}
.contact-hero__content {
    position: relative;
    max-width: 640px;
    padding: clamp(64px, 9vw, 100px) 32px;
}
.contact-hero__heading {
    margin: 0;
    color: var(--cx-white);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2em;
    font-size: clamp(30px, 4.4vw, 48px);
}
.contact-hero__text {
    margin: 20px 0 0;
    max-width: 56ch;
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 1.7;
}
.contact-hero__note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    line-height: 1.6;
}

/* Form section: info blocks + form card */
.contact-form-section {
    padding: 80px 24px;
}
.contact-form-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
.contact-form-section__grid--form-only {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.contact-info {
    display: grid;
    gap: 20px;
    align-content: start;
}
.contact-info__block {
    border: 1px solid var(--cx-border);
    border-radius: 16px;
    padding: 24px 26px;
}
.contact-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--cx-muted-bg);
    color: var(--cx-accent);
    margin-bottom: 14px;
}
.contact-info__icon svg {
    width: 20px;
    height: 20px;
}
.contact-info__label {
    margin: 0 0 6px;
    color: var(--cx-ink);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
}
.contact-info__value {
    display: block;
    margin: 0;
    color: var(--cx-body);
    font-size: 15px;
    line-height: 1.6;
}
a.contact-info__value:hover {
    color: var(--cx-accent);
}

.contact-form-card {
    width: 100%;
    background: var(--cx-white);
    border: 1px solid var(--cx-border);
    border-radius: 20px;
    padding: 40px;
}
.contact-form-card__heading {
    margin: 0 0 28px;
    color: var(--cx-ink);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(22px, 2.6vw, 28px);
}
.contact-form {
    position: relative;
    overflow: hidden;
}
.contact-form__hp {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.contact-form__field {
    margin-bottom: 18px;
}
.contact-form__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cx-ink);
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    border: 1px solid var(--cx-border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: var(--cx-body-font);
    font-size: 14px;
    color: var(--cx-ink);
    background: var(--cx-white);
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: var(--cx-accent);
    box-shadow: inset 0 0 0 1px var(--cx-accent);
}
.contact-form__field textarea {
    resize: vertical;
}
.contact-form__recaptcha {
    margin-bottom: 18px;
}
.contact-form__response {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
}
.contact-form__response:empty {
    display: none;
}
.contact-form__response--success {
    color: #2e7d46;
}
.contact-form__response--error {
    color: #c0392b;
}
.contact-form__submit {
    width: 100%;
    justify-content: center;
}
.contact-form__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 800px) {
    .contact-form-section__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 28px;
    }
    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* CTA band */
.contact-cta {
    background: var(--cx-ink);
    padding: 72px 24px;
    text-align: center;
}
.contact-cta__inner {
    max-width: 640px;
    margin: 0 auto;
}
.contact-cta__heading {
    margin: 0;
    color: var(--cx-white);
    font-family: var(--cx-heading-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-size: clamp(24px, 3.2vw, 34px);
}
.contact-cta__text {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.7;
}
.contact-cta .btn {
    margin-top: 28px;
}

/* Each section wrapper's own horizontal padding stacks with the nested
   .container's 16px gutter (40px total). On mobile that's excessive, so
   drop the outer padding and rely on .container alone -- same fix already
   applied to the homepage and About page sections. */
@media (max-width: 900px) {
    .contact-hero {
        padding: 24px 0 0;
    }
    .contact-form-section,
    .contact-cta {
        padding-inline: 0;
    }
}
