/* ── Showpower Contact Form ─────────────────────────────────────────────── */

.sp-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
}

/* Honeypot verbergen */
.sp-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ── Veldgroepen ─────────────────────────────────────────────────────────── */

.sp-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .sp-field-group {
        grid-template-columns: 1fr;
    }
}

.sp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* ── Labels ──────────────────────────────────────────────────────────────── */

.sp-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.sp-required {
    color: #4ade80;
    margin-left: 2px;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */

.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #ffffff;
    font-size: 15px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.sp-field input[type="text"]::placeholder,
.sp-field input[type="email"]::placeholder,
.sp-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.sp-field input[type="text"]:focus,
.sp-field input[type="email"]:focus,
.sp-field textarea:focus {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.04);
}

.sp-field input.sp-invalid,
.sp-field textarea.sp-invalid {
    border-color: rgba(239, 68, 68, 0.6);
}

.sp-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* ── Foutmelding per veld ─────────────────────────────────────────────────── */

.sp-field-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    min-height: 16px;
    display: block;
}

/* ── Consent checkbox ────────────────────────────────────────────────────── */

.sp-consent {
    margin-bottom: 28px;
}

.sp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: normal !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5;
}

.sp-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sp-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 1px;
    transition: all 0.15s ease;
}

.sp-checkbox-label input:checked ~ .sp-checkmark {
    background: #4ade80;
    border-color: #4ade80;
}

.sp-checkbox-label input:checked ~ .sp-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #000;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* ── Turnstile (invisible mode — geen zichtbare widget) ──────────────────── */

.sp-turnstile {
    display: none;
}

/* ── Submit knop ─────────────────────────────────────────────────────────── */

.sp-form-wrap .sp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(to right, rgb(78, 175, 105), rgb(56, 124, 75));
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.sp-form-wrap .sp-submit-btn:hover {
    filter: brightness(1.1);
}

.sp-form-wrap .sp-submit-btn:active {
    filter: brightness(0.9);
}

.sp-form-wrap .sp-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Vliegtuig icoon */
.sp-form-wrap .sp-btn-icon {
    display: flex;
    align-items: center;
    line-height: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
}

.sp-form-wrap .sp-btn-icon svg {
    width: 15px !important;
    height: 15px !important;
}

.sp-form-wrap .sp-submit-btn:hover .sp-btn-icon {
    transform: translateX(2px) translateY(-2px);
}

/* Vliegt weg bij versturen */
.sp-form-wrap .sp-submit-btn.sending .sp-btn-icon {
    transform: translateX(120px) translateY(-120px) rotate(15deg);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.6, 1),
                opacity 0.4s ease 0.15s;
}

/* Tekst verdwijnt mee */
.sp-form-wrap .sp-btn-text {
    transition: opacity 0.2s ease;
}

.sp-form-wrap .sp-submit-btn.sending .sp-btn-text {
    opacity: 0;
}

/* Loader spinner */
.sp-form-wrap .sp-btn-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: sp-spin 0.7s linear infinite;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sp-form-wrap .sp-submit-btn.loading .sp-btn-loader {
    display: block;
}

@keyframes sp-spin {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Sent state */
.sp-form-wrap .sp-submit-btn.sent {
    color: #ffffff !important;
}

.sp-form-wrap .sp-submit-btn.sent .sp-btn-text {
    opacity: 1;
}

/* ── Formulier-brede melding ─────────────────────────────────────────────── */

.sp-form-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.sp-form-message.success {
    display: block;
    color: #ffffff;
}

.sp-form-message.error {
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: block;
}

/* Success inhoud */
.sp-success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.sp-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid rgba(74, 222, 128, 0.5);
    flex-shrink: 0;
}

.sp-success-icon svg {
    display: block;
}

.sp-success-title {
    font-family: Archia, sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.05;
    margin: 0;
}

.sp-success-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

/* ── Cloudflare credit ────────────────────────────────────────────────────── */

.sp-cf-credit {
    margin-top: 500px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.06em;
}

.sp-form-message.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    display: block;
}
