/* Konektor Public — embed & shortcode styles */

/* ── Reset dasar untuk container embed ─────────────────────────────────── */
.konektor-embed-wrap *,
.konektor-embed-wrap *::before,
.konektor-embed-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Wrapper embed (di-inject oleh konektor-embed.js ke elemen target) ── */
.konektor-embed-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

/* ── Card / box form ────────────────────────────────────────────────────── */
.knk-embed-card {
    width: 100%;
    border-radius: 12px;
    padding: 28px 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.knk-embed-store   { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; text-align: center; margin-bottom: 6px; }
.knk-embed-product { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.knk-embed-desc    { font-size: 13px; opacity: .65; text-align: center; margin-bottom: 22px; }
.knk-embed-divider { height: 1px; margin: 12px 0 16px; }

/* ── Field ──────────────────────────────────────────────────────────────── */
.knk-embed-field  { margin-bottom: 14px; }
.knk-embed-label  { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.knk-embed-req    { color: #ef4444; margin-left: 2px; }
.knk-embed-input,
.knk-embed-textarea,
.knk-embed-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
    border: 1.5px solid;
}
.knk-embed-textarea { resize: vertical; min-height: 80px; }
.knk-embed-radio-wrap,
.knk-embed-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* ── Button ─────────────────────────────────────────────────────────────── */
.knk-embed-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    transition: opacity .15s, transform .1s;
}
.knk-embed-btn:hover { opacity: .88; transform: translateY(-1px); }
.knk-embed-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Alert ──────────────────────────────────────────────────────────────── */
.knk-embed-alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.knk-embed-alert-error { background: #fee2e2; color: #b91c1c; }
.knk-embed-alert-warn  { background: #fef9c3; color: #854d0e; }

/* ── Shortcode wrapper (pakai [konektor_form id=X]) ─────────────────────── */
.konektor-blocked {
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── WA button (shortcode [konektor_wa_link]) ────────────────────────────── */
.konektor-wa-wrap   { text-align: center; }
.konektor-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: opacity .15s;
}
.konektor-wa-btn:hover { opacity: .88; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.knk-hidden { display: none !important; }
