/* KWEST dynamic forms: shared styles for DEFCON 3/4/5. */

.kwest-form-defcon5 .kwest-input-label,
.kwest-form-defcon3 .kwest-file-label {
    display: block;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.9rem;
}

.kwest-form-defcon4 .kwest-input-headline {
    min-height: 8rem;
}

.kwest-form-tile .kwest-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kwest-form-tile .kwest-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.kwest-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.kwest-section-hint {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0 0 0.6rem 0;
}

.kwest-hp,
.kwest-hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kwest-submit.kwest-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.kwest-submit.kwest-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: kwest-spin 0.8s linear infinite;
}

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

.kwest-success-box.hidden,
.kwest-status.hidden {
    display: none;
}

.kwest-zett-result {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.kwest-zett-result a {
    word-break: break-all;
}
