/* ── Gehalts-Benchmark Form ─────────────────────────── */
#sb-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#sb-form-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.sb-headline {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.sb-subline {
    margin: 0 0 28px;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.sb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sb-field {
    margin-bottom: 18px;
}

.sb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sb-field label span {
    color: #dc2626;
}

.sb-field input,
.sb-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.sb-field input:focus,
.sb-field select:focus {
    outline: none;
    border-color: #00b4c9;
    box-shadow: 0 0 0 3px rgba(0, 180, 201, .15);
}

.sb-field input.sb-invalid,
.sb-field select.sb-invalid {
    border-color: #dc2626;
}

.sb-field small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.sb-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 16px;
    line-height: 1.5;
}

#sb-submit {
    width: 100%;
    padding: 14px 24px;
    background: #00b4c9;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}

#sb-submit:hover { background: #0097b2; }
#sb-submit:active { transform: scale(.99); }
#sb-submit:disabled { background: #7dd9e3; cursor: not-allowed; }

.sb-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 16px 0;
    cursor: pointer;
}

.sb-privacy-check span {
    display: block;
}

.sb-privacy-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.sb-privacy-check a {
    color: #00b4c9;
    text-decoration: underline;
}

.sb-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}

/* ── Success / Results ───────────────────────────────── */
#sb-success {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px 40px;
    text-align: left;
}

.sb-success-icon {
    font-size: 36px;
    color: #00b4c9;
    margin-bottom: 8px;
    text-align: center;
}

.sb-email-notice {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin: 0 0 20px;
    padding: 10px 16px;
    background: #f0fbfc;
    border-radius: 6px;
    border: 1px solid #b2e8ef;
}

.sb-result-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.sb-result-profile span {
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .02em;
}

.sb-result-section {
    margin-bottom: 28px;
}

.sb-result-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #333;
    border-left: 4px solid #00b4c9;
    padding-left: 10px;
    margin: 0 0 14px;
}

/* ── Position badge ── */
.sb-pos-badge {
    border: 2px solid #00b4c9;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fff;
}

.sb-pos-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sb-pos-label {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.sb-pos-pct {
    font-size: 14px;
    color: #333;
}

.sb-pos-pct strong {
    font-size: 17px;
}

.sb-pos-stat {
    margin-bottom: 16px;
    line-height: 1.3;
}

.sb-pos-diff {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.sb-pos-diff-label {
    font-size: 14px;
    color: #555;
}

/* ── Scale bar ── */
.sb-scale {
    margin-bottom: 10px;
}

.sb-scale-track {
    position: relative;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    margin-bottom: 6px;
}

.sb-scale-iqr {
    position: absolute;
    height: 100%;
    background: rgba(0, 180, 201, 0.25);
    border-radius: 5px;
    /* left + width set dynamically via JS */
}

.sb-scale-median {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 16px;
    background: #0097b2;
    border-radius: 2px;
    transform: translateX(-50%);
    /* left set dynamically via JS */
}

.sb-scale-dot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
    transform: translate(-50%, -50%);
}

.sb-scale-labels {
    position: relative;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    margin-top: 4px;
}

.sb-scale-labels span {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.sb-scale-labels strong {
    color: #333;
    font-size: 12px;
}

.sb-pos-n {
    margin: 10px 0 0;
    font-size: 11px;
    color: #aaa;
}

.sb-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 14px;
}

.sb-result-table tr td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #1a1a1a;
}

.sb-result-table tr td:last-child {
    text-align: right;
    font-weight: 700;
}

.sb-result-table .sb-tr-median {
    background: #e6f8fb;
}

.sb-result-table .sb-tr-median td {
    font-weight: 700;
    color: #0097b2;
}

.sb-result-table .sb-tr-median td:last-child {
    font-size: 16px;
}

.sb-result-table .sb-tr-you td {
    color: #fff;
    font-weight: 700;
    border-bottom: none;
}

.sb-result-table .sb-tr-you td:last-child {
    font-size: 16px;
}

.sb-result-interpretation {
    background: #f5f5f5;
    border-left: 4px solid #00b4c9;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.sb-result-interpretation p {
    margin: 4px 0 0;
}

.sb-result-interpretation p:first-child {
    margin-top: 0;
}

@media (max-width: 600px) {
    #sb-form-container,
    #sb-success { padding: 24px 20px; }
    .sb-row { grid-template-columns: 1fr; gap: 0; }
    .sb-percentile-number { font-size: 32px; }
}
