body.page-contact {
    background: linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%);
}

.contact-page {
    position: relative;
    overflow: clip;
    min-height: 100vh;
    padding: 18px 0 88px;
    background:
        radial-gradient(circle at 12% 8%, rgba(86, 140, 215, 0.14), transparent 24%),
        radial-gradient(circle at 86% 70%, rgba(161, 185, 214, 0.18), transparent 28%),
        linear-gradient(rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%);
    background-size: auto, auto, 120px 120px, 120px 120px, auto;
}

.contact-hero {
    padding: clamp(42px, 7vw, 104px) 0 clamp(28px, 5vw, 64px);
}

.contact-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.48fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
}

.contact-hero__title {
    max-width: 880px;
    margin: 14px 0 18px;
    font-family: "Libre Caslon Display", serif;
    font-size: clamp(54px, 8.5vw, 124px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0;
    color: #171512;
}

.contact-hero__lead {
    max-width: 660px;
    margin: 0;
    color: rgba(24, 22, 20, 0.64);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.6;
}

.contact-social h2,
.contact-form__heading h2 {
    margin: 0;
    font-family: "Libre Caslon Display", serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    color: #171512;
}

.contact-social h2,
.contact-form__heading h2 {
    font-size: clamp(34px, 4vw, 56px);
}

.contact-social {
    display: grid;
    gap: 16px;
}

.contact-social p {
    margin: 0;
    color: rgba(24, 22, 20, 0.62);
    line-height: 1.6;
}

.contact-social__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
}

.contact-social__logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #171512;
    box-shadow: none;
    transition: transform 180ms ease, opacity 180ms ease;
}

.contact-social__logo:hover {
    opacity: 0.72;
    transform: translateY(-2px);
}

.contact-social__logo svg {
    width: 34px;
    height: 34px;
}

.contact-social__logo--instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.contact-social__logo--youtube svg {
    width: 40px;
    fill: currentColor;
}

.contact-social__logo--youtube svg path:last-child {
    fill: #ffffff;
}

.contact-social--hero {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(24, 22, 20, 0.12);
    border-radius: 8px;
    background: rgba(246, 250, 254, 0.68);
    box-shadow: 0 24px 80px rgba(47, 67, 93, 0.1);
    backdrop-filter: blur(18px);
}

.contact-form-section {
    padding: 0 0 clamp(38px, 6vw, 86px);
}

.contact-form-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.contact-form {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(24, 22, 20, 0.12);
    border-radius: 8px;
    background: rgba(246, 250, 254, 0.78);
    box-shadow: 0 24px 80px rgba(47, 67, 93, 0.12);
    backdrop-filter: blur(18px);
}

.contact-form__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 28px;
}

.contact-form__heading p {
    max-width: 34ch;
    margin: 0;
    color: rgba(24, 22, 20, 0.58);
    line-height: 1.55;
}

.contact-alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.contact-alert--success {
    border: 1px solid rgba(50, 118, 75, 0.22);
    color: #235c38;
    background: rgba(92, 170, 114, 0.14);
}

.contact-alert--error {
    border: 1px solid rgba(151, 45, 35, 0.22);
    color: #7d281f;
    background: rgba(204, 70, 56, 0.12);
}

.contact-alert p {
    margin: 0;
}

.contact-alert p + p {
    margin-top: 6px;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label span {
    color: rgba(24, 22, 20, 0.54);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(24, 22, 20, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: #171512;
    outline: 0;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input,
.contact-form select {
    min-height: 52px;
    padding: 0 15px;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
    padding: 15px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(48, 70, 109, 0.44);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 0 4px rgba(48, 70, 109, 0.09);
}

.contact-form__message {
    grid-column: 1 / -1;
}

.contact-form__submit {
    margin-top: 24px;
}

@media (max-width: 980px) {
    .contact-hero__inner,
    .contact-form__heading {
        grid-template-columns: 1fr;
    }

    .contact-hero__inner {
        align-items: start;
    }

    .contact-form__heading {
        display: grid;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .contact-page {
        padding-top: 14px;
        background-size: auto, auto, 82px 82px, 82px 82px, auto;
    }

    .contact-hero {
        padding-top: 34px;
    }

    .contact-social__actions,
    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 22px;
    }
}

/* Restore the same grid background used on the wallpapers page. */
body.page-contact {
    background: linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%) !important;
}

body.page-contact .contact-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(86, 140, 215, 0.14), transparent 24%),
        radial-gradient(circle at 88% 62%, rgba(161, 185, 214, 0.18), transparent 28%),
        linear-gradient(rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 22, 20, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, #f6fafe 0%, #edf4fb 100%) !important;
    background-size: auto, auto, 120px 120px, 120px 120px, auto !important;
}

/* Client revision: every page background is plain white, no grid. */
body.page-contact,
body.page-contact main,
body.page-contact .contact-page,
body.page-contact .contact-hero,
body.page-contact .contact-form-section {
    background: #ffffff !important;
    background-image: none !important;
}

body.page-contact .contact-page::before,
body.page-contact .contact-page::after,
body.page-contact .contact-hero::before,
body.page-contact .contact-hero::after {
    content: none !important;
    background: none !important;
    background-image: none !important;
}
