/* Root variables scoped */
#app {
    --green-600: #91c148;
    --green-700: #84c424;
    --green-50: #ecfdf5;
    --muted: #6b7280;
    --bg: linear-gradient(135deg, #ecfdf5, #def7ec);

    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app * {
    box-sizing: border-box;
    font-family: 'Century Gothic', Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
}

#app .option:hover {
    border-color: #91c148;
    background: rgba(145, 193, 72, 0.08);
}

#app .option.selected {
    border-color: #5b8a38;
    background: rgba(145, 193, 72, 0.2);
}

#app .option .radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
}

#app .option:hover .radio-circle {
    border-color: #91c148;
}

#app .option.selected .radio-circle {
    border-color: #5b8a38;
    background: #5b8a38;
}

#app .container {
    justify-content: center;
    align-items: center;
}

#app .card {
    margin-top: 1%;
    width: 100%;
    max-width: 980px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
}

#app .card-header {
    padding: 40px 48px;
    text-align: center;
}

#app .logo {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: var(--green-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 12px;
}

#app .title {
    font-size: 22px;
    color: #0f172a;
    margin: 8px 0;
}

#app .subtitle {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

#app .progress-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 24px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

#app .steps {
    display: flex;
    gap: 18px;
    align-items: center;
}

#app .step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app .circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#app .circle.done {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}

#app .line {
    height: 4px;
    width: 48px;
    background: #e5e7eb;
    border-radius: 999px;
}

#app .content {
    display: grid;
    grid-template-columns: 1fr 420px;
}

#app .question-pane {
    padding: 32px 40px;
}

#app .question-meta {
    color: var(--green-600);
    font-size: 14px;
}

#app .question-title {
    font-size: 20px;
    color: #0f172a;
    margin: 12px 0;
}

#app .options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

#app .option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e6e7eb;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
}

#app .option.selected {
    border-color: var(--green-600);
    background: rgba(16, 185, 129, 0.06);
}

#app .controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#app .btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

#app .btn-primary {
    background: var(--green-600);
    color: #fff;
}

#app .btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #0f172a;
}

/* Image pane */
#app .image-pane {
    background: #f8faf9;
    padding: 0;
    position: relative;
}

#app .image-wrapper {
    height: 100%;
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#app .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#app .summary {
    padding: 32px;
}

#app .answers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#app .select-box {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e6e7eb;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%236b7280' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.25 7.25l4.75 4.75 4.75-4.75' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#app .select-box:hover {
    border-color: var(--green-600);
    background: rgba(145, 193, 72, 0.05);
}

#app .select-box:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(145, 193, 72, 0.2);
}

#app .select-box:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

#app .select-box option {
    color: #0f172a;
    background: #fff;
}

#app .form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 40px;
}

#app .form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#app .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#app .form-group label {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

#app .form-group.required label::after {
    content: " *";
    color: #dc2626;
}

#app .input {
    padding: 12px 14px;
    border: 2px solid #e6e7eb;
    border-radius: 10px;
    font-size: 16px;
    color: #0f172a;
    transition: all 0.2s ease;
}

#app .input:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(145, 193, 72, 0.2);
}

#app .input:hover {
    border-color: var(--green-600);
}

#app .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#app .activeGlow {
    box-shadow: 0 0 8px 2px rgba(25, 255, 0, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

#app .activeGlow.pulse {
    animation: pulseGlow .5s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 2px 2px rgba(50, 252, 58, 0.6);
    }
    to {
        box-shadow: 0 0 12px 4px rgb(117, 255, 86);
    }
}

@media (max-width: 700px) {
    #app .form-row.two-cols {
        grid-template-columns: 1fr;
    }
}

@media(max-width:900px) {
    #app .content {
        grid-template-columns: 1fr;
    }

    #app .image-pane {
        display: none;
    }
}