/*
 * Krambu NDA plugin — frontend styles.
 *
 * Widens are handled by the theme (style.css, WooCommerce page widths block);
 * this file only covers NDA-specific components.
 */

/* Status pills in the Agreements table */
.kn-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.kn-status--success { background: rgba(34, 197, 94, 0.12);  color: #16a34a; }
.kn-status--warning { background: rgba(234, 179, 8, 0.12);  color: #a16207; }
.kn-status--error   { background: rgba(220, 38, 38, 0.12);  color: #b91c1c; }
.kn-status--neutral { background: rgba(100, 116, 139, 0.12); color: #475569; }

.kn-agreements-table { margin-top: 1.5rem; }
.kn-empty { color: #64748b; font-size: 0.95rem; }

/*
 * Success panel rendered in place of the form after a successful submission.
 * No card / container — flows inline with the surrounding section content
 * matching the "How the process works" heading + paragraph above it.
 */
.kn-success {
    text-align: center;
    padding: 1rem 0;
}
.kn-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.kn-success__icon svg {
    width: 28px;
    height: 28px;
}
.kn-success__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--contrast);
    margin: 0 0 0.75rem;
}
.kn-success__lede {
    font-size: 1rem;
    color: var(--wp--preset--color--contrast-muted);
    line-height: 1.6;
    margin: 0 auto 1.5rem;
    max-width: 560px;
}
.kn-success__steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 480px;
    margin: 1.5rem auto 2rem;
    padding: 0;
    list-style: none;
    text-align: left;
}
.kn-success__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--wp--preset--color--contrast-muted);
    line-height: 1.5;
}
.kn-success__step::marker {
    content: none;
}
.kn-success__icon svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}
.kn-success__step-num {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(126, 0, 255, 0.08);
    color: var(--wp--preset--color--accent-primary);
    font-weight: 700;
    font-size: 0.75rem;
}
.kn-success__step strong {
    color: var(--wp--preset--color--contrast);
    font-weight: 600;
}
.kn-success__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.kn-success__button {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.8rem 1.5rem;
    border-radius: var(--wp--custom--border-radius--base, 4px);
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.kn-success__button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-primary) 0%, var(--wp--preset--color--accent-secondary) 100%);
    box-shadow: 0 4px 14px 0 rgba(126, 0, 255, 0.25);
}
.kn-success__button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(126, 0, 255, 0.35);
}
.kn-success__button--ghost {
    color: var(--wp--preset--color--contrast);
    background: transparent;
    border: 1px solid var(--wp--preset--color--border);
}
.kn-success__button--ghost:hover {
    border-color: var(--wp--preset--color--accent-primary);
    color: var(--wp--preset--color--accent-primary);
}

/* Inline error/info notice shown above the form for non-success states */
.krambu-colo-form__notice {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.krambu-colo-form__notice--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #991b1b;
}
.krambu-colo-form__notice--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #14532d;
}
