/* Contactform engine - basis-styling.
   Bewust neutraal en compact. Een site mag dit overschrijven of aanvullen
   met eigen CSS; de class-namen zijn met cf- geprefixed om botsingen te
   voorkomen. */

.cf-app {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.5;
}

.cf-title {
    margin-bottom: .4em;
}

.cf-intro {
    margin: .4em 0;
}

.cf-select-label {
    font-size: 16px;
    margin-top: 1.2em;
    margin-bottom: .4em;
}

.cf-select {
    font-size: 16px;
    padding: 8px 10px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
}

/* Vrij-tekst zoekbox + suggesties */
.cf-help {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
}
.cf-suggestions { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-sug-label { width: 100%; margin: 0 0 2px; font-size: 13px; color: #666; }
.cf-sug {
    font-size: 14px;
    padding: 7px 13px;
    border: 1px solid #cdddd2;
    background: #f1faf4;
    color: #225a2e;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}
.cf-sug:hover { background: #e3f4ea; }

/* Artikel-suggesties (links naar happyhealthy.nl) */
.cf-articles { margin: 12px 0 0; }
.cf-art-label { margin: 0 0 6px; font-size: 13px; color: #666; }
.cf-art-list { list-style: none; margin: 0; padding: 0; }
.cf-art-list li { margin: 0 0 5px; }
.cf-art-link {
    display: inline-block;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.cf-art-link:hover { opacity: .8; }

.cf-or-choose { margin: 36px 0 8px; }

.cf-info {
    margin: 18px 0;
    padding: 0;
}

.cf-info ul,
.cf-info ol {
    margin: .4em 0 .8em 1.2em;
}

.cf-form {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 6px;
}

.cf-field {
    margin: 0 0 14px;
}

.cf-field label {
    display: inline-block;
    margin-bottom: 4px;
}

.cf-req {
    color: #c0392b;
}

.cf-note {
    font-size: 13.5px;
    color: #666;
}

.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
}

.cf-form textarea {
    resize: vertical;
    min-height: 120px;
}

.cf-submit {
    font-size: 15px;
    padding: 10px 18px;
    cursor: pointer;
    border: 0;
    border-radius: 4px;
    background: #225a2e;
    color: #fff;
}

.cf-submit:hover {
    background: #1b4a26;
}

.cf-submit:disabled {
    opacity: .6;
    cursor: default;
}

.cf-required-note,
.cf-response-note {
    font-size: 13px;
    color: #555;
    margin: 6px 0 0;
}

.cf-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #a33;
}

.cf-success {
    margin: 24px 0;
    padding: 22px 18px;
    background: #eafaf0;
    border: 1px solid #b7e4c7;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

/* Grote groene bevestigingsvink */
.cf-check {
    display: block;
    width: 64px; height: 64px;
    margin: 4px auto 16px;
    border-radius: 50%;
    background: #2e9e4f;
    position: relative;
    animation: cf-check-pop .35s ease-out;
}
.cf-check::after {
    content: '';
    position: absolute;
    left: 23px; top: 13px;
    width: 13px; height: 28px;
    border: solid #fff;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
}
@keyframes cf-check-pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* reCAPTCHA v3: badge verbergen (de notitie hieronder vermeldt reCAPTCHA, zoals Google vereist) */
.grecaptcha-badge { visibility: hidden !important; }
.cf-recaptcha-note { font-size: 10.5px; line-height: 1.4; color: #9aa0b0; margin: 18px 0 0; }
.cf-recaptcha-note a { color: #8a90a6; text-decoration: underline; }

/* E-mailcorrectie-suggestie ('Bedoelde je ...?') */
.cf-email-suggest { margin: 6px 0 0; font-size: 13px; color: #9a6300; }
.cf-email-suggest-link { font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---- Afmelden-lidmaatschap widget ---- */
.cf-afm-box {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    border-radius: 6px;
}
.cf-afm-legend { margin: 0 0 6px; }
.cf-afm-choices { margin: 0 0 14px; }
.cf-afm-choices label { margin-right: 18px; cursor: pointer; }
.cf-afm-field { margin: 0 0 12px; }
.cf-afm-field small { color: #666; font-size: 12px; }
.cf-afmelden input[type="text"],
.cf-afmelden input[type="email"],
.cf-afmelden textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
}
.cf-afm-ref-prefix { font-weight: 600; margin-right: 4px; }
.cf-afmelden input#cf-afm-reference { width: calc(100% - 28px); display: inline-block; }
.cf-afm-actions { margin: 12px 0 0; }

.cf-afm-results { margin: 20px 0; }
.cf-afm-results-title { margin: 0 0 10px; }
.cf-afm-list { display: flex; flex-direction: column; gap: 10px; }
.cf-afm-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.cf-afm-item-disabled { opacity: .7; cursor: default; background: #fafafa; }
.cf-afm-item input[type="checkbox"] { margin-top: 3px; }
.cf-afm-item-body { display: flex; flex-direction: column; gap: 2px; }
.cf-afm-item-name { font-weight: 600; }
.cf-afm-item-meta { font-size: 12px; color: #777; }
.cf-afm-status {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eee;
    color: #555;
}
.cf-afm-status-active { background: #e3f6e8; color: #237a3a; }
.cf-afm-status-to-be-cancelled,
.cf-afm-status-processing { background: #fff3e0; color: #9a6300; }
.cf-afm-status-cancelled,
.cf-afm-status-inactive,
.cf-afm-status-completed { background: #f0f0f0; color: #777; }
.cf-afm-item-note { margin-top: 4px; font-size: 12px; color: #777; }
.cf-afm-all { display: block; margin: 14px 0 0; cursor: pointer; }
.cf-afm-note { margin: 12px 0 0; color: #555; }
.cf-afm-finish { margin-top: 18px; }

/* App-inlogcode widget */
.cf-inlogcode input[type="email"] {
    width: 100%; box-sizing: border-box; padding: 9px 10px; font-size: 15px;
    border: 1px solid #bbb; border-radius: 4px; background: #fff;
}
.cf-ic-result { margin: 14px 0 0; }
.cf-ic-code {
    display: inline-block;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 1px;
    background: #eafaf0;
    border: 1px solid #b7e4c7;
    border-radius: 6px;
    padding: 4px 12px;
    color: #225a2e;
}
.cf-ic-note { font-size: 13px; color: #777; margin: 8px 0 0; }

/* Retentie-stappen */
.cf-afm-step { margin: 20px 0; padding: 16px 18px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.cf-afm-pausebtns { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-afm-green { background: #2e9e4f; }
.cf-afm-green:hover { background: #27873f; }
.cf-afm-orange { background: #e8770c; }
.cf-afm-orange:hover { background: #cf6a0a; }
.cf-afm-link-muted { color: #a33 !important; font-size: 15px; text-decoration: underline; }
.cf-afm-offer { border-color: #b7e4c7; background: #f1fbf4; }
.cf-afm-offer-lead { font-size: 1.05rem; }

/* 'Recent abonnee'-stap: veelvoorkomende issues vooraf */
.cf-afm-recent { background: #fff; }
.cf-afm-recent-lead { margin: 0 0 6px; }
.cf-afm-issue {
    margin: 14px 0 0;
    padding: 14px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fafafa;
}
.cf-afm-issue h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 600;
    color: #1b2a5e;
}
.cf-afm-issue p { margin: 0 0 8px; }
.cf-afm-issue p:last-child { margin-bottom: 0; }
.cf-afm-recent #cf-afm-recent-stop { display: inline-block; margin-top: 18px; }
.cf-afm-offer-yes {
    display: inline-block;
    background: #2e9e4f;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.35;
}
.cf-afm-offer-yes:hover { background: #27873f; }

.cf-afm-loading { display: flex; align-items: center; gap: 10px; color: #555; margin: 16px 0; }
.cf-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid #ccc;
    border-top-color: #225a2e;
    border-radius: 50%;
    animation: cf-spin 0.7s linear infinite;
    flex: 0 0 auto;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }
