/* WisWits Hiring — Public styles */

.ww-wrap {
    max-width: 960px;
    margin: 32px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1f2937;
    line-height: 1.55;
}

.ww-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
    color: #fff;
    padding: 36px 32px;
    border-radius: 16px;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
}
.ww-hero-tag {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .9;
    font-weight: 600;
}
.ww-hero-title {
    margin: 8px 0 6px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}
.ww-hero-sub { margin: 0; opacity: .92; font-size: 15px; }

.ww-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
}

.ww-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
}

.ww-help { color: #64748b; font-size: 13.5px; margin: 6px 0 16px; }

.ww-form .ww-grid { display: grid; gap: 16px; }
.ww-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .ww-grid-2 { grid-template-columns: 1fr; } }

.ww-field { display: block; margin-bottom: 18px; }
.ww-field > span {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    color: #374151;
    margin-bottom: 6px;
}
.ww-field input[type="text"],
.ww-field input[type="email"],
.ww-field input[type="tel"],
.ww-field input[type="url"],
.ww-field select,
.ww-field textarea {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.ww-field input:focus,
.ww-field select:focus,
.ww-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.ww-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.ww-field-file input[type="file"] {
    padding: 8px;
    border: 1.5px dashed #c7d2fe;
    background: #f5f3ff;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ww-counter { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; }
.ww-counter.ok { color: #16a34a; font-weight: 600; }

.ww-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 18px 0;
    font-size: 13.5px;
}
.ww-checkbox input { margin-top: 3px; }

.ww-actions { text-align: right; margin-top: 14px; }

.ww-btn {
    display: inline-block;
    background: #e5e7eb;
    color: #111827;
    border: none;
    padding: 11px 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    font-family: inherit;
}
.ww-btn:hover { transform: translateY(-1px); }
.ww-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.ww-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: #fff;
}
.ww-btn-lg { padding: 14px 32px; font-size: 15px; }
.ww-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.ww-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.ww-alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ww-alert-info  { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }

.ww-success-card { text-align: center; padding: 36px 28px; }
.ww-success-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #047857;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.ww-cid {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 12px 0 18px;
    letter-spacing: 1px;
}
.ww-rules {
    text-align: left;
    background: #f8fafc;
    padding: 18px 24px 18px 38px;
    border-radius: 10px;
    margin: 18px auto;
    max-width: 600px;
    font-size: 14px;
}
.ww-rules li { margin-bottom: 7px; }

