/* Haarvisie WhatsApp Redirect — Frontend Styling */

.hv-bedankt-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    text-align: center;
    font-family: var(--awb-typography1-font-family, 'Open Sans', sans-serif);
}

/* Checkmark animatie */
.hv-bedankt-check {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
}

.hv-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #8A7A5A;
    stroke-miterlimit: 10;
    animation: hv-fill 0.4s ease-in-out 0.4s forwards, hv-scale 0.3s ease-in-out 0.9s both;
}

.hv-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #8A7A5A;
    fill: none;
    animation: hv-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hv-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: hv-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes hv-stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes hv-scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

/* Titel */
.hv-bedankt-titel {
    font-size: 28px;
    color: #1C1C18;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Tekst */
.hv-bedankt-tekst {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* WhatsApp knop */
.hv-wa-knop-wrapper {
    margin: 24px 0;
}

.hv-wa-knop {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.hv-wa-knop:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.hv-wa-knop:active {
    transform: translateY(0);
}

.hv-wa-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Alternatief tekst */
.hv-bedankt-alt {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

/* Pulserende animatie op de knop (trekt aandacht) */
@keyframes hv-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hv-wa-knop {
    animation: hv-pulse 2s infinite;
}

.hv-wa-knop:hover {
    animation: none;
}

/* Mobiel */
@media only screen and (max-width: 640px) {
    .hv-bedankt-wrapper {
        padding: 24px 16px;
        margin: 20px auto;
    }

    .hv-bedankt-titel {
        font-size: 22px;
    }

    .hv-wa-knop {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}
