.talk-through-cta .container {
    max-width: 1200px;
}

/* ----- Two columns: heading + contacts + visual | form ----- */
.talk-through-cta__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .talk-through-cta__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .talk-through-cta__aside {
        position: sticky;
        top: 6rem;
    }
}

/* Intro + CTAs only (e.g. estate agent referrals — no duplicate mortgage enquiry form) */
.talk-through-cta--intro-only .talk-through-cta__grid {
    grid-template-columns: 1fr;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .talk-through-cta--intro-only .talk-through-cta__grid {
        grid-template-columns: 1fr;
    }

    .talk-through-cta--intro-only .talk-through-cta__aside {
        position: static;
        top: auto;
    }
}

.talk-through-cta__figure {
    margin: 0;
}

.talk-through-cta__figure img,
.talk-through-cta__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 18px 50px -12px rgba(15, 23, 42, 0.18);
    object-fit: cover;
    max-height: min(520px, 72vh);
}

@media (max-width: 1023px) {

    .talk-through-cta__figure img,
    .talk-through-cta__img {
        max-height: 280px;
    }
}

/* ----- Form layout rows (markup lives in CF7 — see theme docs / user instructions) ----- */
.talk-through-cta .tt-form-row {
    margin-bottom: 0.625rem;
}

.talk-through-cta .tt-form-row > p {
    margin: 0;
}

.talk-through-cta .tt-form-row--2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 1rem;
}

@media (min-width: 640px) {
    .talk-through-cta .tt-form-row--2 {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/*
 * Form id 6db03bf is also used in contact-newsletter — same row wrappers must stack there.
 */
.contact-newsletter-section .tt-form-row--2 {
    display: block;
}

.contact-newsletter-section .tt-form-row {
    margin-bottom: 0.75rem;
}

.contact-newsletter-section .tt-form-row > p {
    margin: 0;
}

.contact-newsletter-section .tt-form-row--2 > p + p {
    margin-top: 0.5rem;
}

/* ----- Typography & alignment inside card ----- */
.talk-through-cta .talk-through-cta__form-card .wpcf7-form {
    text-align: left;
}

.talk-through-cta .wpcf7-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.talk-through-cta .wpcf7-form .wpcf7-acceptance label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.talk-through-cta .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ----- Fields ----- */
.talk-through-cta .wpcf7-form input[type="text"],
.talk-through-cta .wpcf7-form input[type="email"],
.talk-through-cta .wpcf7-form input[type="tel"],
.talk-through-cta .wpcf7-form select,
.talk-through-cta .wpcf7-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    background-color: #fff;
    margin-top: 0;
    margin-bottom: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.talk-through-cta .wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1.125rem;
    padding-right: 2.5rem;
}

/* CF7 outputs rows="10" by default — explicit height keeps the box compact */
.talk-through-cta .wpcf7-form textarea {
    height: 5rem;
    min-height: 4rem;
    max-height: 16rem;
    resize: vertical;
    overflow-y: auto;
}

.talk-through-cta .wpcf7-form input[type="text"]:focus,
.talk-through-cta .wpcf7-form input[type="email"]:focus,
.talk-through-cta .wpcf7-form input[type="tel"]:focus,
.talk-through-cta .wpcf7-form select:focus,
.talk-through-cta .wpcf7-form textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.talk-through-cta .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
}

/* Rows handle spacing; loose <p> only for acceptance + submit */
.talk-through-cta .wpcf7-form > p {
    margin-top: 0;
    margin-bottom: 0.625rem;
}

.talk-through-cta .wpcf7-form > p:last-of-type {
    margin-bottom: 0;
}

.talk-through-cta .wpcf7-form > p:has(.wpcf7-acceptance) {
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
}

.talk-through-cta .wpcf7-form > p:has(.wpcf7-submit) {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

/* ----- Submit ----- */
.talk-through-cta a,
.talk-through-cta button[type="submit"],
.talk-through-cta .wpcf7-form input[type="submit"] {
    border-radius: 9999px;
}

.talk-through-cta .talk-through-cta__form-card .wpcf7-submit {
    width: 100%;
    cursor: pointer;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
