/* ==========================================================================
   Kromdraai Blomme — the thank-you page.

   The end of the enquiry: a quiet split band, the words on the left and a
   photograph from the farm on the right, in the same language as the gallery
   and story pages.
   ========================================================================== */

.kb-thankyou {
    position: relative;
    overflow: hidden;
    background: var(--kb-ivory);
}

.kb-thankyou__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: stretch;
    min-height: min(72vh, 620px);
}

.kb-thankyou__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3.5vw, 3.5rem) clamp(3rem, 6vw, 5.5rem)
        var(--kb-gutter);
    box-sizing: border-box;
}

.kb-thankyou__panel .kb-eyebrow {
    color: var(--kb-olive);
}

.kb-thankyou__title {
    font-family: var(--kb-font-display);
    font-size: var(--kb-fs-h2);
    font-weight: 300;
    line-height: 1.08;
    color: var(--kb-forest);
    margin: 0.8rem 0 0;
    max-width: 16ch;
    text-wrap: balance;
}

.kb-thankyou__rule {
    display: block;
    width: 62px;
    height: 1px;
    background: var(--kb-gold);
    opacity: 0.55;
    margin: 1.2rem 0 1.1rem;
}

.kb-thankyou__script {
    font-family: var(--kb-font-script);
    font-size: 1.35rem;
    color: var(--kb-gold);
    margin: 0 0 1rem;
}

.kb-thankyou__lead {
    font-size: var(--kb-fs-lead);
    line-height: 1.75;
    color: var(--kb-ink-soft);
    max-width: 44ch;
    margin: 0;
}

.kb-thankyou__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-top: 2rem;
}

.kb-thankyou__media {
    position: relative;
    overflow: hidden;
    background: var(--kb-parchment);
}

.kb-thankyou__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   The notice that is shown when an enquiry could not be sent.
   -------------------------------------------------------------------------- */
.kb-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
    padding: 1rem 1.2rem;
    background: rgba(201, 156, 136, 0.16);
    border-left: 3px solid var(--kb-rose);
    color: var(--kb-ivory);
    font-size: 0.92rem;
    line-height: 1.6;
}

.kb-notice svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--kb-rose);
}

.kb-enquire__notice-link {
    color: var(--kb-ivory);
    text-decoration: none;
    border-bottom: 1px solid rgba(247, 245, 239, 0.55);
}

.kb-enquire__notice-link:hover,
.kb-enquire__notice-link:focus-visible {
    border-bottom-color: var(--kb-ivory);
}

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .kb-thankyou__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .kb-thankyou__panel {
        padding: clamp(2.5rem, 8vw, 4rem) var(--kb-gutter);
    }

    .kb-thankyou__media {
        height: 300px;
    }
}
