/* KFZ-Schadenmeldung — Frontend CSS v2.1 (mobile overflow fix) */
.kfz-sm-wrap *,.kfz-sm-wrap *::before,.kfz-sm-wrap *::after{box-sizing:border-box}
.kfz-sm-wrap{max-width:960px;margin:40px auto 0;font-family:'Helvetica Neue',Arial,sans-serif;font-size:15px;color:#333;line-height:1.5}
.kfz-sm-message{padding:28px 32px;border-radius:10px;text-align:center;margin-bottom:32px}
.kfz-sm-success{background:#e8f9ef;border:1.5px solid #28a368;color:#1a5c35;margin-top:40px}
.kfz-sm-error{background:#fff8e6;border:1.5px solid #e6a817;color:#7a4f00}
.kfz-sm-msg-icon{font-size:48px;margin-bottom:12px;line-height:1}
.kfz-sm-message h3{margin:0 0 10px;font-size:20px;font-weight:700}
.kfz-sm-message p{margin:0 0 16px;font-size:15px}
.kfz-sm-message a{color:#2d6a9f;text-decoration:underline}
.kfz-sm-form{background:#fff;border:1px solid #e0e6ee;border-radius:10px;overflow:hidden;box-shadow:0 2px 20px rgba(0,0,0,.06)}
.kfz-sm-section{padding:28px 32px}
.kfz-sm-section-title{font-size:17px;font-weight:700;color:#1a3a5c;margin:0 0 22px;padding-bottom:10px;border-bottom:2px solid #e0e6ee}
.kfz-sm-divider{border:none;border-top:1px solid #e0e6ee;margin:0}
/* Single 6-column grid — all rows use the same grid, fields span N cols */
.kfz-sm-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 20px;margin-bottom:18px;align-items:start}
.kfz-sm-field-wrap{min-width:0}
.kfz-sm-field{min-width:0}
.kfz-sm-field input,.kfz-sm-field select,.kfz-sm-field textarea{max-width:100%}
.kfz-sm-grid:last-child{margin-bottom:0}
/* Span classes: full=6cols, half=3cols, third=2cols */
.kfz-sm-span-full{grid-column:span 6}
.kfz-sm-span-half{grid-column:span 3}
.kfz-sm-span-third{grid-column:span 2}
/* Legacy compat */
.kfz-sm-grid-1,.kfz-sm-grid-2,.kfz-sm-grid-3{grid-template-columns:repeat(6,1fr)}
.kfz-sm-col-1{grid-template-columns:1fr}
.kfz-sm-col-2{grid-template-columns:1fr 1fr}
.kfz-sm-col-3{grid-template-columns:1fr 1fr 1fr}
.kfz-sm-field{display:flex;flex-direction:column;gap:6px}
.kfz-sm-field label{font-weight:600;font-size:13px;color:#444;text-transform:uppercase;letter-spacing:.4px}
.kfz-sm-field input[type=text],.kfz-sm-field input[type=email],.kfz-sm-field input[type=tel],.kfz-sm-field input[type=number],.kfz-sm-field input[type=date],.kfz-sm-field select,.kfz-sm-field textarea{width:100%;padding:10px 14px;border:1.5px solid #d0d7e3;border-radius:6px;font-size:14px;color:#222;background:#f9fafc;transition:border-color .2s,box-shadow .2s;outline:none;appearance:none;-webkit-appearance:none}
.kfz-sm-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}
.kfz-sm-field input:focus,.kfz-sm-field select:focus,.kfz-sm-field textarea:focus{border-color:#2d6a9f;background:#fff;box-shadow:0 0 0 3px rgba(45,106,159,.12)}
.kfz-sm-field input.kfz-sm-error-field,.kfz-sm-field select.kfz-sm-error-field{border-color:#e05050;background:#fff8f8}
.kfz-sm-field textarea{resize:vertical;min-height:120px}
.req{color:#e05050}
.kfz-sm-hint{font-size:12px;color:#888;font-weight:400;text-transform:none}
.kfz-sm-dropzone{border:2px dashed #b0bfcf;border-radius:8px;padding:32px 20px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s;background:#f9fafc}
.kfz-sm-dropzone:hover,.kfz-sm-dropzone.dragover{border-color:#2d6a9f;background:#f0f7ff}
.kfz-sm-dropzone-icon{font-size:36px;display:block;margin-bottom:10px}
.kfz-sm-dropzone p{margin:0;font-size:14px;color:#e67e22;font-weight:600}
.kfz-sm-preview-list{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
.kfz-sm-preview-item{display:flex;align-items:center;gap:8px;background:#f0f4f8;border:1px solid #d0d7e3;border-radius:6px;padding:6px 12px;font-size:13px;color:#444}
.kfz-sm-remove-file{cursor:pointer;color:#e05050;font-weight:700;font-size:16px;line-height:1;margin-left:4px}
.kfz-sm-checkbox-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-weight:400!important;text-transform:none!important;letter-spacing:0!important;font-size:14px!important;color:#333!important}
.kfz-sm-checkbox-label a{color:#2d6a9f!important;text-decoration:underline!important}
.kfz-sm-checkbox-label a:hover{color:#1a3a5c!important}
.kfz-sm-checkbox-label input[type=checkbox]{margin-top:2px;flex-shrink:0;width:18px;height:18px;accent-color:#2d6a9f;cursor:pointer}
.kfz-sm-error-hint{font-size:13px;color:#e05050!important;margin:4px 0 0!important}
.kfz-sm-section-footer{background:#f8fafc;border-top:1px solid #e0e6ee}
.kfz-sm-captcha-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:20px}
.kfz-sm-captcha-field{display:flex;align-items:center;gap:10px;flex-direction:row!important}
.kfz-sm-captcha-field label{font-size:18px!important;font-weight:700!important;color:#222!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap}
.kfz-sm-captcha-input{width:90px!important;height:44px!important;padding:10px 14px!important;font-size:16px!important;font-weight:600!important;text-align:center!important;border:1.5px solid #d8dde8!important;border-radius:6px!important;background:#f9fafc!important;-moz-appearance:textfield!important;appearance:textfield!important}
.kfz-sm-captcha-input::-webkit-outer-spin-button,
.kfz-sm-captcha-input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}
.kfz-sm-captcha-input:focus{border-color:#2d6a9f!important;box-shadow:0 0 0 3px rgba(45,106,159,.12)!important;outline:none!important}
.kfz-sm-submit-field{flex-direction:row!important;align-items:center}
.kfz-sm-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border-radius:6px;border:2px solid transparent;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s,transform .1s}
.kfz-sm-btn:active{transform:translateY(1px)}
.kfz-sm-btn-primary{background:#1a3a5c;color:#fff;border-color:#1a3a5c}
.kfz-sm-btn-primary:hover{background:#2d6a9f;border-color:#2d6a9f}
.kfz-sm-btn-primary:disabled{background:#aaa;border-color:#aaa;cursor:not-allowed}
.kfz-sm-btn-secondary{background:#fff;color:#1a3a5c;border-color:#1a3a5c;margin-top:12px}
.kfz-sm-honeypot{position:absolute!important;left:auto;top:auto;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}
#kfz-sm-global-error{background:#fff0f0;border:1.5px solid #e05050;border-radius:6px;padding:12px 18px;font-size:14px;color:#c00;margin-bottom:16px}
@media(max-width:768px){.kfz-sm-section{padding:20px 18px}.kfz-sm-grid{grid-template-columns:minmax(0,1fr)}.kfz-sm-span-full,.kfz-sm-span-half,.kfz-sm-span-third{grid-column:span 1}.kfz-sm-captcha-row{flex-direction:column;align-items:flex-start}.kfz-sm-btn-primary{width:100%;justify-content:center}.kfz-sm-field input,.kfz-sm-field select,.kfz-sm-field textarea{font-size:16px}}

/* OneSystem credit line */
.kfz-sm-credit {
    text-align: right;
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0;
    padding: 0;
}
.kfz-sm-credit a {
    color: #bbb;
    text-decoration: none;
    transition: color .15s;
}
.kfz-sm-credit a:hover { color: #2d6a9f; }

/* ── Frontend Toast ───────────────────────────────────────── */
.kfz-sm-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1a3a5c;
    color: #fff;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    z-index: 999999;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    box-sizing: border-box;
    max-width: min(92vw, 420px);
    white-space: normal;
    text-align: center;
    word-break: break-word;
    pointer-events: none;
}
.kfz-sm-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.kfz-sm-toast--error   { background: #c0392b; }
.kfz-sm-toast--success { background: #1a7a4a; }
.kfz-sm-toast--info    { background: #1a3a5c; }

/* Form heading above wrap */
.kfz-sm-form-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #2d6a9f;
}

/* ── Success Overlay Modal ────────────────────────────────── */
#kfz-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
    padding: 20px;
}
#kfz-success-overlay.visible { opacity: 1; }

#kfz-success-modal {
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: translateY(24px);
    transition: transform .35s ease;
}
#kfz-success-overlay.visible #kfz-success-modal {
    transform: translateY(0);
}

#kfz-success-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
#kfz-success-close:hover { color: #333; background: #f0f0f0; }

.kfz-success-icon {
    font-size: 52px;
    color: #28a368;
    line-height: 1;
    margin-bottom: 16px;
}

#kfz-success-modal h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
}

#kfz-success-modal p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}
#kfz-success-modal p:last-of-type { margin-bottom: 0; }

#kfz-success-bar {
    margin-top: 24px;
    height: 4px;
    background: #e8f9ef;
    border-radius: 4px;
    overflow: hidden;
}
#kfz-success-bar-inner {
    height: 100%;
    width: 0%;
    background: #28a368;
    border-radius: 4px;
}

@media (max-width: 520px) {
    #kfz-success-modal { padding: 32px 20px 22px; }
    #kfz-success-modal h3 { font-size: 18px; }
}
