/* zaca Forms — gedeelde en form-specifieke stijlen */

/* Honeypot */
.zf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* === Gedeeld === */

.zf-input,
.zsf-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--accent-light)!important;
    border-radius: 1em!important;
    font-size: 16px;
    font-family: inherit;
    color: #12171f;
    transition: border-color 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.zf-input:focus,
.zsf-input:focus {
    outline: none;
    border-color: var(--accent-focus)!important;
    background: var(--wit)!important;
}

.zf-textarea,
.zsf-textarea {
    resize: vertical;
    min-height: 100px;
}

.zf-input.is-invalid,
.zsf-input.is-invalid {
    border-color: #c0392b!important;
    animation: zf-shake 0.3s ease;
}

@keyframes zf-shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* Bevestiging (gedeeld door beide forms) */
.zf-confirm-icon,
.zsf-confirm-icon {
    width: 30px;
    height: 30px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.zf-confirm-icon svg,
.zsf-confirm-icon svg {
    width: 100%;
    height: 100%;
    max-width: 30px;
    max-height: 30px;
}

.zf-confirm-title,
.zsf-confirm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #12171f;
    margin: 0 0 12px;
}

.zf-confirm-body,
.zsf-confirm-body {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
    margin-inline: auto;
}


/* === Contact form === */

.zaca-form {
    margin: 0 auto;
    font-family: inherit;
    z-index: 100000000000000000;
}

.zaca-form .xs-text {
    color: var(--grijs)!important;
}

.zf-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.zf-nav .zf-progress {
    flex: 1;
    margin-bottom: 0;
}

.zf-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}

.zf-back:hover {
    color: var(--accent-focus)!important;
    background: none!important;
}

.zf-back:focus {
    color: var(--accent-focus)!important;
    border: 1px solid var(--accent)!important;
    background: none!important;
}

.zf-back svg {
    width: 14px;
    height: 14px;
}

.zf-progress {
    height: 3px;
    background: var(--accent-soft);
    border-radius: 1em!important;
    margin-bottom: 30px;
    overflow: hidden;
}

.zf-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 1em!important;
    transition: width 0.4s ease;
    width: 0%;
}

.zf-step {
    animation: zf-fade-in 0.35s ease both;
}

@keyframes zf-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zf-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #12171f;
    margin: 0 0 28px;
    line-height: 1.4;
}

.zf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.zf-option {
    padding: 10px 20px;
    border: 1.5px solid var(--accent-light);
    border-radius: 1em!important;
    background: var(--wit);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 22px;
}

.zf-option:hover {
    border-color: var(--accent-focus)!important;
    background: var(--accent-focus)!important;
    color: var(--wit)!important;
}

.zf-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.zf-option.is-selected {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--wit);
}

.zf-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zf-next,
.zf-next-multi,
.zf-submit {
    align-self: flex-start;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--wit);
    border: none;
    border-radius: 1em!important;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.zf-next:hover,
.zf-next-multi:hover,
.zf-submit:hover {
    background: #3741d9;
}

.zf-next:active,
.zf-next-multi:active,
.zf-submit:active {
    transform: scale(0.98);
}

.zf-next-multi:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zf-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.zf-confirm {
    text-align: center;
    padding: 32px 0;
}

.zf-error-msg {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fff2f2;
    border: 1px solid #f5c6c6;
    border-radius: 1em!important;
    color: #c0392b;
    font-size: 0.9rem;
}

.zf-error-msg a {
    color: inherit;
    font-weight: 600;
}

@media (max-width: 600px) {
    .zf-question {
        font-size: 1.1rem;
    }

    .zf-option {
        font-size: 0.9rem;
        padding: 9px 16px;
    }
}


/* === Scan form === */

/* Verborgen GP overlay trigger-button */
#zsf-overlay-trigger {
    display: none;
}

.zsf-cta-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border: 1px solid var(--accent-light);
    padding: .5rem;
    border-radius: 1.5em;
}

.zsf-cta-wrap:hover,
.zsf-cta-wrap:focus {
    border: 1px solid var(--accent);
}

.zsf-cta-wrap:focus-within {
    border: 1px solid var(--accent-light);
}

.zsf-url-input {
    flex: 1;
    min-width: 220px;
    padding: 1rem 2rem!important;
    border: 1px solid var(--accent-light)!important;
    border-radius: 1em!important;
    font-size: 16px;
    font-family: inherit;
    color: var(--zwart, #12171f);
    background: var(--wit)!important;
    outline: none;
    transition: all ease-in 0.15s;
}

.zsf-url-input:focus {
    border-color: var(--accent-focus)!important;
    color: var(--zwart)!important;
}

.zsf-url-input.is-invalid {
    border-color: #e03;
}

.zsf-cta-btn {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--wit)!important;
    border: none;
    border-radius: 1em;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.zsf-cta-btn:hover {
    background: var(--accent-focus);
}

.zsf-cta-btn:active {
    transform: scale(0.98);
}

.zsf-url-error {
    margin: 6px 0;
    font-size: 14px;
    color: #e03;
    text-align: center;
}

@media (max-width: 768px) {
    .zsf-cta-btn {
        width: 100%;
    }
}

.page-id-345 .snelstart .zsf-cta-wrap {
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.page-id-345 .snelstart .zsf-url-input {
    background: var(--accent-soft)!important;
}

.page-id-345 .snelstart .zsf-url-input:focus {
    border-color: var(--accent-focus)!important;
    background-color: var(--wit)!important;
}

.page-id-345 .snelstart .zsf-cta-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent)!important;
}

.page-id-345 .snelstart .zsf-cta-btn:hover {
    background: var(--accent-focus);
    color: var(--wit)!important;
}

.zsf-overlay-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zsf-field {
    display: flex;
    flex-direction: column;
}

.zsf-field-error {
    margin: 6px 0;
    font-size: 14px;
    color: #e03;
}

.zsf-submit {
    align-self: flex-start;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--wit);
    border: none;
    border-radius: 1em!important;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.zsf-submit:hover {
    background: var(--accent-focus);
}

.zsf-submit:active {
    transform: scale(0.98);
}

.zsf-submit:disabled {
    opacity: 0.7;
    pointer-events: none;
}

.zsf-error {
    margin-top: 16px;
    padding: 14px 18px;
    background: #fff2f2;
    border: 1px solid #f5c6c6;
    border-radius: 1em!important;
    font-size: 14px;
    color: #e03;
}

.zsf-error a {
    color: inherit;
    font-weight: 600;
}

.zsf-success {
    text-align: center;
    padding: 32px 0;
}
