.ec-survey-wrap {
    margin: 20px 0;
}
.ec-survey-card {
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.ec-survey-header {
    margin-bottom: 18px;
}
.ec-survey-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}
.ec-survey-description p:last-child {
    margin-bottom: 0;
}
.ec-question-block {
    border-top: 1px solid #eef2f7;
    padding-top: 18px;
    margin-top: 18px;
}
.ec-question-block:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}
.ec-question-label {
    display: block;
    margin-bottom: 12px;
}
.ec-question-title {
    font-weight: 700;
}
.ec-required {
    color: #dc2626;
    margin-left: 4px;
}
.ec-options-group {
    display: grid;
    gap: 10px;
}
.ec-option-item {
    position: relative;
    display: block;
    padding: 12px 14px;
    border: 1px solid #dde7f1;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}
.ec-option-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.ec-option-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.ec-option-main--static {
    align-items: center;
}
.ec-option-item input {
    margin-top: 3px;
    flex: 0 0 auto;
}
.ec-option-label-text {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ec-option-percentage {
    margin-left: auto;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    color: var(--ec-percentage, #0f172a);
}
.ec-option-meta {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
}
.ec-option-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--ec-track-bg, #e8eef6);
    z-index: 1;
}
.ec-option-progress-fill {
    display: block;
    height: 100%;
    border-radius: 0 999px 999px 0;
    background: var(--ec-fill-bg, #0f766e);
}
.ec-option-item--result {
    padding-bottom: 14px;
}
.ec-option-item--static {
    cursor: default;
}
.ec-text-answer {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d8e1eb;
    border-radius: 12px;
    padding: 12px 14px;
    resize: vertical;
}
.ec-survey-actions {
    margin-top: 22px;
}
.ec-submit-btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 20px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.ec-submit-btn[disabled] {
    opacity: .7;
    cursor: wait;
}
.ec-survey-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
}
.ec-survey-message--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.ec-survey-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.ec-survey-message--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.ec-inline-results-summary {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
    color: #475569;
}
.ec-results-wrap {
    margin-top: 18px;
    border-top: 1px solid #eef2f7;
    padding-top: 18px;
}
.ec-results-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.ec-results-summary {
    color: #475569;
    margin-bottom: 16px;
}
.ec-result-question {
    margin-bottom: 18px;
}
.ec-result-question-title {
    font-weight: 700;
    margin-bottom: 10px;
}
.ec-result-bars {
    display: grid;
    gap: 12px;
}
.ec-result-bar-item {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(248,250,252,.55);
}
.ec-result-bar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.ec-result-label {
    min-width: 0;
    flex: 1 1 auto;
}
.ec-result-percentage {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}
.ec-result-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}
.ec-result-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #0f766e;
}
.ec-result-bar-count {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}
.ec-shortcode-warning {
    padding: 12px 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    border-radius: 12px;
}
@media (max-width: 640px) {
    .ec-survey-card {
        padding: 18px;
    }
    .ec-option-content {
        gap: 10px;
    }
    .ec-option-percentage {
        font-size: 14px;
    }
}
