form#sunshine-enquiry-form {
    scroll-margin-top: 150px;
}

#sunshine-enquiry-form.sun-enquiry-receipt,
body[data-page="contact"] .form-status {
    scroll-margin-top: var(--sun-feedback-offset, 150px);
}

.sun-enquiry-receipt {
    padding: clamp(26px, 4.4vw, 60px);
    border: 1px solid #c7d1c0;
    border-radius: 20px;
    background: #f1f4eb;
    color: #263d2c;
}

.sun-receipt-check {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.sun-receipt-check circle { fill: #dbe6d2; }
.sun-receipt-check path {
    fill: none;
    stroke: #355537;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sun-enquiry-receipt h2 {
    margin: 0 0 12px;
    font-size: clamp(2.15rem, 3.9vw, 3.5rem);
    line-height: 1.06;
    color: #263d2c;
}

.sun-enquiry-receipt p {
    max-width: 41ch;
    margin: 0;
    line-height: 1.55;
    color: #384b3b;
}

.sun-enquiry-receipt a {
    display: inline-block;
    margin-top: 20px;
    padding-block: 9px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .22em;
}

/* Native error redirects target the form immediately after its message. */
.form-status + form#sunshine-enquiry-form {
    scroll-margin-top: calc(150px + 7em);
}

body[data-page="contact"] .form-status {
    padding: 14px 18px;
    border-left: 3px solid #945033;
    background: #faf1e8;
}

.enquiry-form button[aria-disabled="true"] { cursor: progress; }

/* Contact only: a visible, wrapping WhatsApp link next to the existing number. */
.contact-card .sun-contact-whatsapp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .75rem;
    margin-top: .25rem;
    max-width: 100%;
    min-width: 0;
}
.contact-card .sun-contact-whatsapp-actions > a {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.contact-card a.sun-contact-whatsapp-cta {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: .55rem .9rem;
    border: 1px solid #146c43;
    border-radius: 999px;
    background: #146c43;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}
.contact-card a.sun-contact-whatsapp-cta:hover {
    background: #0f5333;
    border-color: #0f5333;
    color: #fff;
}
.contact-card a.sun-contact-whatsapp-cta:focus-visible {
    outline: 2px solid #184733;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .sun-receipt-check path {
        stroke-dasharray: 1;
        animation: sun-draw-receipt .36s ease-out both;
    }
    @keyframes sun-draw-receipt {
        from { stroke-dashoffset: 1; }
        to { stroke-dashoffset: 0; }
    }
}