/* Leaderboard */
.ww-leaderboard-filter { display: flex; align-items: end; gap: 16px; padding: 18px 24px; }
.ww-leaderboard-filter label { display: flex; flex-direction: column; }
.ww-leaderboard-filter select {
    padding: 9px 12px; border-radius: 8px; border: 1px solid #d1d5db; min-width: 200px;
}
.ww-table { width: 100%; border-collapse: collapse; }
.ww-table th, .ww-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.ww-table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.ww-rank-top { background: linear-gradient(90deg, #fef3c7 0%, #ffffff 100%); }
.ww-rank-top td:first-child { color: #b45309; }
.ww-lookup-row { align-items: end; }
.ww-lookup-row input {
    padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box; width: 100%;
}
.ww-lookup-result { margin-top: 14px; }
.ww-result {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
}
.ww-result h4 { margin: 0 0 6px; color: #1e293b; }

/* ============== TEST UI ============== */
.ww-test-shell {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.ww-test-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 22px 26px;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.ww-test-brand-tag { font-size: 11px; letter-spacing: 3px; opacity: .8; font-weight: 600; }
.ww-test-brand-sub { font-size: 13px; opacity: .85; margin-top: 3px; }
.ww-test-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.ww-test-meta > div { font-size: 13px; }
.ww-meta-label { display: block; opacity: .6; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.ww-test-meta strong { font-size: 15px; font-weight: 600; }

.ww-test-progress { background: #fff; padding: 14px 22px; border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; }
.ww-progress-info { font-size: 13px; color: #475569; margin-bottom: 8px; }
.ww-progress-info strong { color: #1e40af; }
.ww-progress-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.ww-progress-fill { height: 100%; background: linear-gradient(90deg, #4f46e5, #7c3aed); width: 0%; transition: width .3s; }

.ww-test-body {
    background: #fff;
    padding: 32px 28px;
    min-height: 320px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}
.ww-question {
    font-size: 17px;
    line-height: 1.6;
    color: #0f172a;
    margin-bottom: 24px;
    font-weight: 500;
}
.ww-question .ww-q-num {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    vertical-align: middle;
}
.ww-options { display: flex; flex-direction: column; gap: 10px; }
.ww-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s;
    background: #fff;
    font-size: 15px;
}
.ww-option:hover { border-color: #c7d2fe; background: #fafafa; }
.ww-option.selected { border-color: #4f46e5; background: #eef2ff; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.ww-option input { margin-top: 3px; }
.ww-option-letter {
    display: inline-block;
    width: 28px; height: 28px;
    line-height: 28px;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}
.ww-option.selected .ww-option-letter { background: #4f46e5; color: #fff; }

.ww-test-footer {
    background: #fff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 18px rgba(15,23,42,.06);
    border: 1px solid #e5e7eb;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 12px;
}
.ww-test-warning { color: #b45309; font-size: 13px; font-weight: 500; }

.ww-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; backdrop-filter: blur(4px);
}
.ww-overlay-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 36px;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ww-overlay-card h2 { margin: 0 0 12px; color: #b91c1c; font-size: 22px; }
.ww-overlay-card p  { margin: 0; color: #475569; font-size: 14.5px; line-height: 1.6; }

.ww-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.ww-result-grid > div {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.ww-result-grid span { font-size: 11px; color: #94a3b8; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.ww-result-grid strong { font-size: 17px; color: #1e293b; }

@media (max-width: 600px) {
    .ww-hero { padding: 24px 20px; }
    .ww-hero-title { font-size: 22px; }
    .ww-card { padding: 20px; }
    .ww-test-body { padding: 22px 18px; }
    .ww-question { font-size: 16px; }
    .ww-test-meta { gap: 12px; }
}

/* ============== READY SCREEN ============== */
.ww-ready-screen { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ww-ready-body {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 14px 14px;
    padding: 36px 32px 32px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.ww-ready-badge {
    display: inline-block;
    background: #ecfdf5; color: #047857;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    margin-bottom: 18px; letter-spacing: 1px;
}
.ww-ready-body h2 { font-size: 22px; color: #0f172a; margin-bottom: 8px; }
.ww-ready-sub { color: #64748b; font-size: 15px; margin-bottom: 26px; }
.ww-ready-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    text-align: left;
    margin: 0 auto 28px;
    max-width: 860px;
}
.ww-ready-rule {
    display: flex; gap: 14px; align-items: flex-start;
    background: #f8fafc; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 14px 16px;
}
.ww-rule-icon { font-size: 22px; flex-shrink: 0; line-height: 1.3; }
.ww-ready-rule strong { display: block; font-size: 14px; color: #1e293b; margin-bottom: 3px; }
.ww-ready-rule p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.4; }

.ww-ready-checkbox {
    display: inline-flex; gap: 10px; align-items: flex-start;
    background: #fef3c7; border: 1px solid #fcd34d;
    padding: 14px 18px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: #92400e;
    cursor: pointer; margin-bottom: 20px; max-width: 540px;
    text-align: left;
}
.ww-ready-checkbox input { margin-top: 2px; flex-shrink: 0; }
#ww-start-btn { margin: 0 auto 14px; display: inline-flex; min-width: 280px; justify-content: center; }
#ww-start-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.ww-ready-note { color: #94a3b8; font-size: 12.5px; margin: 0; }

@media (max-width:600px) {
    .ww-ready-body { padding: 24px 18px; }
    .ww-ready-rules { grid-template-columns: 1fr; }
}
