/* Freystil Lead Download – Frontend Styles */

.fld-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #111;
    color: #fff;
    transition: background .15s ease, transform .1s ease;
    font-family: inherit;
}
.fld-btn:hover { background: #333; }
.fld-btn:active { transform: scale(.98); }

/* Modal */
.fld-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
}
.fld-modal.is-open { display: flex; }

.fld-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fld-fade-in .2s ease;
}

.fld-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    padding: 32px 28px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: fld-pop-in .25s cubic-bezier(.2,.9,.3,1.1);
    max-height: 90vh;
    overflow-y: auto;
    color: #222;
}

.fld-modal .fld-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px !important;
    height: 28px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
    color: #999 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.fld-modal .fld-modal-close:hover,
.fld-modal .fld-modal-close:focus {
    color: #333 !important;
    background: rgba(0,0,0,0.06) !important;
    outline: none;
}

.fld-modal-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.fld-modal-description {
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.fld-form { display: block; }

.fld-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.fld-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.fld-input:focus {
    outline: none;
    border-color: #111;
    background: #fff;
}

.fld-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 20px;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    cursor: pointer;
}
.fld-consent input[type="checkbox"] {
    margin: 3px 0 0;
    flex-shrink: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}
.fld-consent a { color: #111; text-decoration: underline; }
.fld-consent a:hover { text-decoration: none; }

/* Text-only mode: no checkbox, dezenter Hinweis nach Submit-Button passt besser */
.fld-consent.fld-consent-textonly {
    cursor: default;
    font-size: 12px;
    color: #888;
    margin: 14px 0 6px;
}
.fld-consent.fld-consent-textonly input[type="checkbox"] { display: none; }

.fld-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    font-family: inherit;
}
.fld-submit:hover:not(:disabled) { background: #333; }
.fld-submit:disabled { opacity: .6; cursor: wait; }

.fld-error {
    display: none;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #fee;
    border-left: 3px solid #c33;
    color: #a22;
    font-size: 14px;
    border-radius: 4px;
}

.fld-success {
    display: none;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #efe;
    border-left: 3px solid #2a2;
    color: #272;
    font-size: 14px;
    border-radius: 4px;
}

.fld-fallback {
    display: none;
    margin: 10px 0 0;
    text-align: center;
    font-size: 13px;
}
.fld-fallback a { color: #666; }
.fld-fallback a:hover { color: #111; }

/* Honeypot — hidden from humans but visible to bots */
.fld-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Prevent body scroll when modal open */
body.fld-modal-open { overflow: hidden; }

@keyframes fld-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fld-pop-in {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile */
@media (max-width: 520px) {
    .fld-modal { padding: 12px; }
    .fld-modal-dialog { padding: 26px 20px 22px; border-radius: 10px; }
    .fld-modal-title { font-size: 19px; }
    .fld-input { font-size: 16px; } /* prevent iOS zoom */
}
