/* CrowdNode contact widget — shared between the wind-down portal and the public
   website. External stylesheet on purpose: the public site's CSP forbids inline
   styles. Classes are cn-cw-* to avoid collisions with host styles. */

.cn-cw-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #008DE4;
    color: #fff;
    font-size: 24px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    padding: 0;
}

.cn-cw-launcher:hover { background: #0074bd; }

.cn-cw-panel {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 2147483000;
    width: 420px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    font-size: 15px;
    color: #182430;
    text-align: left;
}

.cn-cw-header {
    background: #008DE4;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}

.cn-cw-close {
    float: right;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cn-cw-body { padding: 16px 18px; }

.cn-cw-label {
    display: block;
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 13px;
    color: #182430;
}

.cn-cw-body input,
.cn-cw-body select,
.cn-cw-body textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 9px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #182430;
    font: inherit;
    font-size: 15px;
}

.cn-cw-body textarea { resize: vertical; min-height: 140px; }

.cn-cw-send {
    background: #008DE4;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font: inherit;
    cursor: pointer;
}

.cn-cw-send:hover { background: #0074bd; }
.cn-cw-send:disabled { opacity: .6; cursor: default; }

.cn-cw-status { margin-top: 8px; font-size: 13px; }

.cn-cw-success { text-align: center; padding: 18px 6px 10px; }
.cn-cw-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 30px;
    line-height: 56px;
}
.cn-cw-success-title { font-weight: bold; font-size: 16px; margin-bottom: 6px; }
.cn-cw-success-text { color: #5a6b7a; margin-bottom: 14px; }

.cn-cw-status.cn-cw-ok { color: #1e7e34; }
.cn-cw-status.cn-cw-err { color: #c82333; }

/* Honeypot: moved off-screen, never display:none (some bots skip hidden inputs) */
.cn-cw-hp {
    position: absolute;
    left: -5000px;
    top: 0;
}

.cn-cw-hidden { display: none; }

/* Small screens: dock the panel as a near-full-width sheet and use 16px inputs
   so iOS Safari does not zoom in on focus. */
@media (max-width: 480px) {
    .cn-cw-panel {
        left: 10px;
        right: 10px;
        bottom: 86px;
        width: auto;
        max-width: none;
        font-size: 16px;
    }

    .cn-cw-body input,
    .cn-cw-body select,
    .cn-cw-body textarea {
        font-size: 16px;
        padding: 10px 12px;
    }

    .cn-cw-send {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}
