.kp-wizard {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

.kp-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}
.kp-progress span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.2s ease;
}
.kp-progress span.kp-dot-active,
.kp-progress span.kp-dot-done {
    background: #e90000;
}

.kp-step { display: none; }
.kp-step.kp-step-active { display: block; }

.kp-step h3 {
    font-size: 22px;
    margin: 0 0 6px;
}
.kp-step-hint {
    color: #767676;
    font-size: 14px;
    margin: 0 0 24px;
}

.kp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.kp-card {
    display: block;
    position: relative;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #242424;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.kp-card:hover { border-color: #e90000; }
.kp-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kp-cards-photo {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.kp-card-photo {
    padding: 0 0 14px;
    overflow: hidden;
}
.kp-card-photo .kp-card-icon {
    margin-bottom: 10px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    aspect-ratio: 8 / 5;
}
.kp-card-photo .kp-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kp-card-photo .kp-card-label { padding: 0 12px; }
.kp-cards-island {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 480px) {
    .kp-cards-island { grid-template-columns: 1fr; }
}
.kp-card-small {
    padding: 12px 10px;
    font-size: 14px;
}
.kp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kp-checkbox-compact {
    margin: 0;
    padding: 8px 4px;
    border-radius: 6px;
}
.kp-checkbox-compact:hover { background: #f7f7f7; }
.kp-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.kp-card-label {
    display: block;
}
.kp-card input:checked ~ .kp-card-label {
    color: #e90000;
}

.kp-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.kp-slider-row input[type="range"] {
    flex: 1;
    accent-color: #e90000;
}
.kp-slider-row input[type="number"] {
    width: 84px;
    flex: none;
}
.kp-moot-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e90000;
    color: #fff;
    font-size: 12px;
    margin-right: 6px;
}
.kp-moot-diagram {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.kp-moot-diagram svg { max-width: 220px; height: auto; }
.kp-card:has(input:checked) {
    border-color: #e90000;
    background: #fff5f5;
}

.kp-field { margin-bottom: 18px; }
.kp-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.kp-field input[type="text"],
.kp-field input[type="number"],
.kp-field input[type="tel"],
.kp-field input[type="email"],
.kp-field textarea,
.kp-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.kp-field textarea { resize: vertical; min-height: 90px; }
.kp-inline-cm {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kp-inline-cm input { max-width: 140px; }

.kp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    margin: 14px 0;
}
.kp-checkbox input { margin-top: 3px; }

.kp-photo-drop {
    border: 2px dashed #d5d5d5;
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    color: #767676;
}
.kp-photo-drop:hover { border-color: #e90000; color: #e90000; }
.kp-photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.kp-photo-thumb {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.kp-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.kp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
}
.kp-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}
.kp-btn-primary { background: #e90000; color: #fff; }
.kp-btn-primary:hover { background: #c60000; }
.kp-btn-primary:disabled { background: #e5a3a3; cursor: not-allowed; }
.kp-btn-back { background: transparent; color: #767676; }
.kp-btn-back:hover { color: #242424; }
.kp-btn-back:disabled { visibility: hidden; }

.kp-error {
    color: #c60000;
    font-size: 13.5px;
    margin-top: 8px;
    display: none;
}
.kp-error.kp-error-visible { display: block; }

.kp-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.kp-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.kp-success.kp-success-visible { display: block; }
.kp-success h3 { font-size: 24px; margin-bottom: 12px; }
.kp-success p { color: #545454; font-size: 15px; max-width: 46ch; margin: 0 auto; line-height: 1.6; }

.kp-wizard.kp-submitted .kp-wizard-form { display: none; }
