:root {
    --bg-a: #fff3ee;
    --bg-b: #f8fafc;
    --ink: #0f172a;
    --muted: #475569;
    --card: #ffffff;
    --border: #f46326;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: radial-gradient(1200px 520px at 15% -10%, #ffd7c7 0%, transparent 55%),
                radial-gradient(1000px 460px at 95% 110%, #e2e8f0 0%, transparent 50%),
                linear-gradient(145deg, var(--bg-a), var(--bg-b));
    display: grid;
    place-items: center;
    padding: 24px;
}

.shell {
    position: relative;
    width: min(1040px, 100%);
    backdrop-filter: blur(6px);
}

.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.lang-active,
.lang-option {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    padding: 0;
}

.flag-svg {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.lang-options {
    position: absolute;
    top: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.lang-option {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
    transition: transform 220ms ease, opacity 220ms ease;
}

.lang-switch.open .lang-options {
    pointer-events: auto;
}

.lang-switch.open .lang-option {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lang-switch.open .lang-option:nth-child(2) {
    transition-delay: 45ms;
}

.title {
    font-family: "Indie Flower", "Segoe UI", Arial, sans-serif;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
    margin: 0 0 22px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.role-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    border-color: #f46326;
}

.role-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.role-label {
    font-family: "Indie Flower", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    text-align: center;
    padding: 14px 12px 16px;
}

#surveyWrap {
    margin-top: 24px;
}

.progress-nav {
    margin-bottom: 12px;
}

.progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.progress-list li {
    list-style: none;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 2rem;
}

.progress-step:last-child {
    padding-right: 0;
}

.progress-line-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.progress-line {
    width: 100%;
    height: 2px;
    background: #e5e7eb;
}

.progress-line.is-done {
    background: #f46326;
}

.progress-point {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}

.progress-point.is-current {
    border-color: #f46326;
}

.progress-point.is-answered {
    border-color: #f46326;
    background: #f46326;
}

.progress-point.is-upcoming {
    border-color: #d1d5db;
    background: #fff;
}

.progress-inner {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

.progress-point.is-current .progress-inner,
.progress-point.is-answered .progress-inner {
    background: #f46326;
}

.progress-point.is-answered .progress-inner {
    background: #fff;
}

@media (min-width: 640px) {
    .progress-step {
        padding-right: 3.25rem;
    }
}
.survey-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.survey-actions button {
    width: auto;
    min-width: 110px;
    margin-top: 0;
}

.btn-primary {
    background: #f46326;
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    font-weight: 700;
    cursor: pointer;
}

.hidden {
    display: none;
}

#status {
    text-align: center;
    margin-top: 14px;
    color: var(--muted);
    font-weight: 600;
    font-family: "Segoe UI", Arial, sans-serif;
}

@media (max-width: 760px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .survey-actions {
        justify-content: space-between;
    }

    .survey-actions button {
        flex: 1;
        min-width: 0;
    }
}


.title-question {
    font-family: "Indie Flower", "Segoe UI", Arial, sans-serif;
}



