/*
 * Thank You page — 2026
 * Template: page-thank-you.php
 * Font: Montserrat (loaded globally)
 * Accent: #4739C2
 */

.ty-page {
    min-height: calc(100svh - 80px);
    background-color: #F4F2ED;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 48px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.ty-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
}

/* ── Text side ── */

.ty-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ty-badge {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.ty-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ty-heading {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #111111;
    margin: 0;
}

.ty-subheading {
    font-size: 20px;
    font-weight: 600;
    color: #4739C2;
    margin: 0;
    line-height: 1.4;
}

.ty-body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #3A3A3A;
    margin: 0;
    max-width: 48ch;
}

.ty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 100px;
    background: #4739C2;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 32px;
    margin-top: 8px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.ty-cta:hover {
    background: #3b2fa8;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(71, 57, 194, 0.35);
}

/* ── Image side ── */

.ty-image-wrap {
    flex: 0 0 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.ty-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* WordPress may wrap in <picture> */
.ty-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ty-image-wrap picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Tablet ── */

@media (max-width: 1024px) {
    .ty-inner {
        gap: 56px;
    }
    .ty-image-wrap {
        flex: 0 0 340px;
    }
    .ty-heading {
        font-size: 40px;
    }
}

/* ── Mobile ── */

@media (max-width: 767px) {
    .ty-page {
        padding: 56px 24px;
        align-items: flex-start;
    }
    .ty-inner {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .ty-image-wrap {
        flex: none;
        width: 100%;
        border-radius: 16px;
    }
    .ty-heading {
        font-size: 32px;
    }
    .ty-body {
        font-size: 15px;
    }
    .ty-cta {
        width: 100%;
        justify-content: center;
    }
}
